====================================== | [ 27.504612][ T238] ip (238) used greatest stack depth: 24048 bytes left | [ 36.309124][ C3] ------------[ cut here ]------------ | [ 36.309466][ C3] kernel BUG at net/core/skbuff.c:3605! | [ 36.309662][ C3] invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 36.310095][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 36.310450][ C3] RIP: 0010:skb_copy_and_csum_bits (net/core/skbuff.c:3605 (discriminator 1)) [ 36.310671][ C3] Code: 89 c4 0f 84 70 fe ff ff 45 01 f7 48 01 dd 44 89 7c 24 0c e9 92 fa ff ff 90 0f 0b 90 e9 e2 fe ff ff 41 89 c4 e9 4f fe ff ff 90 <0f> 0b 48 c7 c7 c0 d2 69 ae 89 44 24 40 48 89 74 24 38 e8 68 60 8d All code ======== 0: 89 c4 mov %eax,%esp 2: 0f 84 70 fe ff ff je 0xfffffffffffffe78 8: 45 01 f7 add %r14d,%r15d b: 48 01 dd add %rbx,%rbp e: 44 89 7c 24 0c mov %r15d,0xc(%rsp) 13: e9 92 fa ff ff jmp 0xfffffffffffffaaa 18: 90 nop 19: 0f 0b ud2 1b: 90 nop 1c: e9 e2 fe ff ff jmp 0xffffffffffffff03 21: 41 89 c4 mov %eax,%r12d 24: e9 4f fe ff ff jmp 0xfffffffffffffe78 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 48 c7 c7 c0 d2 69 ae mov $0xffffffffae69d2c0,%rdi 33: 89 44 24 40 mov %eax,0x40(%rsp) 37: 48 89 74 24 38 mov %rsi,0x38(%rsp) 3c: e8 .byte 0xe8 3d: 68 .byte 0x68 3e: 60 (bad) 3f: 8d .byte 0x8d Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 48 c7 c7 c0 d2 69 ae mov $0xffffffffae69d2c0,%rdi 9: 89 44 24 40 mov %eax,0x40(%rsp) d: 48 89 74 24 38 mov %rsi,0x38(%rsp) 12: e8 .byte 0xe8 13: 68 .byte 0x68 14: 60 (bad) 15: 8d .byte 0x8d [ 36.311230][ C3] RSP: 0018:ffffc900002783f8 EFLAGS: 00010206 [ 36.311445][ C3] RAX: 000000000000005a RBX: 0000000000000000 RCX: 1ffff11000cd9641 [ 36.311701][ C3] RDX: dffffc0000000000 RSI: dffffc0000000000 RDI: ffff8880066cb208 [ 36.311950][ C3] RBP: ffff8880066ca108 R08: 000000000000001c R09: 0100007fb7871140 [ 36.312183][ C3] R10: 0100007f0100007f R11: 75fe620035004cd6 R12: 00000000000059d5 [ 36.312420][ C3] R13: 0000000000000008 R14: 000000000000001c R15: 0000000000000008 [ 36.312663][ C3] FS: 00007f8818d02f00(0000) GS:ffff888036180000(0000) knlGS:0000000000000000 [ 36.312938][ C3] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 36.313155][ C3] CR2: 00007f8818f5fd60 CR3: 0000000005e8c005 CR4: 0000000000770ef0 [ 36.313414][ C3] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 36.313665][ C3] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 36.313904][ C3] PKRU: 55555554 [ 36.314036][ C3] Call Trace: [ 36.314156][ C3] [ 36.314234][ C3] ? die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434 arch/x86/kernel/dumpstack.c:447) [ 36.314354][ C3] ? do_trap (arch/x86/kernel/traps.c:113 arch/x86/kernel/traps.c:154) [ 36.314473][ C3] ? skb_copy_and_csum_bits (net/core/skbuff.c:3605 (discriminator 1)) [ 36.314629][ C3] ? do_error_trap (./arch/x86/include/asm/traps.h:58 arch/x86/kernel/traps.c:175) [ 36.314784][ C3] ? skb_copy_and_csum_bits (net/core/skbuff.c:3605 (discriminator 1)) [ 36.314936][ C3] ? skb_copy_and_csum_bits (net/core/skbuff.c:3605 (discriminator 1)) [ 36.315093][ C3] ? handle_invalid_op (arch/x86/kernel/traps.c:213) [ 36.315247][ C3] ? skb_copy_and_csum_bits (net/core/skbuff.c:3605 (discriminator 1)) [ 36.315403][ C3] ? exc_invalid_op (arch/x86/kernel/traps.c:265) [ 36.315558][ C3] ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:568) [ 36.315726][ C3] ? skb_copy_and_csum_bits (net/core/skbuff.c:3605 (discriminator 1)) [ 36.315891][ C3] ? skb_copy_and_csum_bits (net/core/skbuff.c:3540) [ 36.316055][ C3] ? icmp_push_reply (net/ipv4/icmp.c:370) [ 36.316214][ C3] ? __udp4_lib_rcv (net/ipv4/udp.c:2441 (discriminator 118)) [ 36.316375][ C3] ? __netif_receive_skb_one_core (net/core/dev.c:5610 (discriminator 4)) [ 36.316566][ C3] ? process_backlog (./include/linux/rcupdate.h:779 net/core/dev.c:6053) [ 36.316723][ C3] ? __napi_poll.constprop.0 (net/core/dev.c:6703) [ 36.316885][ C3] ? net_rx_action (net/core/dev.c:6772 net/core/dev.c:6886) [ 36.317039][ C3] icmp_glue_bits (net/ipv4/icmp.c:357) [ 36.317195][ C3] __ip_append_data (net/ipv4/ip_output.c:1166 (discriminator 1)) [ 36.317362][ C3] ? __pfx_icmp_glue_bits (net/ipv4/icmp.c:349) [ 36.317517][ C3] ? __create_object (mm/kmemleak.c:756) [ 36.317671][ C3] ? __pfx___ip_append_data (net/ipv4/ip_output.c:960) [ 36.317829][ C3] ? kasan_save_track (./arch/x86/include/asm/current.h:42 mm/kasan/common.c:60 mm/kasan/common.c:69) [ 36.317981][ C3] ? __kasan_kmalloc (mm/kasan/common.c:391) [ 36.318136][ C3] ? __pfx_icmp_glue_bits (net/ipv4/icmp.c:349) [ 36.318293][ C3] ip_append_data (net/ipv4/ip_output.c:1368 net/ipv4/ip_output.c:1347) [ 36.318447][ C3] icmp_push_reply (net/ipv4/icmp.c:370) [ 36.318601][ C3] __icmp_send (./include/net/route.h:249 net/ipv4/icmp.c:772) [ 36.318764][ C3] ? _raw_spin_unlock (./arch/x86/include/asm/preempt.h:94 ./include/linux/spinlock_api_smp.h:143 kernel/locking/spinlock.c:186) [ 36.318921][ C3] ? __pfx___icmp_send (net/ipv4/icmp.c:589) [ 36.319075][ C3] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 36.319234][ C3] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 36.319393][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 36.319547][ C3] ? get_stack_info (arch/x86/kernel/dumpstack_64.c:199) [ 36.319713][ C3] ? __udp4_lib_lookup (net/ipv4/udp.c:513) [ 36.319870][ C3] ? __udp4_lib_rcv (net/ipv4/udp.c:2441 (discriminator 118)) [ 36.320024][ C3] __udp4_lib_rcv (net/ipv4/udp.c:2441 (discriminator 118)) [ 36.320184][ C3] ? __pfx___udp4_lib_rcv (net/ipv4/udp.c:2363) [ 36.320339][ C3] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 36.320492][ C3] ? alloc_chain_hlocks (kernel/locking/lockdep.c:3501) [ 36.320653][ C3] ip_protocol_deliver_rcu (net/ipv4/ip_input.c:207 (discriminator 4)) [ 36.320814][ C3] ip_local_deliver_finish (./include/linux/rcupdate.h:779 net/ipv4/ip_input.c:234) [ 36.320973][ C3] ip_local_deliver (./include/linux/netfilter.h:314 ./include/linux/netfilter.h:308 net/ipv4/ip_input.c:254) [ 36.321136][ C3] ? __pfx_ip_local_deliver (net/ipv4/ip_input.c:243) [ 36.321291][ C3] ? ip_rcv_finish_core.constprop.0 (./include/net/net_namespace.h:383 ./include/linux/netdevice.h:2654 net/ipv4/ip_input.c:372) [ 36.321490][ C3] ip_rcv (./include/net/dst.h:460 net/ipv4/ip_input.c:449 ./include/linux/netfilter.h:314 ./include/linux/netfilter.h:308 net/ipv4/ip_input.c:569) [ 36.321610][ C3] ? __pfx_ip_rcv (net/ipv4/ip_input.c:562) [ 36.321764][ C3] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 36.321916][ C3] ? process_backlog (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/dev.c:6051) [ 36.322072][ C3] ? __pfx_ip_rcv (net/ipv4/ip_input.c:562) [ 36.322225][ C3] __netif_receive_skb_one_core (net/core/dev.c:5610 (discriminator 4)) [ 36.322415][ C3] ? __pfx___netif_receive_skb_one_core (net/core/dev.c:5603) [ 36.322608][ C3] ? __pfx_do_raw_spin_lock (kernel/locking/spinlock_debug.c:114) [ 36.322765][ C3] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 36.322916][ C3] ? process_backlog (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/dev.c:6051) [ 36.323073][ C3] process_backlog (./include/linux/rcupdate.h:779 net/core/dev.c:6053) [ 36.323230][ C3] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 36.323384][ C3] __napi_poll.constprop.0 (net/core/dev.c:6703) [ 36.323538][ C3] net_rx_action (net/core/dev.c:6772 net/core/dev.c:6886) [ 36.323704][ C3] ? __pfx_net_rx_action (net/core/dev.c:6850) [ 36.323855][ C3] ? kvm_clock_get_cycles (./arch/x86/include/asm/preempt.h:94 arch/x86/kernel/kvmclock.c:80 arch/x86/kernel/kvmclock.c:86) [ 36.324014][ C3] ? ktime_get (kernel/time/timekeeping.c:195 (discriminator 4) kernel/time/timekeeping.c:289 (discriminator 4) kernel/time/timekeeping.c:388 (discriminator 4) kernel/time/timekeeping.c:848 (discriminator 4)) [ 36.324133][ C3] ? hrtimer_interrupt (kernel/time/hrtimer.c:1828) [ 36.324286][ C3] ? hrtimer_interrupt (kernel/time/hrtimer.c:1828) [ 36.324438][ C3] __do_softirq (kernel/softirq.c:553) [ 36.324596][ C3] ? __dev_queue_xmit (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:818 net/core/dev.c:4399) [ 36.324749][ C3] do_softirq (kernel/softirq.c:454 kernel/softirq.c:441) [ 36.324865][ C3] [ 36.324943][ C3] [ 36.325025][ C3] __local_bh_enable_ip (kernel/softirq.c:381) [ 36.325196][ C3] ? __dev_queue_xmit (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:818 net/core/dev.c:4399) [ 36.325350][ C3] __dev_queue_xmit (net/core/dev.c:4400) [ 36.325504][ C3] ? __pfx_do_raw_write_lock (kernel/locking/spinlock_debug.c:209) [ 36.325661][ C3] ? eth_header (net/ethernet/eth.c:100) [ 36.325829][ C3] ? __pfx___dev_queue_xmit (net/core/dev.c:4281) [ 36.325981][ C3] ? neigh_resolve_output (./include/linux/netdevice.h:3226 net/core/neighbour.c:1558 net/core/neighbour.c:1543) [ 36.326143][ C3] ip_finish_output2 (./include/net/neighbour.h:542 net/ipv4/ip_output.c:235) [ 36.326295][ C3] ? kfree (./include/trace/events/kmem.h:94 mm/slub.c:4396) [ 36.326415][ C3] ? ip_select_ident_segs (./arch/x86/include/asm/atomic.h:85 ./include/linux/atomic/atomic-arch-fallback.h:564 ./include/linux/atomic/atomic-instrumented.h:124 ./include/net/ip.h:561) [ 36.326573][ C3] ? __pfx_ip_finish_output2 (net/ipv4/ip_output.c:199) [ 36.326728][ C3] ? __ip_finish_output (./include/linux/skbuff.h:1624 ./include/linux/skbuff.h:4942 net/ipv4/ip_output.c:307 net/ipv4/ip_output.c:295) [ 36.326881][ C3] ip_output (./include/linux/netfilter.h:303 net/ipv4/ip_output.c:433) [ 36.327004][ C3] ? __ip_local_out (net/ipv4/ip_output.c:96 net/ipv4/ip_output.c:107) [ 36.327156][ C3] ? __pfx_ip_output (net/ipv4/ip_output.c:427) [ 36.327309][ C3] ? ip_make_skb (net/ipv4/ip_output.c:1570) [ 36.327466][ C3] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 36.327627][ C3] ? __pfx_ip_make_skb (net/ipv4/ip_output.c:1546) [ 36.327780][ C3] ? __lock_release (kernel/locking/lockdep.c:5430) [ 36.327933][ C3] ip_send_skb (./include/net/dst.h:450 net/ipv4/ip_output.c:129 net/ipv4/ip_output.c:1496) [ 36.328091][ C3] udp_send_skb (net/ipv4/udp.c:963) [ 36.328249][ C3] udp_sendmsg (net/ipv4/udp.c:1250) [ 36.328405][ C3] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 36.328559][ C3] ? __pfx_ip_generic_getfrag (net/ipv4/ip_output.c:935) [ 36.328714][ C3] ? __pfx_udp_sendmsg (net/ipv4/udp.c:1039) [ 36.328872][ C3] ? hlock_class (./arch/x86/include/asm/bitops.h:227 ./arch/x86/include/asm/bitops.h:239 ./include/asm-generic/bitops/instrumented-non-atomic.h:142 kernel/locking/lockdep.c:228) [ 36.329034][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 36.329191][ C3] ? release_sock (net/core/sock.c:3549) [ 36.329344][ C3] ? reacquire_held_locks (kernel/locking/lockdep.c:5279) [ 36.329503][ C3] ? release_sock (net/core/sock.c:3549) [ 36.329656][ C3] ? __fget_light (./include/linux/atomic/atomic-arch-fallback.h:479 ./include/linux/atomic/atomic-instrumented.h:50 fs/file.c:1145) [ 36.329809][ C3] ? __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 36.329962][ C3] __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 36.330116][ C3] ? __pfx___sys_sendto (net/socket.c:2161) [ 36.330268][ C3] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 36.330425][ C3] ? ip4_datagram_connect (net/ipv4/datagram.c:93) [ 36.330580][ C3] ? __sys_connect (net/socket.c:2048 net/socket.c:2065) [ 36.330735][ C3] ? __pfx___sys_connect (net/socket.c:2055) [ 36.330889][ C3] ? __pfx___sys_setsockopt (net/socket.c:2324) [ 36.331042][ C3] ? __x64_sys_poll (fs/select.c:1082 fs/select.c:1068 fs/select.c:1068) [ 36.331195][ C3] ? __pfx___x64_sys_poll (fs/select.c:1068) [ 36.331354][ C3] __x64_sys_sendto (net/socket.c:2199) [ 36.331507][ C3] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 36.331699][ C3] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 36.331861][ C3] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 36.332052][ C3] RIP: 0033:0x7f8818f3b700 [ 36.332210][ C3] Code: ff ff 64 89 02 eb bd 0f 1f 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 1d 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 68 c3 0f 1f 80 00 00 00 00 41 54 48 83 ec 20 All code ======== 0: ff (bad) 1: ff 64 89 02 jmp *0x2(%rcx,%rcx,4) 5: eb bd jmp 0xffffffffffffffc4 7: 0f 1f 00 nopl (%rax) a: f3 0f 1e fa endbr64 e: 41 89 ca mov %ecx,%r10d 11: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 18: 00 19: 85 c0 test %eax,%eax 1b: 75 1d jne 0x3a 1d: 45 31 c9 xor %r9d,%r9d 20: 45 31 c0 xor %r8d,%r8d 23: b8 2c 00 00 00 mov $0x2c,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 68 ja 0x9a 32: c3 ret 33: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 3a: 41 54 push %r12 3c: 48 83 ec 20 sub $0x20,%rsp Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 68 ja 0x70 8: c3 ret 9: 0f 1f 80 00 00 00 00 nopl 0x0(%rax) 10: 41 54 push %r12 12: 48 83 ec 20 sub $0x20,%rsp [ 36.332770][ C3] RSP: 002b:00007ffd4a273888 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 36.333001][ C3] RAX: ffffffffffffffda RBX: 000000000000005a RCX: 00007f8818f3b700 [ 36.333237][ C3] RDX: 000000000000005a RSI: 00007ffd4a273c10 RDI: 0000000000000008 [ 36.333565][ C3] RBP: 0000000024a5c280 R08: 0000000000000000 R09: 0000000000000000 [ 36.333800][ C3] R10: 0000000000004000 R11: 0000000000000246 R12: 00007ffd4a273980 Finger prints: skb_copy_and_csum_bits:icmp_glue_bits:__ip_append_data:ip_append_data