From: Rob Landley <rob@landley.net>
To: user-mode-linux-devel@lists.sourceforge.net
Cc: Blaisorblade <blaisorblade@yahoo.it>, Jeff Dike <jdike@addtoit.com>
Subject: Re: [uml-devel] [PATCH] Ok, I build x86-64 -skas0, and it still segfaults.
Date: Sun, 13 Nov 2005 17:32:10 -0600 [thread overview]
Message-ID: <200511131732.11279.rob@landley.net> (raw)
In-Reply-To: <200511132020.01596.blaisorblade@yahoo.it>
On Sunday 13 November 2005 13:20, Blaisorblade wrote:
> On Sunday 13 November 2005 20:32, Jeff Dike wrote:
> > On Sat, Nov 12, 2005 at 07:36:41PM -0600, Rob Landley wrote:
> > > Stub registers -
> > > 0 - 9090909090909090
> > > 1 - 9090909090909090
> > > 2 - 9090909090909090
> > > 3 - 9090909090909090
> > > 4 - 9090909090909090
> > > 5 - 9090909090909090
> > > 6 - 9090909090909090
> > > 7 - 9090909090909090
> > > 8 - 9090909090909090
> > > 9 - 9090909090909090
> > > 10 - 0
> > > 11 - 9090909090909090
> > > 12 - 9090909090909090
> > > 13 - 9090909090909090
> > > 14 - 9090909090909090
> > > 15 - ffffffffffffffff
> > > 16 - 9090909090909090
> > > 17 - 33
> > > 18 - 292
> > > 19 - 9090909090909090
> > > 20 - 2b
> >
> > I remain baffled by this. There is nothing valid there. At the very
> > least RSP and RIP should be reasonable, and they're not.
>
> Jeff, given the current state, I think that we need a look at the
> disassembly - or better:
> *) build a 2.6.15-rc1 binary with Rob's config.
> *) test that it works
> *) send him and see if it works for him
> *) finally, conclude GCC is misassembling stuff and take measures for this
> case.
>
> Meanwhile, Rob, can you provide the disassembly? We need to look at
> disassembled arch/um/sys-x86_64/stub_segv.c arch/um/kernel/skas/clone.c,
> i.e. stub_segv_handler() and stub_clone_handler().
00000000600c5150 <stub_segv_handler>:
600c5150: 48 89 d1 mov %rdx,%rcx
600c5153: 48 ba 00 f0 ff bf 7f mov $0x7fbffff000,%rdx
600c515a: 00 00 00
600c515d: 48 8b 81 d8 00 00 00 mov 0xd8(%rcx),%rax
600c5164: 48 89 42 08 mov %rax,0x8(%rdx)
600c5168: 8b 81 c0 00 00 00 mov 0xc0(%rcx),%eax
600c516e: 89 02 mov %eax,(%rdx)
600c5170: 8b 81 c8 00 00 00 mov 0xc8(%rcx),%eax
600c5176: 89 42 10 mov %eax,0x10(%rdx)
600c5179: 48 c7 c0 27 00 00 00 mov $0x27,%rax
600c5180: 0f 05 syscall
600c5182: 48 89 c7 mov %rax,%rdi
600c5185: 48 c7 c0 3e 00 00 00 mov $0x3e,%rax
600c518c: 48 c7 c6 0a 00 00 00 mov $0xa,%rsi
600c5193: 0f 05 syscall
600c5195: 48 89 cc mov %rcx,%rsp
600c5198: 48 c7 c0 0f 00 00 00 mov $0xf,%rax
600c519f: 0f 05 syscall
600c51a1: c3 retq
00000000600c5000 <stub_clone_handler>:
600c5000: 41 57 push %r15
600c5002: 41 56 push %r14
600c5004: 41 55 push %r13
600c5006: 41 54 push %r12
600c5008: 41 bc 38 00 00 00 mov $0x38,%r12d
600c500e: 55 push %rbp
600c500f: 48 bd 00 f0 ff bf 7f mov $0x7fbffff000,%rbp
600c5016: 00 00 00
600c5019: 53 push %rbx
600c501a: bb 11 84 00 00 mov $0x8411,%ebx
600c501f: 48 83 ec 08 sub $0x8,%rsp
600c5023: e8 70 83 f4 ff callq 6000d398 <getpagesize@plt>
600c5028: 48 89 df mov %rbx,%rdi
600c502b: 89 c6 mov %eax,%esi
600c502d: 41 89 c0 mov %eax,%r8d
600c5030: 48 b8 f8 ef ff bf 7f mov $0x7fbfffeff8,%rax
600c5037: 00 00 00
600c503a: c1 ee 1f shr $0x1f,%esi
600c503d: 42 8d 34 06 lea (%rsi,%r8,1),%esi
600c5041: d1 fe sar %esi
600c5043: 48 63 f6 movslq %esi,%rsi
600c5046: 48 01 c6 add %rax,%rsi
600c5049: 4c 89 e0 mov %r12,%rax
600c504c: 0f 05 syscall
600c504e: 48 85 c0 test %rax,%rax
600c5051: 48 89 c3 mov %rax,%rbx
600c5054: 75 78 jne 600c50ce <stub_clone_handler+0xce>
600c5056: b8 65 00 00 00 mov $0x65,%eax
600c505b: 48 89 df mov %rbx,%rdi
600c505e: 48 89 de mov %rbx,%rsi
600c5061: 48 89 da mov %rbx,%rdx
600c5064: 49 89 da mov %rbx,%r10
600c5067: 0f 05 syscall
600c5069: 48 85 c0 test %rax,%rax
600c506c: 48 89 c3 mov %rax,%rbx
600c506f: 75 5d jne 600c50ce <stub_clone_handler+0xce>
600c5071: b8 26 00 00 00 mov $0x26,%eax
600c5076: bf 01 00 00 00 mov $0x1,%edi
600c507b: 48 be 10 f0 ff bf 7f mov $0x7fbffff010,%rsi
600c5082: 00 00 00
600c5085: 48 89 da mov %rbx,%rdx
600c5088: 0f 05 syscall
600c508a: 48 85 c0 test %rax,%rax
600c508d: 48 89 c3 mov %rax,%rbx
600c5090: 75 3c jne 600c50ce <stub_clone_handler+0xce>
600c5092: a1 08 f0 ff bf 7f 00 mov 0x7fbffff008,%eax
600c5099: 00 00
Rob
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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-11-13 23:32 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-13 1:36 [uml-devel] [PATCH] Ok, I build x86-64 -skas0, and it still segfaults Rob Landley
2005-11-13 17:54 ` Blaisorblade
2005-11-13 23:26 ` Rob Landley
2005-11-14 19:40 ` Blaisorblade
2005-11-16 3:09 ` Rob Landley
2005-11-18 7:43 ` Blaisorblade
2005-11-18 7:36 ` Rob Landley
2005-11-18 7:58 ` Blaisorblade
2005-11-18 8:58 ` Rob Landley
2005-11-19 0:11 ` [uml-devel] [PATCH] UML x86-64 build fix Rob Landley
2005-11-13 19:32 ` [uml-devel] [PATCH] Ok, I build x86-64 -skas0, and it still segfaults Jeff Dike
2005-11-13 19:20 ` Blaisorblade
2005-11-13 23:32 ` Rob Landley [this message]
2005-11-14 15:33 ` Jeff Dike
2005-11-14 21:55 ` Jeff Dike
2005-11-14 23:24 ` Rob Landley
2005-11-14 23:45 ` Rob Landley
2005-11-15 1:38 ` Jeff Dike
2005-11-15 2:18 ` Rob Landley
2005-11-15 22:09 ` Paolo Giarrusso
2005-11-16 0:57 ` Jeff Dike
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=200511131732.11279.rob@landley.net \
--to=rob@landley.net \
--cc=blaisorblade@yahoo.it \
--cc=jdike@addtoit.com \
--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.