From: Bodo Stroesser <bstroesser@fujitsu-siemens.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: Rob Landley <rob@landley.net>,
user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] Am I doing something wrong with -skas0?
Date: Thu, 14 Jul 2005 12:59:39 +0200 [thread overview]
Message-ID: <42D6459B.6080702@fujitsu-siemens.com> (raw)
In-Reply-To: <200507131647.53822.rob@landley.net>
Rob Landley wrote:
> On Wednesday 13 July 2005 07:11, Bodo Stroesser wrote:
>
>>Rob Landley wrote:
>>
>>>Am I doing it right? Is there anything I can do to help track this down?
>>>
>>>Rob
>>
>>The value of EIP reported in your earlier mail is quite surprising.
>>Could you please "objdump" vmlinux and send the part of
>>"stub_segv_handler"?
>>
>> Bodo
>
>
> I'm guessing you want objdump -d, and here's stub_segv_handler from that:
>
> 081020b0 <stub_segv_handler>:
> 81020b0: 8b 44 24 5c mov 0x5c(%esp),%eax
> 81020b4: a3 04 f0 ff bf mov %eax,0xbffff004
> 81020b9: 8b 44 24 3c mov 0x3c(%esp),%eax
> 81020bd: a3 00 f0 ff bf mov %eax,0xbffff000
> 81020c2: 8b 44 24 38 mov 0x38(%esp),%eax
> 81020c6: a3 08 f0 ff bf mov %eax,0xbffff008
> 81020cb: b8 14 00 00 00 mov $0x14,%eax
> 81020d0: cd 80 int $0x80
> 81020d2: 89 c3 mov %eax,%ebx
> 81020d4: b8 25 00 00 00 mov $0x25,%eax
> 81020d9: b9 0a 00 00 00 mov $0xa,%ecx
> 81020de: cd 80 int $0x80
> 81020e0: 58 pop %eax
> 81020e1: 58 pop %eax
> 81020e2: 58 pop %eax
> 81020e3: b8 77 00 00 00 mov $0x77,%eax
> 81020e8: cd 80 int $0x80
> 81020ea: c3 ret
>
> Rob
Hi Jeff,
stub_segv_handler misses the "push ebp" at the beginning. As you
do the normally corresponding "pop eax" explicitly, I think stack
pointer is wrong on call of sigreturn.
I have no idea, what makes happen this. Maybe it depends on compiler
version?
Bodo
P.S.:
Normally, stub_segv_handler should look like this:
a02090d0 <stub_segv_handler>:
a02090d0: 55 push %ebp
a02090d1: 89 e5 mov %esp,%ebp
a02090d3: 8b 45 60 mov 0x60(%ebp),%eax
a02090d6: a3 04 f0 ff bf mov %eax,0xbffff004
a02090db: 8b 45 40 mov 0x40(%ebp),%eax
a02090de: a3 00 f0 ff bf mov %eax,0xbffff000
a02090e3: 8b 45 3c mov 0x3c(%ebp),%eax
a02090e6: a3 08 f0 ff bf mov %eax,0xbffff008
a02090eb: b8 14 00 00 00 mov $0x14,%eax
a02090f0: cd 80 int $0x80
a02090f2: 89 c3 mov %eax,%ebx
a02090f4: b8 25 00 00 00 mov $0x25,%eax
a02090f9: b9 0a 00 00 00 mov $0xa,%ecx
a02090fe: cd 80 int $0x80
a0209100: 58 pop %eax
a0209101: 58 pop %eax
a0209102: 58 pop %eax
a0209103: b8 77 00 00 00 mov $0x77,%eax
a0209108: cd 80 int $0x80
a020910a: 5d pop %ebp
a020910b: c3 ret
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
next prev parent reply other threads:[~2005-07-14 10:59 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-13 4:46 [uml-devel] Am I doing something wrong with -skas0? Rob Landley
2005-07-13 12:11 ` Bodo Stroesser
2005-07-13 21:47 ` Rob Landley
2005-07-14 10:59 ` Bodo Stroesser [this message]
2005-07-14 12:05 ` Bodo Stroesser
2005-07-14 13:43 ` Jeff Dike
2005-07-14 14:11 ` Bodo Stroesser
2005-07-14 14:23 ` Jeff Dike
2005-07-14 18:19 ` Rob Landley
2005-07-14 14:13 ` Bodo Stroesser
2005-07-14 18:02 ` Rob Landley
2005-07-14 13:40 ` Jeff Dike
2005-07-14 17:58 ` Rob Landley
2005-07-13 21:51 ` Rob Landley
2005-07-13 12:15 ` Jeff Dike
2005-07-13 21:56 ` Rob Landley
2005-07-13 23:29 ` Jeff Dike
2005-07-14 2:02 ` Rob Landley
2005-07-14 12:37 ` Jeff Dike
2005-07-14 18:16 ` Rob Landley
2005-07-14 20:30 ` Rob Landley
2005-07-15 16:10 ` Blaisorblade
2005-07-15 16:25 ` Bodo Stroesser
2005-07-15 19:40 ` Rob Landley
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=42D6459B.6080702@fujitsu-siemens.com \
--to=bstroesser@fujitsu-siemens.com \
--cc=jdike@addtoit.com \
--cc=rob@landley.net \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.