Am Montag, 27. Februar 2006 09:51 schrieb Marcus Blomenkamp:
> ...

As a pure guess i disabled host kernel preemption which seems to cure the 
"signal 7" problem. Nevertheless i do also get various other kernel panics, 
which i cannot relate or not relate to preemption. Appended to this mail are 
some sample panics.

While the above panics all happened in skas0 mode i also did a test in tt 
mode. In this case the machine does not even do a proper boot. Below is a 
console excerpt, as id did not result in a full panic.

[42949374.090000] device eth1 entered promiscuous mode
+ ip link set dev eth1 up
[42949374.090000] br0: port 2(eth1) entering learning state
+ ip addr add dev br0 192.168.1.70/24 brd +
+ ip route add default via 192.168.1.10
INIT: PANIC: segmentation violation at 0x44a7! sleeping for 30 seconds.

Best regards, Marcus
Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
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
[42949372.960000] Linux version 2.6.15.4-bs2 ([EMAIL PROTECTED]) (gcc version 
3.3.3 20040110 (prerelease) (Debian)) #5 Sun Feb 26 19:03:59 CET 2006
[42949372.960000] Built 1 zonelists
[42949372.960000] Kernel command line: mem=16M 
ubd0=/cow/uml-t0/ubd0,/root/uml-images/uml-t0 
eth0=tuntap,tap-uml-t0-0,fe:fd:10:00:00:00 
eth1=tuntap,tap-uml-t0-1,fe:fd:10:00:00:01 con=pts con0=fd:0,fd:1 root=98:0
[42949372.960000] PID hash table entries: 128 (order: 7, 2048 bytes)
[42949372.960000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[42949372.960000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[42949372.960000] Memory: 13556k available
[42949373.210000] Mount-cache hash table entries: 512
[42949373.210000] Checking for host processor cmov support...Yes
[42949373.210000] Checking for host processor xmm support...No
[42949373.210000] Checking that host ptys support output SIGIO...Yes
[42949373.210000] Checking that host ptys support SIGIO on close...No, enabling 
workaround
[42949373.210000] Checking for /dev/anon on the host...Not available (open 
failed with errno 2)
[42949373.210000] /usr/include/linux/aio_abi.h not present during build
[42949373.210000] 2.6 host AIO support not used - falling back to I/O thread
[42949373.210000] NET: Registered protocol family 16
[42949373.210000] mconsole (version 2) initialized on 
/home/uml-services//.uml/uml-t0/mconsole
[42949373.210000] Netdevice 0 (fe:fd:10:00:00:00) : TUN/TAP backend - 
[42949373.210000] Netdevice 1 (fe:fd:10:00:00:01) : TUN/TAP backend - 
[42949373.210000] io scheduler noop registered
[42949373.210000] io scheduler cfq registered
[42949373.210000] netem: version 1.1
[42949373.210000] u32 classifier
[42949373.210000]     Perfomance counters on
[42949373.210000]     input device check on 
[42949373.210000] NET: Registered protocol family 2
[42949373.330000] IP route cache hash table entries: 256 (order: -2, 1024 bytes)
[42949373.330000] TCP established hash table entries: 1024 (order: 0, 4096 
bytes)
[42949373.330000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[42949373.330000] TCP: Hash tables configured (established 1024 bind 1024)
[42949373.330000] TCP reno registered
[42949373.330000] TCP bic registered
[42949373.330000] NET: Registered protocol family 1
[42949373.330000] NET: Registered protocol family 17
[42949373.330000] Ebtables v2.0 registered
[42949373.620000] Initialized stdio console driver
[42949373.620000] Console initialized on /dev/tty0
[42949373.620000] Initializing software serial port version 1
[42949373.620000] Creating "/cow/uml-t0/ubd0" as COW file for 
"/root/uml-images/uml-t0"
[42949373.620000]  ubda: unknown partition table
[42949373.670000] kjournald starting.  Commit interval 5 seconds
[42949373.670000] EXT3-fs: mounted filesystem with ordered data mode.
[42949373.670000] VFS: Mounted root (ext3 filesystem) readonly.
[42949374.450000] line_ioctl: tty0: ioctl KDSIGACCEPT called

INIT: version 2.84 booting
+ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ mount -n -t devpts devpts /dev/pts
+ mount -n -t proc proc /proc
+ mount -n -t tmpfs volatile /tmp
+ hostname debian
+ ip addr add dev lo 127.0.0.1/8
+ ip link set dev lo up
+ brctl addbr br0
+ ip link set dev br0 up
+ brctl addif br0 eth0
[42949376.200000] device eth0 entered promiscuous mode
+ ip link set dev eth0 up
[42949376.200000] br0: port 1(eth0) entering learning state
+ brctl addif br0 eth1
[42949376.250000] device eth1 entered promiscuous mode
+ ip link set dev eth1 up
[42949376.250000] br0: port 2(eth1) entering learning state
+ ip addr add dev br0 192.168.1.70/24 brd +
+ ip route add default via 192.168.1.10

INIT: Entering runlevel: 2
[42949376.380000] Virtual console 3 assigned device '/dev/pts/40'
[42949376.380000] Virtual console 2 assigned device '/dev/pts/41'
[42949376.380000] Virtual console 1 assigned device '/dev/pts/42'
PAM_unix[30]: (login) session opened for user root by (uid=0)
PAM_unix[29]: (login) session opened for user root by (uid=0)
PAM_unix[28]: (login) session opened for user root by (uid=0)
login[30]: ROOT LOGIN on `tty3'

login[29]: ROOT LOGIN on `tty2'

login[28]: ROOT LOGIN on `tty1'

[42949391.210000] br0: topology change detected, propagating
[42949391.210000] br0: port 1(eth0) entering forwarding state
[42949391.250000] br0: topology change detected, propagating
[42949391.250000] br0: port 2(eth1) entering forwarding state
[42949441.660000] userspace - child stopped with signal 18
[42949446.640000] userspace - child stopped with signal 18
[42949446.680000] userspace - child stopped with signal 18
[42949449.880000] userspace - child stopped with signal 18
[42949464.740000] EXT3-fs warning: maximal mount count reached, running e2fsck 
is recommended
[42949464.740000] EXT3 FS on ubda, internal journal

INIT: Id "4" respawning too fast: disabled for 5 minutes

INIT: Id "5" respawning too fast: disabled for 5 minutes
[42949783.490000] Virtual console 3 assigned device '/dev/pts/40'
PAM_unix[81]: (login) session opened for user root by LOGIN(uid=0)
login[81]: ROOT LOGIN on `tty3'


INIT: Id "4" respawning too fast: disabled for 5 minutes

INIT: Id "5" respawning too fast: disabled for 5 minutes
[42950121.590000] Stub registers -
[42950121.590000]       0 - 6c18
[42950121.590000]       1 - 13
[42950121.590000]       2 - 6c18
[42950121.590000]       3 - 6bfe
[42950121.590000]       4 - 8
[42950121.590000]       5 - 0
[42950121.590000]       6 - 0
[42950121.590000]       7 - 7b
[42950121.590000]       8 - 7b
[42950121.590000]       9 - 0
[42950121.590000]       10 - 0
[42950121.590000]       11 - ffffffff
[42950121.590000]       12 - bfffe0e2
[42950121.590000]       13 - 73
[42950121.590000]       14 - 246
[42950121.590000]       15 - b7f7efd8
[42950121.590000]       16 - 7b
[42950121.590000] Kernel panic - not syncing: do_syscall_stub : failed to wait 
for SIGUSR1/SIGTRAP, pid = 28347, n = 28347, errno = 25, status = 0x127f
[42950121.590000] 
[42950121.590000]  
[42950121.590000] EIP: 0073:[<081a8e21>] CPU: 0 Not tainted ESP: 007b:b7f7efd8 
EFLAGS: 00000246
[42950121.590000]     Not tainted
[42950121.590000] EAX: 00000000 EBX: 00006c18 ECX: 00000013 EDX: 00006c18
[42950121.590000] ESI: 00006bfe EDI: 00000008 EBP: 00000000 DS: 007b ES: 007b
[42950121.590000] 088af7cc:  [<0807cf5c>] notifier_call_chain+0x1c/0x40
[42950121.590000] 088af7e8:  [<0806f07b>] panic+0x4b/0xf0
[42950121.590000] 088af7fc:  [<0805b7e9>] wait_stub_done+0xb9/0x140
[42950121.590000] 088af864:  [<08069f73>] ptrace_setregs+0x13/0x30
[42950121.590000] 088af87c:  [<0805ae63>] do_syscall_stub+0x63/0x180
[42950121.590000] 088af8d4:  [<08057f32>] enable_mask+0x32/0x40
[42950121.590000] 088af8dc:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088af8ec:  [<0805b241>] map+0x141/0x150
[42950121.590000] 088af8fc:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088af908:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088af930:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088af958:  [<0805cc79>] do_ops+0x89/0x100
[42950121.590000] 088af960:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088af998:  [<080594ed>] fix_range_common+0x11d/0x290
[42950121.590000] 088af9cc:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088af9ec:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088af9f8:  [<0805cd2a>] fix_range+0x3a/0x40
[42950121.590000] 088afa00:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088afa04:  [<08076000>] do_proc_dointvec+0x10/0x490
[42950121.590000] 088afa0c:  [<0805cbf0>] do_ops+0x0/0x100
[42950121.590000] 088afa10:  [<0805cd7a>] flush_tlb_range_skas+0x2a/0x30
[42950121.590000] 088afa18:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088afa1c:  [<08076000>] do_proc_dointvec+0x10/0x490
[42950121.590000] 088afa24:  [<0805981c>] flush_tlb_page+0x1c/0x20
[42950121.590000] 088afa2c:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088afa30:  [<08076000>] do_proc_dointvec+0x10/0x490
[42950121.590000] 088afa34:  [<0809bf3c>] page_referenced_one+0x7c/0xd0
[42950121.590000] 088afa3c:  [<08075000>] find_resource+0x60/0xe0
[42950121.590000] 088afa58:  [<0809c05e>] page_referenced_file+0x6e/0xb0
[42950121.590000] 088afa9c:  [<0809c0fb>] page_referenced+0x5b/0x80
[42950121.590000] 088afaac:  [<080942a2>] refill_inactive_zone+0x3a2/0x3d0
[42950121.590000] 088afb30:  [<08094365>] shrink_zone+0x95/0xe0
[42950121.590000] 088afb4c:  [<08094844>] balance_pgdat+0x274/0x370
[42950121.590000] 088afbb4:  [<08094a3e>] kswapd+0xfe/0x110
[42950121.590000] 088afbe0:  [<08084100>] autoremove_wake_function+0x0/0x40
[42950121.590000] 088afbf4:  [<081a8a42>] __sigjmp_save+0x22/0x36
[42950121.590000] 088afc00:  [<08084100>] autoremove_wake_function+0x0/0x40
[42950121.590000] 088afc28:  [<0806778f>] run_kernel_thread+0x3f/0x50
[42950121.590000] 088afc34:  [<08094940>] kswapd+0x0/0x110
[42950121.590000] 088afc44:  [<0806776d>] run_kernel_thread+0x1d/0x50
[42950121.590000] 088afcb8:  [<08057ef7>] unblock_signals+0x7/0x10
[42950121.590000] 088afcc0:  [<0806bd84>] schedule_tail+0x24/0xf0
[42950121.590000] 088afcd4:  [<08094940>] kswapd+0x0/0x110
[42950121.590000] 088afce0:  [<0805c6ea>] new_thread_handler+0xba/0x110
[42950121.590000] 088afce4:  [<08094940>] kswapd+0x0/0x110
[42950121.590000] 088afd1c:  [<081a8d68>] __restore+0x0/0x8
[42950121.590000] 088afd5c:  [<081a8e21>] __kill+0x11/0x20
[42950121.590000] 
[42950121.590000]  deactivate_all_fds failed, errno = 9

Checking that ptrace can change system call numbers...OK
Checking syscall emulation patch for ptrace...OK
Checking advanced syscall emulation patch for ptrace...OK
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
[42949372.960000] Linux version 2.6.15.4-bs2 ([EMAIL PROTECTED]) (gcc version 
3.3.3 20040110 (prerelease) (Debian)) #5 Sun Feb 26 19:03:59 CET 2006
[42949372.960000] Built 1 zonelists
[42949372.960000] Kernel command line: mem=24M 
ubd0=/cow/uml-t0/ubd0,/root/uml-images/uml-t0 
eth0=tuntap,tap-uml-t0-0,fe:fd:10:00:00:00 
eth1=tuntap,tap-uml-t0-1,fe:fd:10:00:00:01 con=pts con0=fd:0,fd:1 root=98:0
[42949372.960000] PID hash table entries: 128 (order: 7, 2048 bytes)
[42949372.960000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[42949372.960000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[42949372.960000] Memory: 21612k available
[42949373.210000] Mount-cache hash table entries: 512
[42949373.210000] Checking for host processor cmov support...Yes
[42949373.210000] Checking for host processor xmm support...No
[42949373.210000] Checking that host ptys support output SIGIO...Yes
[42949373.210000] Checking that host ptys support SIGIO on close...No, enabling 
workaround
[42949373.210000] Checking for /dev/anon on the host...Not available (open 
failed with errno 2)
[42949373.210000] /usr/include/linux/aio_abi.h not present during build
[42949373.210000] 2.6 host AIO support not used - falling back to I/O thread
[42949373.210000] NET: Registered protocol family 16
[42949373.210000] mconsole (version 2) initialized on 
/home/uml-services//.uml/uml-t0/mconsole
[42949373.210000] Netdevice 0 (fe:fd:10:00:00:00) : TUN/TAP backend - 
[42949373.210000] Netdevice 1 (fe:fd:10:00:00:01) : TUN/TAP backend - 
[42949373.210000] io scheduler noop registered
[42949373.210000] io scheduler cfq registered
[42949373.210000] netem: version 1.1
[42949373.210000] u32 classifier
[42949373.210000]     Perfomance counters on
[42949373.210000]     input device check on 
[42949373.210000] NET: Registered protocol family 2
[42949373.330000] IP route cache hash table entries: 256 (order: -2, 1024 bytes)
[42949373.330000] TCP established hash table entries: 1024 (order: 0, 4096 
bytes)
[42949373.330000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[42949373.330000] TCP: Hash tables configured (established 1024 bind 1024)
[42949373.330000] TCP reno registered
[42949373.330000] TCP bic registered
[42949373.330000] NET: Registered protocol family 1
[42949373.330000] NET: Registered protocol family 17
[42949373.330000] Ebtables v2.0 registered
[42949373.620000] Initialized stdio console driver
[42949373.620000] Console initialized on /dev/tty0
[42949373.620000] Initializing software serial port version 1
[42949373.620000] Creating "/cow/uml-t0/ubd0" as COW file for 
"/root/uml-images/uml-t0"
[42949373.620000]  ubda: unknown partition table
[42949373.620000] EXT3-fs: INFO: recovery required on readonly filesystem.
[42949373.620000] EXT3-fs: write access will be enabled during recovery.
[42949373.620000] kjournald starting.  Commit interval 5 seconds
[42949373.620000] EXT3-fs: recovery complete.
[42949373.620000] EXT3-fs: mounted filesystem with ordered data mode.
[42949373.620000] VFS: Mounted root (ext3 filesystem) readonly.
[42949373.620000] line_ioctl: tty0: ioctl KDSIGACCEPT called

INIT: version 2.84 booting
+ export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ mount -n -t devpts devpts /dev/pts
+ mount -n -t proc proc /proc
+ mount -n -t tmpfs volatile /tmp
+ hostname debian
+ ip addr add dev lo 127.0.0.1/8
+ ip link set dev lo up
+ brctl addbr br0
+ ip link set dev br0 up
+ brctl addif br0 eth0
[42949374.050000] device eth0 entered promiscuous mode
+ ip link set dev eth0 up
[42949374.080000] br0: port 1(eth0) entering learning state
+ brctl addif br0 eth1
[42949374.080000] device eth1 entered promiscuous mode
+ ip link set dev eth1 up
[42949374.100000] br0: port 2(eth1) entering learning state
+ ip addr add dev br0 192.168.1.70/24 brd +
+ ip route add default via 192.168.1.10

INIT: Entering runlevel: 2
[42949374.180000] Virtual console 3 assigned device '/dev/pts/40'
[42949374.200000] Virtual console 2 assigned device '/dev/pts/41'
[42949374.220000] Virtual console 1 assigned device '/dev/pts/42'
PAM_unix[29]: (login) session opened for user root by (uid=0)
login[29]: ROOT LOGIN on `tty2'

PAM_unix[28]: (login) session opened for user root by (uid=0)
login[28]: ROOT LOGIN on `tty1'

PAM_unix[30]: (login) session opened for user root by LOGIN(uid=0)
login[30]: ROOT LOGIN on `tty3'

[42949388.610000] EXT3-fs warning: maximal mount count reached, running e2fsck 
is recommended
[42949388.610000] EXT3 FS on ubda, internal journal
[42949389.090000] br0: topology change detected, propagating
[42949389.090000] br0: port 1(eth0) entering forwarding state
[42949389.110000] br0: topology change detected, propagating
[42949389.110000] br0: port 2(eth1) entering forwarding state
[42949401.430000] Kernel panic - not syncing: Segfault with no mm
[42949401.430000]  
[42949401.430000] EIP: 0073:[<081a8e21>] CPU: 0 Not tainted ESP: 007b:b7fe2fd8 
EFLAGS: 00000246
[42949401.430000]     Not tainted
[42949401.430000] EAX: 00000000 EBX: 000053bf ECX: 00000013 EDX: 000053bf
[42949401.430000] ESI: 000053bb EDI: 00000008 EBP: 00000000 DS: 007b ES: 007b
[42949401.430000] 088bfec8:  [<0807cf5c>] notifier_call_chain+0x1c/0x40
[42949401.520000] 088bfee4:  [<0806f07b>] panic+0x4b/0xf0
[42949401.520000] 088bfef8:  [<08059c3c>] segv+0x17c/0x290
[42949401.520000] 088bffb4:  [<08059fc0>] segv_handler+0x50/0x60
[42949401.520000] 088bffc4:  [<081a8e21>] __kill+0x11/0x20
[42949401.520000] 088bffd0:  [<0805ce78>] sig_handler_common_skas+0x78/0xd0
[42949401.520000] 088bfff0:  [<080677cf>] sig_handler+0xf/0x20
[42949401.520000] 088bfffc:  [<081a8d68>] __restore+0x0/0x8
[42949401.520000] 
[42949401.520000]  <0>Kernel panic - not syncing: Kernel mode fault at addr 
0x1e0, ip 0x0
[42949409.990000]  
[42949409.990000] EIP: 0000:[<00000000>] CPU: 0 Not tainted EFLAGS: 00000000
[42949409.990000]     Not tainted
[42949409.990000] EAX: 00000000 EBX: 00000000 ECX: 00000000 EDX: 00000000
[42949409.990000] ESI: 00000000 EDI: 00000000 EBP: 00000000 DS: 0000 ES: 0000
[42949409.990000] 0822b260:  [<0807cf5c>] notifier_call_chain+0x1c/0x40
[42949409.990000] 0822b27c:  [<0806f07b>] panic+0x4b/0xf0
[42949409.990000] 0822b290:  [<08059d24>] segv+0x264/0x290
[42949409.990000] 0822b354:  [<08059fc0>] segv_handler+0x50/0x60
[42949409.990000] 0822b370:  [<0805ce78>] sig_handler_common_skas+0x78/0xd0
[42949409.990000] 0822b390:  [<080677cf>] sig_handler+0xf/0x20
[42949409.990000] 0822b39c:  [<081a8d68>] __restore+0x0/0x8
[42949409.990000] 0822b3dc:  [<08196d63>] fn_hash_lookup+0x23/0xb0
[42949409.990000] 0822b438:  [<08057f32>] enable_mask+0x32/0x40
[42949409.990000] 0822b44c:  [<08057f5d>] get_signals+0x1d/0x40
[42949409.990000] 0822b484:  [<08057f32>] enable_mask+0x32/0x40
[42949409.990000] 0822b498:  [<08057f5d>] get_signals+0x1d/0x40
[42949409.990000] 0822b4b4:  [<0805fe78>] uml_net_start_xmit+0x68/0x110
[42949409.990000] 0822b4cc:  [<08148eb2>] qdisc_restart+0x12/0x170
[42949409.990000] 0822b4d8:  [<08074818>] local_bh_enable+0x8/0x90
[42949409.990000] 0822b4e8:  [<0813e615>] dev_queue_xmit+0x125/0x1e0
[42949409.990000] 0822b4fc:  [<0819ea77>] br_dev_queue_push_xmit+0x67/0x80
[42949409.990000] 0822b508:  [<0819ead1>] br_forward_finish+0x41/0x50
[42949409.990000] 0822b510:  [<0819eb2d>] __br_deliver+0x4d/0x50
[42949409.990000] 0822b518:  [<0819df69>] br_dev_xmit+0x69/0xa0
[42949409.990000] 0822b548:  [<08057eb4>] change_signals+0x34/0x60
[42949409.990000] 0822b568:  [<08057f32>] enable_mask+0x32/0x40
[42949409.990000] 0822b574:  [<08057fdd>] set_signals+0x5d/0xe0
[42949409.990000] 0822b5f4:  [<08057f32>] enable_mask+0x32/0x40
[42949409.990000] 0822b608:  [<08057f5d>] get_signals+0x1d/0x40
[42949409.990000] 0822b634:  [<08057f32deactivate_all_fds failed, errno = 9

Reply via email to