[Openswan Users] RES: openswan crashing kernel (long)

Giovani Moda giovani at mrinformatica.com.br
Mon Jul 6 15:35:53 EDT 2009


> That's unfortunate. I do not know why KLIPS would cause those problems
> on newer versions.

Okay, whatever was happening on FC5 is still happening on FC7. Here's
what I've got today on a brand new install, same stuff I was using on
FC5 (IMQ, L7 and NAT-T) compiled on kernel 2.6.23.17-88.fc7:

Jul  3 17:11:05 backup kernel: BUG: unable to handle kernel paging
request at virtual address f8f655ba
Jul  3 17:11:05 backup kernel:  printing eip:
Jul  3 17:11:05 backup kernel: f8f655ba
Jul  3 17:11:05 backup kernel: *pde = 36f93067
Jul  3 17:11:05 backup kernel: *pte = 00000000
Jul  3 17:11:05 backup kernel: Oops: 0000 [#1]
Jul  3 17:11:05 backup kernel: SMP
Jul  3 17:11:05 backup kernel: Modules linked in: deflate(U)
zlib_deflate(U) twofish(U) twofish_common(U) camellia(U) serpent(U)
blowfish(U) cbc(U) ecb(U) blkcipher(U) xcbc(U) crypto_null(U)
xfrm4_tunnel(U) tunnel4(U) ipcomp(U) esp4(U) ah4(U) aes(U) des(U)
sha256(U) af_key(U) autofs4(U) hidp(U) fuse(U) rfcomm(U) l2cap(U)
bluetooth(U) sunrpc(U) ipv6(U) dm_multipath(U) video(U) output(U) sbs(U)
battery(U) ac(U) button(U) i2c_viapro(U) pcspkr(U) i2c_core(U)
via_rhine(U) mii(U) skge(U) sg(U) dm_snapshot(U) dm_zero(U) dm_mirror(U)
dm_mod(U) pata_via(U) ata_generic(U) sata_via(U) libata(U) sd_mod(U)
scsi_mod(U) ext3(U) jbd(U) mbcache(U) ehci_hcd(U) ohci_hcd(U)
uhci_hcd(U)
Jul  3 17:11:05 backup kernel: CPU:    0
Jul  3 17:11:05 backup kernel: EIP:    0060:[<f8f655ba>]    Not tainted
VLI
Jul  3 17:11:05 backup kernel: EFLAGS: 00010282   (2.6.23.17-88_mr.fc7
#1)
Jul  3 17:11:05 backup kernel: EIP is at 0xf8f655ba
Jul  3 17:11:05 backup kernel: eax: f7744800   ebx: c0719a00   ecx:
f6c71c6c   edx: f8f655ba
Jul  3 17:11:05 backup kernel: esi: f7726400   edi: f7744800   ebp:
00000000   esp: f6c71c48
Jul  3 17:11:05 backup kernel: ds: 007b   es: 007b   fs: 00d8  gs: 0033
ss: 0068
Jul  3 17:11:05 backup kernel: Process nmbd (pid: 2450, ti=f6c71000
task=f6c4c000 task.ti=f6c71000)
Jul  3 17:11:05 backup kernel: Stack: c05c1a0d f6c71c6c c047d596
00200200 f6c79018 ffffffff f6ede2ec c0733780
Jul  3 17:11:05 backup kernel:        c0427c5b 00000000 00000000
00000000 00000000 00000000 00000000 00000000
Jul  3 17:11:05 backup kernel:        00000000 f7744800 f6e5fe40
00000003 f7726400 c05c1d27 00000992 4a4e65d9
Jul  3 17:11:05 backup kernel: Call Trace:
Jul  3 17:11:05 backup kernel:  [<c05c1a0d>]
rtnl_fill_ifinfo+0x2e4/0x5a9
Jul  3 17:11:05 backup kernel:  [<c047d596>] __slab_alloc+0x41a/0x466
Jul  3 17:11:05 backup kernel:  [<c0427c5b>]
default_wake_function+0x0/0xc
Jul  3 17:11:05 backup kernel:  [<c05c1d27>] rtnl_dump_ifinfo+0x55/0x7d
Jul  3 17:11:05 backup kernel:  [<c05ce38a>] netlink_dump+0x4b/0x15e
Jul  3 17:11:05 backup kernel:  [<c05d0328>]
netlink_dump_start+0xf9/0x11c
Jul  3 17:11:05 backup kernel:  [<c05c1cd2>] rtnl_dump_ifinfo+0x0/0x7d
Jul  3 17:11:05 backup kernel:  [<c05c1e85>]
rtnetlink_rcv_msg+0xbc/0x1bb
Jul  3 17:11:05 backup kernel:  [<c05c1cd2>] rtnl_dump_ifinfo+0x0/0x7d
Jul  3 17:11:05 backup kernel:  [<c05cf20c>] netlink_run_queue+0x5c/0xd2
Jul  3 17:11:05 backup kernel:  [<c05c1dc9>] rtnetlink_rcv_msg+0x0/0x1bb
Jul  3 17:11:05 backup kernel:  [<c05c1d88>] rtnetlink_rcv+0x25/0x3d
Jul  3 17:11:05 backup kernel:  [<c05cf681>]
netlink_data_ready+0x12/0x4c
Jul  3 17:11:05 backup kernel:  [<c05ce625>] netlink_sendskb+0x19/0x30
Jul  3 17:11:05 backup kernel:  [<c05cef08>] netlink_unicast+0x1a8/0x1b4
Jul  3 17:11:05 backup kernel:  [<c05cf663>] netlink_sendmsg+0x274/0x280
Jul  3 17:11:05 backup kernel:  [<c05b0b3d>] sock_sendmsg+0xd0/0xeb
Jul  3 17:11:05 backup kernel:  [<c043d3c5>]
autoremove_wake_function+0x0/0x35
Jul  3 17:11:05 backup kernel:  [<c0426492>] __wake_up+0x32/0x43
Jul  3 17:11:05 backup kernel:  [<c05ce882>] netlink_insert+0x10f/0x119
Jul  3 17:11:05 backup kernel:  [<c04f57a8>] copy_from_user+0x32/0x5e
Jul  3 17:11:05 backup kernel:  [<c05b14a0>] sys_sendto+0x115/0x135
Jul  3 17:11:05 backup kernel:  [<c05b1b22>] sys_getsockname+0x86/0xb0
Jul  3 17:11:05 backup kernel:  [<c05b33f1>] sock_init_data+0x83/0x187
Jul  3 17:11:05 backup kernel:  [<c05ce312>] __netlink_create+0x75/0x8c
Jul  3 17:11:05 backup kernel:  [<c04a42c6>]
inotify_d_instantiate+0x4a/0x70
Jul  3 17:11:05 backup kernel:  [<c048fece>] d_alloc+0x141/0x16f
Jul  3 17:11:05 backup kernel:  [<c048fd89>] d_instantiate+0x5c/0x60
Jul  3 17:11:05 backup kernel:  [<c05b0839>] sock_attach_fd+0x53/0xb2
Jul  3 17:11:05 backup kernel:  [<c05b1e98>] sys_socketcall+0x17b/0x261
Jul  3 17:11:05 backup kernel:  [<c040518a>] syscall_call+0x7/0xb
Jul  3 17:11:05 backup kernel:  =======================
Jul  3 17:11:05 backup kernel: Code:  Bad EIP value.
Jul  3 17:11:05 backup kernel: EIP: [<f8f655ba>] 0xf8f655ba SS:ESP
0068:f6c71c48
Jul  3 17:11:14 backup kernel: BUG: unable to handle kernel paging
request at virtual address f8fa9ac0
Jul  3 17:11:14 backup kernel:  printing eip:
Jul  3 17:11:14 backup kernel: c04b4f7d
Jul  3 17:11:14 backup kernel: *pde = 36f93067
Jul  3 17:11:14 backup kernel: *pte = 00000000
Jul  3 17:11:14 backup kernel: Oops: 0000 [#2]
Jul  3 17:11:14 backup kernel: SMP
Jul  3 17:11:14 backup kernel: Modules linked in: deflate(U)
zlib_deflate(U) twofish(U) twofish_common(U) camellia(U) serpent(U)
blowfish(U) cbc(U) ecb(U) blkcipher(U) xcbc(U) crypto_null(U)
xfrm4_tunnel(U) tunnel4(U) ipcomp(U) esp4(U) ah4(U) aes(U) des(U)
sha256(U) af_key(U) autofs4(U) hidp(U) fuse(U) rfcomm(U) l2cap(U)
bluetooth(U) sunrpc(U) ipv6(U) dm_multipath(U) video(U) output(U) sbs(U)
battery(U) ac(U) button(U) i2c_viapro(U) pcspkr(U) i2c_core(U)
via_rhine(U) mii(U) skge(U) sg(U) dm_snapshot(U) dm_zero(U) dm_mirror(U)
dm_mod(U) pata_via(U) ata_generic(U) sata_via(U) libata(U) sd_mod(U)
scsi_mod(U) ext3(U) jbd(U) mbcache(U) ehci_hcd(U) ohci_hcd(U)
uhci_hcd(U)
Jul  3 17:11:14 backup kernel: CPU:    0
Jul  3 17:11:14 backup kernel: EIP:    0060:[<c04b4f7d>]    Tainted: G
D VLI
Jul  3 17:11:14 backup kernel: EFLAGS: 00210286   (2.6.23.17-88_mr.fc7
#1)
Jul  3 17:11:14 backup kernel: EIP is at
proc_sys_lookup_table_one+0x2a/0x3d
Jul  3 17:11:14 backup kernel: eax: f8fa9ac0   ebx: f8fa9ac0   ecx:
f8fa9ac0   edx: f7f459ac
Jul  3 17:11:14 backup kernel: esi: f7f459ac   edi: f7f45990   ebp:
f68e5e10   esp: f68e5de0
Jul  3 17:11:14 backup kernel: ds: 007b   es: 007b   fs: 00d8  gs: 0033
ss: 0068
Jul  3 17:11:14 backup kernel: Process ifconfig (pid: 3091, ti=f68e5000
task=f6e4b230 task.ti=f68e5000)
Jul  3 17:11:14 backup kernel: Stack: 00000001 00000001 c04b4fc1
f6fc6540 f6c54f84 f7f45990 c04b4ff0 f6c54f68
Jul  3 17:11:14 backup kernel:        fffffffe f791f010 f791f084
c04b5589 f7f45990 c0702e00 f6c54f68 f791f010
Jul  3 17:11:14 backup kernel:        c04873d0 f68e5e80 f68e5e74
f68e5f44 f7d20280 bc3e5113 f68e5f44 f791f010
Jul  3 17:11:14 backup kernel: Call Trace:
Jul  3 17:11:14 backup kernel:  [<c04b4fc1>]
proc_sys_lookup_table+0x31/0x49
Jul  3 17:11:14 backup kernel:  [<c04b4ff0>]
do_proc_sys_lookup+0x17/0x3d
Jul  3 17:11:14 backup kernel:  [<c04b5589>] proc_sys_lookup+0x1c/0x5b
Jul  3 17:11:14 backup kernel:  [<c04873d0>] do_lookup+0xa3/0x140
Jul  3 17:11:14 backup kernel:  [<c0489199>]
__link_path_walk+0x795/0xbaf
Jul  3 17:11:14 backup kernel:  [<c04443be>]
tick_program_event+0x33/0x52
Jul  3 17:11:14 backup kernel:  [<c044046b>]
hrtimer_interrupt+0x192/0x1bb
Jul  3 17:11:14 backup kernel:  [<c04895f7>] link_path_walk+0x44/0xb3
Jul  3 17:11:14 backup kernel:  [<c05b08d9>] sock_map_fd+0x41/0x4a
Jul  3 17:11:14 backup kernel:  [<c05b11fd>] sys_socket+0x29/0x3e
Jul  3 17:11:14 backup kernel:  [<c05b1d97>] sys_socketcall+0x7a/0x261
Jul  3 17:11:14 backup kernel:  [<c04898df>] do_path_lookup+0x162/0x1c7
Jul  3 17:11:14 backup kernel:  [<c0488729>] getname+0x59/0xad
Jul  3 17:11:14 backup kernel:  [<c048a0b3>] __user_walk_fd+0x2f/0x40
Jul  3 17:11:14 backup kernel:  [<c04800a5>] sys_faccessat+0x9c/0x132
Jul  3 17:11:14 backup kernel:  [<c05b08d9>] sock_map_fd+0x41/0x4a
Jul  3 17:11:14 backup kernel:  [<c05b11fd>] sys_socket+0x29/0x3e
Jul  3 17:11:14 backup kernel:  [<c05b1d97>] sys_socketcall+0x7a/0x261
Jul  3 17:11:14 backup kernel:  [<c048015a>] sys_access+0x1f/0x23
Jul  3 17:11:14 backup kernel:  [<c040518a>] syscall_call+0x7/0xb
Jul  3 17:11:14 backup kernel:  =======================
Jul  3 17:11:14 backup kernel: Code: c3 56 89 d6 53 89 c3 eb 22 85 c0 74
1b e8 d9 03 04 00 3b 46 04 89 c1 75 0f 8b 56 08 8b 43 04 e8 3d ec 03 00
85 c0 74 11 83 c3 2c <83> 3b 00 8b 43 04 75 d6 85 c0 75 d6 31 db 89 d8
5b 5e c3 57 89
Jul  3 17:11:14 backup kernel: EIP: [<c04b4f7d>]
proc_sys_lookup_table_one+0x2a/0x3d SS:ESP 0068:f68e5de0

>From a more severe crash, where I got a hardware lock up, all I could
get was a few of the first and last two lines:

Jul  6 12:12:01 backup2 kernel: BUG: unable to handle kernel NULL
pointer dereference at virtual address 000000a6
Jul  6 12:12:01 backup2 kernel:  printing eip:
Jul  6 12:12:01 backup2 kernel: 000000a6
Jul  6 12:12:01 backup2 kernel: *pde = 76405067
Jul  6 12:12:01 backup2 kernel: Oops: 0000 [#1]
Jul  6 12:12:01 backup2 kernel: SMP

Jul  6 12:12:01 backup2 kernel: kernel: EIP: [<c04f71fb>]
__list_add+0x2a/0x5c SS:ESP 00.9:f6429e98
Jul  6 12:12:01 backup2 kernel: kernel: fatal exception in interrupt

Those happened on openswan 2.4.12, 2.4.14 and 2.4.15. Right now I'm
recompiling without IMQ and L7 to see how it goes.

Unfortunately I can't fall back to 2.4.9 with kernel 2.6.23, so I'm
thinking about drop the ball on 2.4.x and move on to 2.6.x. But what I
really need to know is if bug #1004 is still biting. I read a while ago
on the list that it does not affect KLIPS, is that correct? If so, I can
go on and try it out. And what about multiple clients behind the same
router, is there any documentation available on how to set it up? Is it
possible with KLIPS?

Sorry about the overlapping questions, but I've searched around and
haven't found answers to those.

Thanks,


Giovani 


More information about the Users mailing list