From: Keith Owens <kaos@ocs.com.au>
To: linux-kernel@vger.kernel.org
Subject: Re: 2.5.63 accesses below %esp (was: Re: ntfs OOPS (2.5.63))
Date: Tue, 18 Mar 2003 14:28:04 +1100 [thread overview]
Message-ID: <1306.1047958084@ocs3.intra.ocs.com.au> (raw)
In-Reply-To: Your message of "Mon, 17 Mar 2003 17:43:21 EDT." <200303172143.h2HLhLql010853@pincoya.inf.utfsm.cl>
On Mon, 17 Mar 2003 17:43:21 -0400,
Horst von Brand <vonbrand@inf.utfsm.cl> wrote:
>Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> said:
>> How come? If I started to decode at EIP-n and got a sequence of
>> instructions at EIP-n, EIP-n+k1, EIP-n+k2, EIP-n+k3..., EIP,
>> instructions prior to EIP can be wrong. Instruction at EIP
>> and all subsequent ones ought to be right.
>
>Iff you exactly hit EIP that way (sure, should check). But wrong previous
>instructions _will_ confuse people or start them on all kind of wild goose
>chases. Too much work for a dubious gain.
At the risk of stating the obvious: the only program that cares about
the 'Code:' line is ksymoops. It already handles code around the EIP
by looking for a byte enclosed in <> and assuming that byte is at EIP.
ksymoops can happily decode around the failing instruction and does so
for most architectures with fixed length instructions.
I can change ksymoops to add a special case for architectures with
variable length instructions - i386, s390 and their 64 bit equivalents,
are there any others? For variable length instructions, ksymoops will
extract the bytes up to but not including eip, decode and print them
with a warning
This architecture has variable length instructions, decoding before eip is
unreliable, take these instructions with a pinch of salt.
Then the code from eip onwards will be decoded as normal, with the
heading 'This code should be reliable'. If a kernel with variable
length instructions prints 'Code:' with a byte enclosed in <> then you
get two decodes with suitable warning messages. No <> in the code line
means no change from current decode state, everybody is happy.
next prev parent reply other threads:[~2003-03-18 4:37 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-02 1:38 ntfs OOPS (2.5.63) Randy.Dunlap
2003-03-04 14:51 ` [Linux-NTFS-Dev] " Szakacsits Szabolcs
2003-03-05 19:09 ` Anton Altaparmakov
2003-03-06 6:19 ` Randy.Dunlap
2003-03-06 6:28 ` Szakacsits Szabolcs
2003-03-06 6:42 ` Randy.Dunlap
2003-03-06 12:32 ` Anton Altaparmakov
2003-03-06 14:34 ` Szakacsits Szabolcs
2003-03-06 14:55 ` Anton Altaparmakov
2003-03-06 19:39 ` Randy.Dunlap
2003-03-06 19:41 ` Szakacsits Szabolcs
2003-03-06 20:15 ` Szakacsits Szabolcs
2003-03-06 20:36 ` Randy.Dunlap
2003-03-06 21:46 ` Oops counter (was Re: ntfs OOPS (2.5.63)) Szakacsits Szabolcs
2003-03-07 7:50 ` [Linux-NTFS-Dev] ntfs OOPS (2.5.63) Randy.Dunlap
2003-03-07 7:52 ` Szakacsits Szabolcs
2003-03-07 17:17 ` Randy.Dunlap
2003-03-07 17:56 ` Szakacsits Szabolcs
2003-03-07 18:08 ` Randy.Dunlap
2003-03-08 13:24 ` Szakacsits Szabolcs
2003-03-08 15:47 ` Szakacsits Szabolcs
2003-03-10 4:16 ` Randy.Dunlap
2003-03-10 7:22 ` 2.5.63 accesses below %esp (was: Re: ntfs OOPS (2.5.63)) Szakacsits Szabolcs
2003-03-11 17:01 ` Alan Cox
2003-03-11 16:29 ` Szakacsits Szabolcs
2003-03-12 1:09 ` Alan Cox
2003-03-13 18:02 ` Zach Brown
2003-03-12 0:39 ` Linus Torvalds
2003-03-12 6:07 ` Szakacsits Szabolcs
2003-03-12 7:52 ` Richard Henderson
2003-03-12 8:02 ` Szakacsits Szabolcs
2003-03-12 8:17 ` Richard Henderson
2003-03-12 8:45 ` Szakacsits Szabolcs
2003-03-12 9:17 ` Szakacsits Szabolcs
2003-03-12 15:28 ` Szakacsits Szabolcs
2003-03-12 15:38 ` Linus Torvalds
2003-03-12 23:14 ` Bill Davidsen
2003-03-12 10:19 ` Arjan van de Ven
2003-03-12 15:20 ` Linus Torvalds
2003-03-12 15:24 ` Arjan van de Ven
2003-03-12 15:35 ` Szakacsits Szabolcs
2003-03-12 15:43 ` Arjan van de Ven
2003-03-12 15:47 ` Linus Torvalds
2003-03-12 16:38 ` Randy.Dunlap
2003-03-12 16:50 ` Randy.Dunlap
2003-03-12 18:25 ` Szakacsits Szabolcs
2003-03-12 18:33 ` Linus Torvalds
2003-03-12 21:54 ` Szakacsits Szabolcs
2003-03-12 22:18 ` Linus Torvalds
2003-03-12 22:28 ` Szakacsits Szabolcs
2003-03-13 1:07 ` Linus Torvalds
2003-03-14 8:04 ` Szakacsits Szabolcs
2003-03-14 10:00 ` Helge Hafting
2003-03-14 11:02 ` Szakacsits Szabolcs
2003-03-13 21:07 ` Horst von Brand
2003-03-13 23:24 ` Linus Torvalds
2003-03-14 1:08 ` Jonathan Lundell
2003-03-14 4:29 ` Randy.Dunlap
2003-03-14 6:26 ` Jonathan Lundell
2003-03-15 18:24 ` Horst von Brand
2003-03-15 19:47 ` Randy.Dunlap
2003-03-12 21:13 ` Horst von Brand
2003-03-12 22:03 ` Szakacsits Szabolcs
2003-03-13 21:04 ` Horst von Brand
2003-03-14 7:14 ` Denis Vlasenko
2003-03-14 12:16 ` Backward disassembling (was: Re: 2.5.63 accesses below %esp) Szakacsits Szabolcs
2003-03-14 16:53 ` Jonathan Lundell
2003-03-15 18:34 ` 2.5.63 accesses below %esp (was: Re: ntfs OOPS (2.5.63)) Horst von Brand
2003-03-17 6:56 ` Denis Vlasenko
2003-03-17 21:43 ` Horst von Brand
2003-03-18 3:28 ` Keith Owens [this message]
2003-03-18 7:13 ` Hugh Dickins
2003-03-20 10:48 ` Keith Owens
2003-03-20 11:04 ` Hugh Dickins
2003-03-18 19:44 ` Szakacsits Szabolcs
2003-03-18 6:05 ` Denis Vlasenko
2003-03-18 6:35 ` John Alvord
2003-03-14 18:01 ` Olaf Titz
2003-03-14 18:56 ` Richard B. Johnson
2003-03-12 23:32 ` [PATCH] OOPS counters Randy.Dunlap
2003-03-06 12:27 ` [Linux-NTFS-Dev] ntfs OOPS (2.5.63) Anton Altaparmakov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1306.1047958084@ocs3.intra.ocs.com.au \
--to=kaos@ocs.com.au \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox