From: Ingo Molnar <mingo@pc5829.hil.siemens.at>
Subject: Re: Linux-2.1.4
Date: Thu, 17 Oct 1996 12:52:35 +0100 (MET) [thread overview]
Message-ID: <bb128b1b7f93006e70cd87471d0746ec.axp-list@archive.invalid> (raw)
In-Reply-To: <Pine.LNX.3.91.961017130736.25546C-100000@linux.cs.Helsinki.FI>
On Thu, 17 Oct 1996, Linus Torvalds wrote:
> > the exception handler could maintain a cross-table that identifies EIPs
> > and abort points. It would do something like this:
> >
> > jmp UGLY_AS_HELL_BUT_FAST_AS_LIGHTNING_CROSSJUMP_TABLE[exception_eip]
>
> Yes, we could actually do something like this. It needs compiler support, but
> that is possible, and g++ exceptions are actually kind of moving in this
> direction.
another option is to trick gcc into producing the proper symbol entries
around the exception-prone code. We have to generate two symbols:
symbol_1: mov src, target_that_might_fault
symbol_2: exception_handling_logic
Thus the exception handler only has to read the EIP value of symbol_2 out
of a table indexed by symbol_1 [=exception EIP].
One bigger problem remains, we have to name these symbols uniquely. Could
we use __FILE__ and __LINE__? [dont do Ctrl-D yet :)] And then we have to
write a (smallish) custom program that analyses the kernel symbol table,
cuts out these symbol EIPs and produces the cross-table. [and links these
table to the kernel image ...]
for the first time we could use a very conservative implementation: kernel
panic if the exception handler doesnt find the >exact< EIP in the
cross-table.
So i think we have got enough compiler support already, it's just a bit
tricky to get it out of gcc.
If the above is true, then we have still one problem: modules ...
I dont know wether this all is worth the hassle. Probably not :(
Ingo
ps. argh ... __FILE__ and __LINE__ breaks if we use inline functions? :(
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next parent reply other threads:[~1996-10-17 11:52 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.3.91.961017130736.25546C-100000@linux.cs.Helsinki.FI>
1996-10-17 11:52 ` Ingo Molnar [this message]
1996-10-17 14:00 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.91.961018075100.23966E-100000@linux.cs.Helsinki.FI>
1996-10-18 7:34 ` Linux-2.1.4 Richard Henderson
[not found] <Pine.LNX.3.95.961017232056.6666A-100000@odin.asgard.hr>
1996-10-17 22:03 ` Linux-2.1.4 Richard Henderson
1996-10-18 5:16 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.93.961017124005.6940C-100000@pc5829.hil.siemens.at>
1996-10-17 20:26 ` Linux-2.1.4 Richard Henderson
1996-10-17 10:31 Linux-2.1.4 David A Rusling
[not found] <Pine.LNX.3.93.961017104701.8482A-100000@pc5829.hil.siemens.at>
1996-10-17 10:18 ` Linux-2.1.4 Linus Torvalds
-- strict thread matches above, loose matches on Subject: below --
1996-10-17 10:03 Linux-2.1.4 David A Rusling
[not found] <Pine.LNX.3.91.961017082647.20618H-100000@linux.cs.Helsinki.FI>
1996-10-17 10:00 ` Linux-2.1.4 Ingo Molnar
[not found] <199610171003.KAA00502@linux.reo.dec.com>
1996-10-17 9:03 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.93.961016194825.19685A-100000@pc5829.hil.siemens.at>
1996-10-17 6:06 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.91.961016101122.19371J-100000@linux.cs.Helsinki.FI>
1996-10-16 17:20 ` Linux-2.1.4 Theodore Y. Ts'o
1996-10-16 18:58 ` Linux-2.1.4 Ingo Molnar
1996-10-17 4:51 ` Linux-2.1.4 Linus Torvalds
1996-10-17 3:42 ` Linux-2.1.4 Marc Singer
1996-10-17 12:39 ` Linux-2.1.4 Jim Nance
[not found] <9610160531.AA04330@feral.com>
1996-10-16 7:18 ` Linux-2.1.4 Linus Torvalds
[not found] <Pine.LNX.3.95.961015224149.4897A-100000@hlermen.ffm.fgan.de>
1996-10-15 21:56 ` Linux-2.1.4 Hans Lermen
1996-10-15 18:41 Linux-2.1.4 Michael Stiller
1996-10-15 21:15 ` Linux-2.1.4 Hans Lermen
[not found] <Pine.LNX.3.91.961010180237.1289A-100000@linux.cs.Helsinki.FI>
1996-10-15 17:14 ` Linux-2.1.4 Linus Torvalds
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox