[Openswan Users] Kernel panic; probably build-related

Neal Murphy neal.p.murphy at alum.wpi.edu
Sat Nov 9 00:42:18 UTC 2013


Yet again, I seem to have created a bother. I *had* this working in Smoothwall 
nicely. But then I decided to accomodate certain processors that don't have 
CMOV instructions. So I changed the build to target i586 (-march=i586
-mtune=generic). And now the kernel crashes the instant anything is sent into 
the VPN. [See the panic below.]

This is running on an Atom N270. And, once again, the problem doesn't seem to 
happen when running in a KVM on my quad Phenom II.

Is there something about openswan that requires it be built to a different 
ARCH (maybe i386)?

Thanks,
N



[  455.440051] BUG: unable to handle kernel NULL pointer dereference at 
00000006
[  455.440850] IP: [<f9d91676>] ipsec_xmit_ipip+0xc6/0x1b0 [ipsec]
[  455.440850] *pde = 00000000 
[  455.440850] Oops: 0000 [#1] PREEMPT SMP 
[  455.440850] Modules linked in: ipsec(O) camellia_generic lzo cast6 deflate 
zlib_deflate cts ctr gcm ccm ec]
[  455.440850] 
[  455.440850] Pid: 0, comm: swapper/0 Tainted: G           O 3.4.68 #1 To Be 
Filled By O.E.M. To Be Filled B.
[  455.440850] EIP: 0060:[<f9d91676>] EFLAGS: 00010246 CPU: 0
[  455.440850] EIP is at ipsec_xmit_ipip+0xc6/0x1b0 [ipsec]
[  455.440850] EAX: 00000000 EBX: f639c000 ECX: f64d783a EDX: f6e30480
[  455.440850] ESI: 000003e3 EDI: 00000000 EBP: f700bc9c ESP: f700bc98
[  455.440850]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[  455.440850] CR0: 8005003b CR2: 00000006 CR3: 016e7000 CR4: 000007c0
[  455.440850] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[  455.440850] DR6: ffff0ff0 DR7: 00000400
[  455.440850] Process swapper/0 (pid: 0, ti=f700a000 task=c162ef20 
task.ti=c1624000)
[  455.440850] Stack:
[  455.440850]  f639c000 f700bcc0 f9d94e0b c144b308 f700bcc0 f9d8eda2 0000ffff 
f639c000
[  455.440850]  f6102000 f6713a80 f700bcdc f9d8fe21 00000000 00000000 f9dbb280 
00000000
[  455.440850]  f6102000 f700bd1c c1375cc0 c1732180 0002d480 00000282 f6e25000 
f9dbb280
[  455.440850] Call Trace:
[  455.440850]  [<f9d94e0b>] ipsec_xsm+0x6b/0x1c70 [ipsec]
[  455.440850]  [<c144b308>] ? _raw_spin_unlock_bh+0x18/0x20
[  455.440850]  [<f9d8eda2>] ? ipsec_xmit_state_new+0x92/0x1a0 [ipsec]
[  455.440850]  [<f9d8fe21>] ipsec_tunnel_start_xmit+0xb1/0xe0 [ipsec]
[  455.440850]  [<c1375cc0>] dev_hard_start_xmit+0x330/0x660
[  455.440850]  [<c138d72a>] sch_direct_xmit+0x9a/0x190
[  455.440850]  [<f9d8d8d8>] ? klips_header+0xb8/0x9c0 [ipsec]
[  455.440850]  [<c1376388>] dev_queue_xmit+0x398/0x5b0
[  455.440850]  [<f9d8d6ae>] ? klips_header_cache+0x5e/0x110 [ipsec]
[  455.440850]  [<c137c72c>] neigh_resolve_output+0xfc/0x1d0
[  455.440850]  [<f9d8d820>] ? klips_header_parse+0xc0/0xc0 [ipsec]
[  455.440850]  [<c13ad705>] ip_finish_output+0xe5/0x2f0
[  455.440850]  [<c13ad620>] ? ip_fragment+0x830/0x830
[  455.440850]  [<c13ae2bf>] ip_output+0xbf/0xd0
[  455.440850]  [<c13ad620>] ? ip_fragment+0x830/0x830
[  455.440850]  [<c13aaaf9>] ip_forward_finish+0x49/0x60
[  455.440850]  [<c13aadd4>] ip_forward+0x2c4/0x3b0
[  455.440850]  [<c13aaab0>] ? ip_frag_mem+0x10/0x10
[  455.440850]  [<c13a8fd8>] ip_rcv_finish+0x58/0x380
[  455.440850]  [<c13a9960>] ip_rcv+0x270/0x350
[  455.440850]  [<c13a8f80>] ? inet_del_protocol+0x40/0x40
[  455.440850]  [<c137420d>] __netif_receive_skb+0x47d/0x5d0
[  455.440850]  [<c13744c2>] netif_receive_skb+0x22/0x90
[  455.440850]  [<c1374865>] ? dev_gro_receive+0x175/0x240
[  455.440850]  [<c13745f7>] napi_skb_finish+0x37/0x50
[  455.440850]  [<c1374dd9>] napi_gro_receive+0xe9/0x110
[  455.440850]  [<c1369a74>] ? __alloc_skb+0x64/0x200
[  455.440850]  [<f805faf8>] e1000e_set_ethtool_ops+0xbc8/0x21e0 [e1000e]
[  455.440850]  [<f8062570>] e1000e_get_stats64+0x1460/0x28c0 [e1000e]
[  455.440850]  [<f8060d1d>] e1000e_set_ethtool_ops+0x1ded/0x21e0 [e1000e]
[  455.440850]  [<c1374c08>] net_rx_action+0x118/0x200
[  455.440850]  [<c10693af>] __do_softirq+0x8f/0x1d0
[  455.440850]  [<c1069320>] ? local_bh_enable_ip+0xa0/0xa0
[  455.440850]  <IRQ> 
[  455.440850]  [<c1069795>] ? irq_exit+0x95/0xa0
[  455.440850]  [<c1036c16>] ? do_IRQ+0x46/0xb0
[  455.440850]  [<c144e6a3>] ? notifier_call_chain+0x43/0x60
[  455.440850]  [<c1451da9>] ? common_interrupt+0x29/0x30
[  455.440850]  [<c1222d4e>] ? intel_idle+0xbe/0x110
[  455.440850]  [<c12f1c55>] ? cpuidle_enter+0x15/0x20
[  455.440850]  [<c12f21d3>] ? cpuidle_idle_call+0x93/0x2f0
[  455.440850]  [<c103cb4b>] ? cpu_idle+0x5b/0xb0
[  455.440850]  [<c143a5ff>] ? rest_init+0x67/0x78
[  455.440850]  [<c166d727>] ? start_kernel+0x318/0x31e
[  455.440850]  [<c166d246>] ? repair_env_string+0x51/0x51
[  455.440850]  [<c166d078>] ? i386_start_kernel+0x78/0x7d
[  455.440850] Code: 5d c3 8d 76 00 8b 13 8b 43 1c 8b 92 98 00 00 00 0f b6 52 
01 88 50 01 eb 86 8d 74 26 00 8 
[  455.440850] EIP: [<f9d91676>] ipsec_xmit_ipip+0xc6/0x1b0 [ipsec] SS:ESP 
0068:f700bc98
[  455.440850] CR2: 0000000000000006
[  455.440850] ---[ end trace 626423a1ce3e509b ]---
[  455.440850] Kernel panic - not syncing: Fatal exception in interrupt
[  455.440850] ------------[ cut here ]------------
[  455.440850] WARNING: at arch/x86/kernel/apic/ipi.c:113 
default_send_IPI_mask_logical+0xd7/0xe0()
[  455.440850] Hardware name: To Be Filled By O.E.M.
[  455.440850] Modules linked in: ipsec(O) camellia_generic lzo cast6 deflate 
zlib_deflate cts ctr gcm ccm ec]
[  455.440850] Pid: 0, comm: swapper/0 Tainted: G      D    O 3.4.68 #1
[  455.440850] Call Trace:
[  455.440850]  [<c10635ad>] warn_slowpath_common+0x6d/0xa0
[  455.440850]  [<c1050e77>] ? default_send_IPI_mask_logical+0xd7/0xe0
[  455.440850]  [<c1050e77>] ? default_send_IPI_mask_logical+0xd7/0xe0
[  455.440850]  [<c10635fd>] warn_slowpath_null+0x1d/0x20
[  455.440850]  [<c1050e77>] default_send_IPI_mask_logical+0xd7/0xe0
[  455.440850]  [<c104fc81>] lapic_timer_broadcast+0x11/0x20
[  455.440850]  [<c10a09c5>] tick_do_broadcast.constprop.3+0x45/0x70
[  455.440850]  [<c10a0aad>] tick_handle_oneshot_broadcast+0xbd/0x100
[  455.440850]  [<c103734d>] timer_interrupt+0xd/0x20
[  455.440850]  [<c10c27d4>] handle_irq_event_percpu+0x54/0x220
[  455.440850]  [<c10c29d5>] handle_irq_event+0x35/0x60
[  455.440850]  [<c10c49b0>] ? handle_simple_irq+0x70/0x70
[  455.440850]  [<c10c4a0e>] handle_edge_irq+0x5e/0xe0
[  455.440850]  <IRQ>  [<c1036c0d>] ? do_IRQ+0x3d/0xb0
[  455.440850]  [<c144b4d8>] ? _raw_spin_unlock_irqrestore+0x18/0x40
[  455.440850]  [<c1451da9>] ? common_interrupt+0x29/0x30
[  455.440850]  [<c10600d8>] ? virt_efi_set_wakeup_time+0x48/0x50
[  455.440850]  [<c144452a>] ? panic+0x137/0x16f
[  455.440850]  [<c144c85d>] ? oops_end+0xbd/0xc0
[  455.440850]  [<c1443f73>] ? no_context+0x17a/0x182
[  455.440850]  [<c10692c2>] ? local_bh_enable_ip+0x42/0xa0
[  455.440850]  [<c14440dd>] ? __bad_area_nosemaphore+0x162/0x16a
[  455.440850]  [<c144e230>] ? spurious_fault+0x9a/0x9a
[  455.440850]  [<c14440f7>] ? bad_area_nosemaphore+0x12/0x14
[  455.440850]  [<c144e4bc>] ? do_page_fault+0x28c/0x430
[  455.440850]  [<c13a69ce>] ? ip_route_output_flow+0x4e/0x60
[  455.440850]  [<f9d91535>] ? ipsec_xmit_esp_ah+0x2d5/0x350 [ipsec]
[  455.440850]  [<c144e230>] ? spurious_fault+0x9a/0x9a
[  455.440850]  [<c144c0da>] ? error_code+0x5a/0x60
[  455.440850]  [<c144e230>] ? spurious_fault+0x9a/0x9a
[  455.440850]  [<f9d91676>] ? ipsec_xmit_ipip+0xc6/0x1b0 [ipsec]
[  455.440850]  [<f9d94e0b>] ? ipsec_xsm+0x6b/0x1c70 [ipsec]
[  455.440850]  [<c144b308>] ? _raw_spin_unlock_bh+0x18/0x20
[  455.440850]  [<f9d8eda2>] ? ipsec_xmit_state_new+0x92/0x1a0 [ipsec]
[  455.440850]  [<f9d8fe21>] ? ipsec_tunnel_start_xmit+0xb1/0xe0 [ipsec]
[  455.440850]  [<c1375cc0>] ? dev_hard_start_xmit+0x330/0x660
[  455.440850]  [<c138d72a>] ? sch_direct_xmit+0x9a/0x190
[  455.440850]  [<f9d8d8d8>] ? klips_header+0xb8/0x9c0 [ipsec]
[  455.440850]  [<c1376388>] ? dev_queue_xmit+0x398/0x5b0
[  455.440850]  [<f9d8d6ae>] ? klips_header_cache+0x5e/0x110 [ipsec]
[  455.440850]  [<c137c72c>] ? neigh_resolve_output+0xfc/0x1d0
[  455.440850]  [<f9d8d820>] ? klips_header_parse+0xc0/0xc0 [ipsec]
[  455.440850]  [<c13ad705>] ? ip_finish_output+0xe5/0x2f0
[  455.440850]  [<c13ad620>] ? ip_fragment+0x830/0x830
[  455.440850]  [<c13ae2bf>] ? ip_output+0xbf/0xd0
[  455.440850]  [<c13ad620>] ? ip_fragment+0x830/0x830
[  455.440850]  [<c13aaaf9>] ? ip_forward_finish+0x49/0x60
[  455.440850]  [<c13aadd4>] ? ip_forward+0x2c4/0x3b0
[  455.440850]  [<c13aaab0>] ? ip_frag_mem+0x10/0x10
[  455.440850]  [<c13a8fd8>] ? ip_rcv_finish+0x58/0x380
[  455.440850]  [<c13a9960>] ? ip_rcv+0x270/0x350
[  455.440850]  [<c13a8f80>] ? inet_del_protocol+0x40/0x40
[  455.440850]  [<c137420d>] ? __netif_receive_skb+0x47d/0x5d0
[  455.440850]  [<c13744c2>] ? netif_receive_skb+0x22/0x90
[  455.440850]  [<c1374865>] ? dev_gro_receive+0x175/0x240
[  455.440850]  [<c13745f7>] ? napi_skb_finish+0x37/0x50
[  455.440850]  [<c1374dd9>] ? napi_gro_receive+0xe9/0x110
[  455.440850]  [<c1369a74>] ? __alloc_skb+0x64/0x200
[  455.440850]  [<f805faf8>] ? e1000e_set_ethtool_ops+0xbc8/0x21e0 [e1000e]
[  455.440850]  [<f8062570>] ? e1000e_get_stats64+0x1460/0x28c0 [e1000e]
[  455.440850]  [<f8060d1d>] ? e1000e_set_ethtool_ops+0x1ded/0x21e0 [e1000e]
[  455.440850]  [<c1374c08>] ? net_rx_action+0x118/0x200
[  455.440850]  [<c10693af>] ? __do_softirq+0x8f/0x1d0
[  455.440850]  [<c1069320>] ? local_bh_enable_ip+0xa0/0xa0
[  455.440850]  <IRQ>  [<c1069795>] ? irq_exit+0x95/0xa0
[  455.440850]  [<c1036c16>] ? do_IRQ+0x46/0xb0
[  455.440850]  [<c144e6a3>] ? notifier_call_chain+0x43/0x60
[  455.440850]  [<c1451da9>] ? common_interrupt+0x29/0x30
[  455.440850]  [<c1222d4e>] ? intel_idle+0xbe/0x110
[  455.440850]  [<c12f1c55>] ? cpuidle_enter+0x15/0x20
[  455.440850]  [<c12f21d3>] ? cpuidle_idle_call+0x93/0x2f0
[  455.440850]  [<c103cb4b>] ? cpu_idle+0x5b/0xb0
[  455.440850]  [<c143a5ff>] ? rest_init+0x67/0x78
[  455.440850]  [<c166d727>] ? start_kernel+0x318/0x31e
[  455.440850]  [<c166d246>] ? repair_env_string+0x51/0x51
[  455.440850]  [<c166d078>] ? i386_start_kernel+0x78/0x7d
[  455.440850] ---[ end trace 626423a1ce3e509c ]---
[  455.440850] ------------[ cut here ]------------
[  455.440850] WARNING: at arch/x86/kernel/apic/ipi.c:113 
default_send_IPI_mask_logical+0xd7/0xe0()
[  455.440850] Hardware name: To Be Filled By O.E.M.
[  455.440850] Modules linked in: ipsec(O) camellia_generic lzo cast6 deflate 
zlib_deflate cts ctr gcm ccm ec]
[  455.440850] Pid: 0, comm: swapper/0 Tainted: G      D W  O 3.4.68 #1
[  455.440850] Call Trace:
[  455.440850]  [<c10635ad>] warn_slowpath_common+0x6d/0xa0
[  455.440850]  [<c1050e77>] ? default_send_IPI_mask_logical+0xd7/0xe0
[  455.440850]  [<c1050e77>] ? default_send_IPI_mask_logical+0xd7/0xe0
[  455.440850]  [<c10635fd>] warn_slowpath_null+0x1d/0x20
[  455.440850]  [<c1050e77>] default_send_IPI_mask_logical+0xd7/0xe0
[  455.440850]  [<c104fc81>] lapic_timer_broadcast+0x11/0x20
[  455.440850]  [<c10a09c5>] tick_do_broadcast.constprop.3+0x45/0x70
[  455.440850]  [<c10a0aad>] tick_handle_oneshot_broadcast+0xbd/0x100
[  455.440850]  [<c103734d>] timer_interrupt+0xd/0x20
[  455.440850]  [<c10c27d4>] handle_irq_event_percpu+0x54/0x220
[  455.440850]  [<c10c29d5>] handle_irq_event+0x35/0x60
[  455.440850]  [<c10c49b0>] ? handle_simple_irq+0x70/0x70
[  455.440850]  [<c10c4a0e>] handle_edge_irq+0x5e/0xe0
[  455.440850]  <IRQ>  [<c1036c0d>] ? do_IRQ+0x3d/0xb0
[  455.440850]  [<c144b4d8>] ? _raw_spin_unlock_irqrestore+0x18/0x40
[  455.440850]  [<c1451da9>] ? common_interrupt+0x29/0x30
[  455.440850]  [<c10600d8>] ? virt_efi_set_wakeup_time+0x48/0x50
[  455.440850]  [<c144452a>] ? panic+0x137/0x16f
[  455.440850]  [<c144c85d>] ? oops_end+0xbd/0xc0
[  455.440850]  [<c1443f73>] ? no_context+0x17a/0x182
[  455.440850]  [<c10692c2>] ? local_bh_enable_ip+0x42/0xa0
[  455.440850]  [<c14440dd>] ? __bad_area_nosemaphore+0x162/0x16a
[  455.440850]  [<c144e230>] ? spurious_fault+0x9a/0x9a
[  455.440850]  [<c14440f7>] ? bad_area_nosemaphore+0x12/0x14
[  455.440850]  [<c144e4bc>] ? do_page_fault+0x28c/0x430
[  455.440850]  [<c13a69ce>] ? ip_route_output_flow+0x4e/0x60
[  455.440850]  [<f9d91535>] ? ipsec_xmit_esp_ah+0x2d5/0x350 [ipsec]
[  455.440850]  [<c144e230>] ? spurious_fault+0x9a/0x9a
[  455.440850]  [<c144c0da>] ? error_code+0x5a/0x60
[  455.440850]  [<c144e230>] ? spurious_fault+0x9a/0x9a
[  455.440850]  [<f9d91676>] ? ipsec_xmit_ipip+0xc6/0x1b0 [ipsec]
[  455.440850]  [<f9d94e0b>] ? ipsec_xsm+0x6b/0x1c70 [ipsec]
[  455.440850]  [<c144b308>] ? _raw_spin_unlock_bh+0x18/0x20
[  455.440850]  [<f9d8eda2>] ? ipsec_xmit_state_new+0x92/0x1a0 [ipsec]
[  455.440850]  [<f9d8fe21>] ? ipsec_tunnel_start_xmit+0xb1/0xe0 [ipsec]
[  455.440850]  [<c1375cc0>] ? dev_hard_start_xmit+0x330/0x660
[  455.440850]  [<c138d72a>] ? sch_direct_xmit+0x9a/0x190
[  455.440850]  [<f9d8d8d8>] ? klips_header+0xb8/0x9c0 [ipsec]
[  455.440850]  [<c1376388>] ? dev_queue_xmit+0x398/0x5b0
[  455.440850]  [<f9d8d6ae>] ? klips_header_cache+0x5e/0x110 [ipsec]
[  455.440850]  [<c137c72c>] ? neigh_resolve_output+0xfc/0x1d0
[  455.440850]  [<f9d8d820>] ? klips_header_parse+0xc0/0xc0 [ipsec]
[  455.440850]  [<c13ad705>] ? ip_finish_output+0xe5/0x2f0
[  455.440850]  [<c13ad620>] ? ip_fragment+0x830/0x830
[  455.440850]  [<c13ae2bf>] ? ip_output+0xbf/0xd0
[  455.440850]  [<c13ad620>] ? ip_fragment+0x830/0x830
[  455.440850]  [<c13aaaf9>] ? ip_forward_finish+0x49/0x60
[  455.440850]  [<c13aadd4>] ? ip_forward+0x2c4/0x3b0
[  455.440850]  [<c13aaab0>] ? ip_frag_mem+0x10/0x10
[  455.440850]  [<c13a8fd8>] ? ip_rcv_finish+0x58/0x380
[  455.440850]  [<c13a9960>] ? ip_rcv+0x270/0x350
[  455.440850]  [<c13a8f80>] ? inet_del_protocol+0x40/0x40
[  455.440850]  [<c137420d>] ? __netif_receive_skb+0x47d/0x5d0
[  455.440850]  [<c13744c2>] ? netif_receive_skb+0x22/0x90
[  455.440850]  [<c1374865>] ? dev_gro_receive+0x175/0x240
[  455.440850]  [<c13745f7>] ? napi_skb_finish+0x37/0x50
[  455.440850]  [<c1374dd9>] ? napi_gro_receive+0xe9/0x110
[  455.440850]  [<c1369a74>] ? __alloc_skb+0x64/0x200
[  455.440850]  [<f805faf8>] ? e1000e_set_ethtool_ops+0xbc8/0x21e0 [e1000e]
[  455.440850]  [<f8062570>] ? e1000e_get_stats64+0x1460/0x28c0 [e1000e]
[  455.440850]  [<f8060d1d>] ? e1000e_set_ethtool_ops+0x1ded/0x21e0 [e1000e]
[  455.440850]  [<c1374c08>] ? net_rx_action+0x118/0x200
[  455.440850]  [<c10693af>] ? __do_softirq+0x8f/0x1d0
[  455.440850]  [<c1069320>] ? local_bh_enable_ip+0xa0/0xa0
[  455.440850]  <IRQ>  [<c1069795>] ? irq_exit+0x95/0xa0
[  455.440850]  [<c1036c16>] ? do_IRQ+0x46/0xb0
[  455.440850]  [<c144e6a3>] ? notifier_call_chain+0x43/0x60
[  455.440850]  [<c1451da9>] ? common_interrupt+0x29/0x30
[  455.440850]  [<c1222d4e>] ? intel_idle+0xbe/0x110
[  455.440850]  [<c12f1c55>] ? cpuidle_enter+0x15/0x20
[  455.440850]  [<c12f21d3>] ? cpuidle_idle_call+0x93/0x2f0
[  455.440850]  [<c103cb4b>] ? cpu_idle+0x5b/0xb0
[  455.440850]  [<c143a5ff>] ? rest_init+0x67/0x78
[  455.440850]  [<c166d727>] ? start_kernel+0x318/0x31e
[  455.440850]  [<c166d246>] ? repair_env_string+0x51/0x51
[  455.440850]  [<c166d078>] ? i386_start_kernel+0x78/0x7d
[  455.440850] ---[ end trace 626423a1ce3e509d ]---


More information about the Users mailing list