====================================== | | [ 27.499140][ C3] ------------[ cut here ]------------ | [ 27.499520][ C3] kernel BUG at net/core/skbuff.c:3505! | [ 27.499737][ C3] invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 27.500155][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 27.500492][ C3] RIP: 0010:__skb_checksum (net/core/skbuff.c:3505 (discriminator 1)) [ 27.500656][ C3] Code: 44 89 14 24 ff d0 0f 1f 00 4c 8b 44 24 08 44 8b 14 24 41 89 c1 eb a5 89 e8 e9 2d fe ff ff 41 ff d5 0f 1f 00 e9 1f fa ff ff 90 <0f> 0b 48 8b 7c 24 10 89 54 24 48 48 89 44 24 40 e8 e7 53 8d fe 8b All code ======== 0: 44 89 14 24 mov %r10d,(%rsp) 4: ff d0 call *%rax 6: 0f 1f 00 nopl (%rax) 9: 4c 8b 44 24 08 mov 0x8(%rsp),%r8 e: 44 8b 14 24 mov (%rsp),%r10d 12: 41 89 c1 mov %eax,%r9d 15: eb a5 jmp 0xffffffffffffffbc 17: 89 e8 mov %ebp,%eax 19: e9 2d fe ff ff jmp 0xfffffffffffffe4b 1e: 41 ff d5 call *%r13 21: 0f 1f 00 nopl (%rax) 24: e9 1f fa ff ff jmp 0xfffffffffffffa48 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 48 8b 7c 24 10 mov 0x10(%rsp),%rdi 31: 89 54 24 48 mov %edx,0x48(%rsp) 35: 48 89 44 24 40 mov %rax,0x40(%rsp) 3a: e8 e7 53 8d fe call 0xfffffffffe8d5426 3f: 8b .byte 0x8b Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 48 8b 7c 24 10 mov 0x10(%rsp),%rdi 7: 89 54 24 48 mov %edx,0x48(%rsp) b: 48 89 44 24 40 mov %rax,0x40(%rsp) 10: e8 e7 53 8d fe call 0xfffffffffe8d53fc 15: 8b .byte 0x8b [ 27.501193][ C3] RSP: 0018:ffffc90000278920 EFLAGS: 00010202 [ 27.501379][ C3] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 1ffff11000d4add9 [ 27.501598][ C3] RDX: 0000000000000040 RSI: 0000000000000000 RDI: ffff888006a56ec8 [ 27.501819][ C3] RBP: 0000000000000000 R08: ffffc900002789e0 R09: fffffbfff7b6a5a2 [ 27.502037][ C3] R10: ffffffffbdb52d17 R11: ffffc90000278b20 R12: 0000000000000000 [ 27.502258][ C3] R13: 0000000000000000 R14: ffffc900002789e0 R15: ffff888005851cc8 [ 27.502479][ C3] FS: 00007f668bc2b300(0000) GS:ffff888036180000(0000) knlGS:0000000000000000 [ 27.502733][ C3] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 27.502917][ C3] CR2: 00007f668beba840 CR3: 000000000567c004 CR4: 0000000000770ef0 [ 27.503136][ C3] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 27.503355][ C3] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 27.503575][ C3] PKRU: 55555554 [ 27.503688][ C3] Call Trace: [ 27.503798][ C3] [ 27.503873][ C3] ? die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434 arch/x86/kernel/dumpstack.c:447) [ 27.503987][ C3] ? do_trap (arch/x86/kernel/traps.c:113 arch/x86/kernel/traps.c:154) [ 27.504098][ C3] ? __skb_checksum (net/core/skbuff.c:3505 (discriminator 1)) [ 27.504249][ C3] ? do_error_trap (./arch/x86/include/asm/traps.h:58 arch/x86/kernel/traps.c:175) [ 27.504397][ C3] ? __skb_checksum (net/core/skbuff.c:3505 (discriminator 1)) [ 27.504544][ C3] ? __skb_checksum (net/core/skbuff.c:3505 (discriminator 1)) [ 27.504690][ C3] ? handle_invalid_op (arch/x86/kernel/traps.c:213) [ 27.504838][ C3] ? __skb_checksum (net/core/skbuff.c:3505 (discriminator 1)) [ 27.504984][ C3] ? exc_invalid_op (arch/x86/kernel/traps.c:265) [ 27.505133][ C3] ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:568) [ 27.505283][ C3] ? __skb_checksum (net/core/skbuff.c:3505 (discriminator 1)) [ 27.505438][ C3] __skb_checksum_complete (net/core/skbuff.c:3643) [ 27.505585][ C3] ? __pfx___skb_checksum_complete (net/core/skbuff.c:3637) [ 27.505761][ C3] ? __pfx_csum_partial_ext (./include/net/checksum.h:120) [ 27.505904][ C3] ? __pfx_csum_block_add_ext (./include/net/checksum.h:103) [ 27.506050][ C3] icmp_rcv (./include/linux/skbuff.h:4567 net/ipv4/icmp.c:1213) [ 27.506160][ C3] ip_protocol_deliver_rcu (net/ipv4/ip_input.c:205 (discriminator 5)) [ 27.506307][ C3] ip_local_deliver_finish (./include/linux/rcupdate.h:779 net/ipv4/ip_input.c:234) [ 27.506454][ C3] ip_local_deliver (./include/linux/netfilter.h:314 ./include/linux/netfilter.h:308 net/ipv4/ip_input.c:254) [ 27.506597][ C3] ? __pfx_ip_local_deliver (net/ipv4/ip_input.c:243) [ 27.506744][ C3] ? ip_rcv_finish_core.constprop.0 (./include/linux/skbuff.h:1136 ./include/linux/skbuff.h:1188 net/ipv4/ip_input.c:390) [ 27.506925][ 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) [ 27.507033][ C3] ? __pfx_ip_rcv (net/ipv4/ip_input.c:562) [ 27.507176][ C3] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 27.507324][ C3] ? process_backlog (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/dev.c:6051) [ 27.507489][ C3] ? __pfx_ip_rcv (net/ipv4/ip_input.c:562) [ 27.507636][ C3] __netif_receive_skb_one_core (net/core/dev.c:5610 (discriminator 4)) [ 27.507825][ C3] ? __pfx___netif_receive_skb_one_core (net/core/dev.c:5603) [ 27.508006][ C3] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 27.508149][ C3] ? process_backlog (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/dev.c:6051) [ 27.508294][ C3] process_backlog (./include/linux/rcupdate.h:779 net/core/dev.c:6053) [ 27.508437][ C3] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 27.508584][ C3] __napi_poll.constprop.0 (net/core/dev.c:6703) [ 27.508729][ C3] net_rx_action (net/core/dev.c:6772 net/core/dev.c:6886) [ 27.508874][ C3] ? __pfx_net_rx_action (net/core/dev.c:6850) [ 27.509020][ C3] ? usage_skip (kernel/locking/lockdep.c:2295 kernel/locking/lockdep.c:2263) [ 27.509165][ C3] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 27.509307][ C3] ? hrtimer_interrupt (kernel/time/hrtimer.c:1828) [ 27.509453][ C3] __do_softirq (kernel/softirq.c:553) [ 27.509598][ C3] ? __neigh_event_send (./include/linux/bottom_half.h:33 net/core/neighbour.c:1245) [ 27.509769][ C3] do_softirq (kernel/softirq.c:454 kernel/softirq.c:441) [ 27.509884][ C3] [ 27.509960][ C3] [ 27.510034][ C3] __local_bh_enable_ip (kernel/softirq.c:381) [ 27.510184][ C3] __neigh_event_send (./arch/x86/include/asm/jump_label.h:27 ./include/linux/jump_label.h:207 ./include/trace/events/neigh.h:237 net/core/neighbour.c:1246) [ 27.510331][ C3] neigh_resolve_output (net/core/neighbour.c:1547) [ 27.510478][ C3] ? __local_bh_enable_ip (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:77 kernel/softirq.c:386) [ 27.510626][ C3] ? ___neigh_create (net/core/neighbour.c:722 (discriminator 9)) [ 27.510774][ C3] ip_finish_output2 (./include/net/neighbour.h:542 net/ipv4/ip_output.c:235) [ 27.510930][ C3] ? __pfx_get_random_u32 (drivers/char/random.c:532) [ 27.511075][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 27.511221][ C3] ? __pfx_raw_getfrag (net/ipv4/raw.c:446) [ 27.511364][ C3] ? __pfx_ip_finish_output2 (net/ipv4/ip_output.c:199) [ 27.511515][ 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) [ 27.511660][ C3] ip_output (./include/linux/netfilter.h:303 net/ipv4/ip_output.c:433) [ 27.511770][ C3] ? __ip_local_out (net/ipv4/ip_output.c:96 net/ipv4/ip_output.c:107) [ 27.511913][ C3] ? __pfx_ip_output (net/ipv4/ip_output.c:427) [ 27.512057][ C3] ? __ip_make_skb (net/ipv4/ip_output.c:1379 net/ipv4/ip_output.c:1487) [ 27.512202][ C3] ? __pfx_raw_getfrag (net/ipv4/raw.c:446) [ 27.512345][ C3] ? ip_append_data (net/ipv4/ip_output.c:1368 net/ipv4/ip_output.c:1347) [ 27.512493][ C3] ip_push_pending_frames (./include/net/dst.h:450 net/ipv4/ip_output.c:129 net/ipv4/ip_output.c:1496 net/ipv4/ip_output.c:1516) [ 27.512638][ C3] raw_sendmsg (net/ipv4/raw.c:648) [ 27.512781][ C3] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 27.512928][ C3] ? __pfx_raw_sendmsg (net/ipv4/raw.c:476) [ 27.513071][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 27.513217][ C3] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 27.513362][ C3] ? __lock_release (kernel/locking/lockdep.c:5430) [ 27.513505][ C3] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 27.513653][ C3] ? __pfx___lock_release (kernel/locking/lockdep.c:5406) [ 27.513797][ 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) [ 27.513943][ C3] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 27.514084][ C3] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 27.514231][ C3] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 27.514374][ C3] ? __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 27.514522][ C3] __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 27.514668][ C3] ? __pfx___sys_sendto (net/socket.c:2161) [ 27.514814][ C3] ? do_user_addr_fault (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 ./include/linux/mm.h:686 arch/x86/mm/fault.c:1357) [ 27.514962][ C3] ? reacquire_held_locks (kernel/locking/lockdep.c:5279) [ 27.515108][ C3] ? __lock_release (kernel/locking/lockdep.c:5430) [ 27.515250][ C3] ? do_user_addr_fault (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 ./include/linux/mm.h:688 arch/x86/mm/fault.c:1357) [ 27.515395][ C3] ? __pfx___lock_release (kernel/locking/lockdep.c:5406) [ 27.515544][ C3] ? __up_read (./arch/x86/include/asm/atomic64_64.h:79 ./include/linux/atomic/atomic-arch-fallback.h:2735 ./include/linux/atomic/atomic-long.h:184 ./include/linux/atomic/atomic-instrumented.h:3289 kernel/locking/rwsem.c:1347) [ 27.515688][ C3] ? __pfx___up_read (kernel/locking/rwsem.c:1339) [ 27.515832][ C3] ? do_user_addr_fault (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 ./include/linux/mm.h:688 arch/x86/mm/fault.c:1357) [ 27.515976][ C3] __x64_sys_sendto (net/socket.c:2199) [ 27.516124][ C3] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 27.516301][ C3] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 27.516448][ C3] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 27.516630][ C3] RIP: 0033:0x7f668bf0185a [ 27.516780][ C3] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 f3 0f 1e fa 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 15 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 7e c3 0f 1f 44 00 00 41 54 48 83 ec 30 44 89 All code ======== 0: d8 64 89 02 fsubs 0x2(%rcx,%rcx,4) 4: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax b: eb b8 jmp 0xffffffffffffffc5 d: 0f 1f 00 nopl (%rax) 10: f3 0f 1e fa endbr64 14: 41 89 ca mov %ecx,%r10d 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 15 jne 0x38 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 7e ja 0xb0 32: c3 ret 33: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 38: 41 54 push %r12 3a: 48 83 ec 30 sub $0x30,%rsp 3e: 44 rex.R 3f: 89 .byte 0x89 Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 7e ja 0x86 8: c3 ret 9: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) e: 41 54 push %r12 10: 48 83 ec 30 sub $0x30,%rsp 14: 44 rex.R 15: 89 .byte 0x89 [ 27.517292][ C3] RSP: 002b:00007ffdfaa37d48 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 27.517512][ C3] RAX: ffffffffffffffda RBX: 0000000000000038 RCX: 00007f668bf0185a [ 27.517729][ C3] RDX: 0000000000000040 RSI: 0000000000923340 RDI: 0000000000000005 [ 27.517947][ C3] RBP: 00007ffdfaa37da0 R08: 00000000004185e0 R09: 0000000000000010 [ 27.518178][ C3] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000054 Finger prints: __skb_checksum:__skb_checksum_complete:icmp_rcv:ip_protocol_deliver_rcu