On Monday 21 November 2005 08:58, Jeff Dike wrote:
> On Sat, Nov 19, 2005 at 02:11:50PM +0100, Joel Palmius wrote:
> >   * SKAS0 mode, crash:
...
> > Kernel panic - not syncing: copy_context_skas0 : failed to wait for
> > SIGUSR1/SIGTRAP, pid = 11008, n = 11008, errno = 0, status = 0xb7f
>
> Can you send a disassembly of stub_clone_handler?
>
>     Jeff

I'll see this crash and raise you.  I just tried vanilla 2.6.15-rc2, and 
although it booted to a shell it crashed with the first command I ran.  (This 
is my x86 laptop, built under ubuntu with gcc 3.3.5).  Dump and 
dissassemblies follow.


[EMAIL PROTECTED]:~/linux-2.6.15-rc2$ ./linux rootfstype=hostfs rw 
init=/bin/sh
Checking PROT_EXEC mmap in /tmp...OK
Checking for the skas3 patch in the host:
  - /proc/mm...not found
  - PTRACE_FAULTINFO...not found
  - PTRACE_LDT...not found
UML running in SKAS0 mode
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...missing
Linux version 2.6.15-rc2 ([EMAIL PROTECTED]) (gcc version 3.3.5 (Debian 
1:3.3.5-8ubuntu2)) #1 Mon Nov 21 10:31:26 CST 2005
Built 1 zonelists
Kernel command line: rootfstype=hostfs rw init=/bin/sh root=98:0
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 30592k available
Mount-cache hash table entries: 512
Checking for host processor cmov support...Yes
Checking for host processor xmm support...No
Checking that host ptys support output SIGIO...Yes
Checking that host ptys support SIGIO on close...No, enabling workaround
Checking for /dev/anon on the host...Not available (open failed with errno 2)
Linux NoNET1.0 for Linux 2.6
Using 2.6 host AIO
io scheduler noop registered
loop: loaded (max 8 devices)
Initialized stdio console driver
Console initialized on /dev/tty0
Failed to open 'root_fs', errno = 2
VFS: Mounted root (hostfs filesystem).
idr_remove called for id=5 which is not allocated.
088a7998:  [<080fa62f>] sub_remove+0xef/0x100
088a79d8:  [<080fa66f>] idr_remove+0x2f/0xc0
088a79f0:  [<081030b2>] release_dev+0x5e2/0x700
088a7a60:  [<08102585>] init_dev+0x1b5/0x590
088a7aac:  [<0810333c>] tty_open+0x16c/0x3a0
088a7ac0:  [<080bbe50>] vfs_permission+0x20/0x30
088a7ad0:  [<080fad7a>] kobject_get+0x1a/0x30
088a7adc:  [<080b749f>] cdev_get+0xf/0x20
088a7ae4:  [<080b768f>] exact_lock+0xf/0x20
088a7b08:  [<081031d0>] tty_open+0x0/0x3a0
088a7b10:  [<080b756e>] chrdev_open+0x9e/0x140
088a7b30:  [<080b74d0>] chrdev_open+0x0/0x140
088a7b34:  [<080accd0>] __dentry_open+0x90/0x190
088a7b50:  [<080acf18>] nameidata_to_filp+0x38/0x50
088a7b6c:  [<080ace24>] filp_open+0x54/0x60
088a7b90:  [<08060b00>] strncpy_chunk_from_user+0x0/0x80
088a7bb0:  [<080ad00c>] get_unused_fd+0x6c/0xc0
088a7bd8:  [<080ad149>] do_sys_open+0x49/0x90
088a7bf4:  [<080601dc>] handle_syscall+0xec/0x100
088a7bf8:  [<080ec008>] ext2_put_super+0x78/0xb0
088a7c14:  [<080ec008>] ext2_put_super+0x78/0xb0
088a7c34:  [<080ec008>] ext2_put_super+0x78/0xb0
088a7c64:  [<0805eaa8>] handle_trap+0x28/0x130
088a7c8c:  [<0805f114>] userspace+0x1c4/0x220
088a7cd8:  [<08055f50>] init+0x0/0x170
088a7ce4:  [<0805fbf2>] new_thread_handler+0xf2/0x130

sh-3.00# ls -l
Stub registers -
        0 - bffff000
        1 - 1000
        2 - 3
        3 - 11
        4 - bffff000
        5 - 0
        6 - bffff000
        7 - 7b
        8 - 7b
        9 - 0
        10 - 33
        11 - ffffffff
        12 - bfffe08d
        13 - 73
        14 - 210246
        15 - bffff7fc
        16 - 7b
Kernel panic - not syncing: copy_context_skas0 : failed to wait for 
SIGUSR1/SIGTRAP, pid = 16739, n = 16739, errno = 0, status = 0xb7f


EIP: 0073:[<ffffe410>] CPU: 0 Not tainted ESP: 007b:bfad8780 EFLAGS: 00200206
    Not tainted
EAX: ffffffda EBX: 01200011 ECX: 00000000 EDX: 00000000
ESI: 00000000 EDI: 401922e8 EBP: bfad87d8 DS: 007b ES: 007b
088a787c:  [<08080b7d>] notifier_call_chain+0x2d/0x50
088a7898:  [<08071411>] panic+0x71/0x110
088a78b0:  [<0805e8f0>] wait_stub_done+0x100/0x190
088a791c:  [<0806bc25>] ptrace_setregs+0x25/0x40
088a7930:  [<0805f320>] copy_context_skas0+0x1b0/0x270
088a7a0c:  [<0805e68a>] init_new_context_skas+0x11a/0x1a0
088a7a3c:  [<0806f872>] copy_mm+0xd2/0x380
088a7a80:  [<08070455>] copy_process+0x415/0xda0
088a7aa0:  [<0805dcb3>] setjmp_wrapper+0x83/0x90
088a7ac4:  [<0805dc67>] setjmp_wrapper+0x37/0x90
088a7ae4:  [<0805a745>] change_signals+0x65/0x90
088a7b60:  [<08070e4f>] do_fork+0x6f/0x1cc
088a7b80:  [<0807f5b4>] kernel_sigprocmask+0x64/0x140
088a7b90:  [<08060ae6>] copy_to_user_skas+0x86/0xa0
088a7ba0:  [<08060a20>] copy_chunk_to_user+0x0/0x40
088a7bc8:  [<0806ce89>] sys_clone+0x79/0xa0
088a7bf4:  [<080601dc>] handle_syscall+0xec/0x100
088a7c64:  [<0805eaa8>] handle_trap+0x28/0x130
088a7c8c:  [<0805f114>] userspace+0x1c4/0x220
088a7cd8:  [<08055f50>] init+0x0/0x170
088a7ce4:  [<0805fbf2>] new_thread_handler+0xf2/0x130


08113000 <stub_clone_handler>:
 8113000:       83 ec 14                sub    $0x14,%esp
 8113003:       ba 78 00 00 00          mov    $0x78,%edx
 8113008:       b9 fc f7 ff bf          mov    $0xbffff7fc,%ecx
 811300d:       89 5c 24 04             mov    %ebx,0x4(%esp)
 8113011:       89 d0                   mov    %edx,%eax
 8113013:       bb 11 84 00 00          mov    $0x8411,%ebx
 8113018:       89 6c 24 10             mov    %ebp,0x10(%esp)
 811301c:       bd 00 f0 ff bf          mov    $0xbffff000,%ebp
 8113021:       89 74 24 08             mov    %esi,0x8(%esp)
 8113025:       89 7c 24 0c             mov    %edi,0xc(%esp)
 8113029:       cd 80                   int    $0x80
 811302b:       85 c0                   test   %eax,%eax
 811302d:       89 c7                   mov    %eax,%edi
 811302f:       75 5c                   jne    811308d 
<stub_clone_handler+0x8d>
 8113031:       b8 1a 00 00 00          mov    $0x1a,%eax
 8113036:       89 fb                   mov    %edi,%ebx
 8113038:       89 f9                   mov    %edi,%ecx
 811303a:       89 fa                   mov    %edi,%edx
 811303c:       89 fe                   mov    %edi,%esi
 811303e:       cd 80                   int    $0x80
 8113040:       85 c0                   test   %eax,%eax
 8113042:       89 c7                   mov    %eax,%edi
 8113044:       75 47                   jne    811308d 
<stub_clone_handler+0x8d>
 8113046:       be 68 00 00 00          mov    $0x68,%esi
 811304b:       bb 01 00 00 00          mov    $0x1,%ebx
 8113050:       b9 08 f0 ff bf          mov    $0xbffff008,%ecx
 8113055:       89 f0                   mov    %esi,%eax
 8113057:       89 fa                   mov    %edi,%edx
 8113059:       cd 80                   int    $0x80
 811305b:       85 c0                   test   %eax,%eax
 811305d:       89 c7                   mov    %eax,%edi
 811305f:       75 2c                   jne    811308d 
<stub_clone_handler+0x8d>
 8113061:       8b 1d 00 f0 ff bf       mov    0xbffff000,%ebx
 8113067:       b9 00 10 00 00          mov    $0x1000,%ecx
 811306c:       ba 03 00 00 00          mov    $0x3,%edx
 8113071:       be 11 00 00 00          mov    $0x11,%esi
 8113076:       8b 3d 04 f0 ff bf       mov    0xbffff004,%edi
 811307c:       89 d8                   mov    %ebx,%eax
 811307e:       89 eb                   mov    %ebp,%ebx
 8113080:       55                      push   %ebp
 8113081:       89 c5                   mov    %eax,%ebp
 8113083:       b8 c0 00 00 00          mov    $0xc0,%eax
 8113088:       cd 80                   int    $0x80
 811308a:       5d                      pop    %ebp
 811308b:       89 c7                   mov    %eax,%edi
 811308d:       89 7d 18                mov    %edi,0x18(%ebp)
 8113090:       cc                      int3
 8113091:       8b 5c 24 04             mov    0x4(%esp),%ebx
 8113095:       8b 74 24 08             mov    0x8(%esp),%esi
 8113099:       8b 7c 24 0c             mov    0xc(%esp),%edi
 811309d:       8b 6c 24 10             mov    0x10(%esp),%ebp
 81130a1:       83 c4 14                add    $0x14,%esp
 81130a4:       c3                      ret
 81130a5:       90                      nop
 81130a6:       90                      nop
 81130a7:       90                      nop
 81130a8:       90                      nop
 81130a9:       90                      nop
 81130aa:       90                      nop
 81130ab:       90                      nop
 81130ac:       90                      nop
 81130ad:       90                      nop
 81130ae:       90                      nop
 81130af:       90                      nop

081130b0 <stub_segv_handler>:
 81130b0:       8b 44 24 5c             mov    0x5c(%esp),%eax
 81130b4:       8d 54 24 08             lea    0x8(%esp),%edx
 81130b8:       a3 04 f0 ff bf          mov    %eax,0xbffff004
 81130bd:       8b 44 24 3c             mov    0x3c(%esp),%eax
 81130c1:       a3 00 f0 ff bf          mov    %eax,0xbffff000
 81130c6:       8b 44 24 38             mov    0x38(%esp),%eax
 81130ca:       a3 08 f0 ff bf          mov    %eax,0xbffff008
 81130cf:       b8 14 00 00 00          mov    $0x14,%eax
 81130d4:       cd 80                   int    $0x80
 81130d6:       89 c3                   mov    %eax,%ebx
 81130d8:       b8 25 00 00 00          mov    $0x25,%eax
 81130dd:       b9 0a 00 00 00          mov    $0xa,%ecx
 81130e2:       cd 80                   int    $0x80
 81130e4:       89 d0                   mov    %edx,%eax
 81130e6:       89 c4                   mov    %eax,%esp
 81130e8:       b8 77 00 00 00          mov    $0x77,%eax
 81130ed:       cd 80                   int    $0x80
 81130ef:       c3                      ret

Rob


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to