====================================== | | [ 44.128900][ C3] ------------[ cut here ]------------ | [ 44.129431][ C3] kernel BUG at net/core/skbuff.c:2813! | [ 44.129665][ C3] invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 44.130150][ C3] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 44.130541][ C3] RIP: 0010:__pskb_pull_tail (net/core/skbuff.c:2813 (discriminator 1)) [ 44.130772][ C3] Code: e9 52 f7 ff ff 48 8b 7c 24 38 be 02 00 00 00 e8 8e 9c ff ff 48 83 c4 58 31 c0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc 90 <0f> 0b 48 c7 44 24 38 00 00 00 00 e9 dc fa ff ff 84 c9 0f 84 4b f9 All code ======== 0: e9 52 f7 ff ff jmp 0xfffffffffffff757 5: 48 8b 7c 24 38 mov 0x38(%rsp),%rdi a: be 02 00 00 00 mov $0x2,%esi f: e8 8e 9c ff ff call 0xffffffffffff9ca2 14: 48 83 c4 58 add $0x58,%rsp 18: 31 c0 xor %eax,%eax 1a: 5b pop %rbx 1b: 41 5c pop %r12 1d: 41 5d pop %r13 1f: 41 5e pop %r14 21: 41 5f pop %r15 23: 5d pop %rbp 24: c3 ret 25: cc int3 26: cc int3 27: cc int3 28: cc int3 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 48 c7 44 24 38 00 00 movq $0x0,0x38(%rsp) 33: 00 00 35: e9 dc fa ff ff jmp 0xfffffffffffffb16 3a: 84 c9 test %cl,%cl 3c: 0f .byte 0xf 3d: 84 4b f9 test %cl,-0x7(%rbx) Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 48 c7 44 24 38 00 00 movq $0x0,0x38(%rsp) 9: 00 00 b: e9 dc fa ff ff jmp 0xfffffffffffffaec 10: 84 c9 test %cl,%cl 12: 0f .byte 0xf 13: 84 4b f9 test %cl,-0x7(%rbx) [ 44.131389][ C3] RSP: 0018:ffffc90000278858 EFLAGS: 00010282 [ 44.131612][ C3] RAX: 00000000fffffff2 RBX: ffff88803a16a974 RCX: 0000000000000004 [ 44.131873][ C3] RDX: dffffc0000000000 RSI: 1ffff11000d5f299 RDI: ffff888006af94c8 [ 44.132133][ C3] RBP: ffffc900002788d8 R08: 0000000000000014 R09: ffff88803a16a9bc [ 44.132404][ C3] R10: ffff88803a16a9c0 R11: ffff88803a16a9c0 R12: ffff88803a16a900 [ 44.132665][ C3] R13: 0000000000000100 R14: 0000000000000000 R15: 1ffff9200004f137 [ 44.132927][ C3] FS: 00007fed121da740(0000) GS:ffff88802f780000(0000) knlGS:0000000000000000 [ 44.133231][ C3] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 44.133452][ C3] CR2: 00007fed1231bff0 CR3: 0000000008012003 CR4: 0000000000770ef0 [ 44.133713][ C3] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 44.133972][ C3] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 44.134235][ C3] PKRU: 55555554 [ 44.134366][ C3] Call Trace: [ 44.134497][ C3] [ 44.134585][ C3] ? die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434 arch/x86/kernel/dumpstack.c:447) [ 44.134721][ C3] ? do_trap (arch/x86/kernel/traps.c:113 arch/x86/kernel/traps.c:154) [ 44.134855][ C3] ? __pskb_pull_tail (net/core/skbuff.c:2813 (discriminator 1)) [ 44.135030][ C3] ? do_error_trap (./arch/x86/include/asm/traps.h:58 arch/x86/kernel/traps.c:175) [ 44.135203][ C3] ? __pskb_pull_tail (net/core/skbuff.c:2813 (discriminator 1)) [ 44.135376][ C3] ? __pskb_pull_tail (net/core/skbuff.c:2813 (discriminator 1)) [ 44.135549][ C3] ? handle_invalid_op (arch/x86/kernel/traps.c:213) [ 44.135723][ C3] ? __pskb_pull_tail (net/core/skbuff.c:2813 (discriminator 1)) [ 44.135899][ C3] ? exc_invalid_op (arch/x86/kernel/traps.c:265) [ 44.136076][ C3] ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:568) [ 44.136253][ C3] ? __pskb_pull_tail (net/core/skbuff.c:2813 (discriminator 1)) [ 44.136428][ C3] ? __pskb_pull_tail (net/core/skbuff.c:2813) [ 44.136604][ C3] tcp_v4_rcv (./include/linux/skbuff.h:2731 ./include/linux/skbuff.h:2739 net/ipv4/tcp_ipv4.c:2181) [ 44.136786][ C3] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 44.136963][ C3] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 44.137138][ C3] ? raw_v4_input (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:783 net/ipv4/raw.c:189) [ 44.137315][ C3] ? __pfx_tcp_v4_rcv (net/ipv4/tcp_ipv4.c:2163) [ 44.137491][ C3] ? __pfx_raw_v4_input (net/ipv4/raw.c:165) [ 44.137665][ C3] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 44.137839][ C3] ip_protocol_deliver_rcu (net/ipv4/ip_input.c:207 (discriminator 8)) [ 44.138016][ C3] ip_local_deliver_finish (./include/linux/rcupdate.h:779 net/ipv4/ip_input.c:234) [ 44.138196][ C3] ip_local_deliver (./include/linux/netfilter.h:314 ./include/linux/netfilter.h:308 net/ipv4/ip_input.c:254) [ 44.138371][ C3] ? __pfx_ip_local_deliver (net/ipv4/ip_input.c:243) [ 44.138547][ C3] ? ip_rcv_finish_core.constprop.0 (./include/net/net_namespace.h:383 ./include/linux/netdevice.h:2654 net/ipv4/ip_input.c:372) [ 44.138767][ 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) [ 44.138899][ C3] ? __pfx_ip_rcv (net/ipv4/ip_input.c:562) [ 44.139074][ C3] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 44.139245][ C3] ? process_backlog (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/dev.c:6051) [ 44.139420][ C3] ? __pfx_ip_rcv (net/ipv4/ip_input.c:562) [ 44.139593][ C3] __netif_receive_skb_one_core (net/core/dev.c:5610 (discriminator 4)) [ 44.139809][ C3] ? __pfx___netif_receive_skb_one_core (net/core/dev.c:5603) [ 44.140025][ C3] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 44.140198][ C3] ? process_backlog (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/dev.c:6051) [ 44.140372][ C3] process_backlog (./include/linux/rcupdate.h:779 net/core/dev.c:6053) [ 44.140547][ C3] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 44.140722][ C3] __napi_poll.constprop.0 (net/core/dev.c:6703) [ 44.140899][ C3] net_rx_action (net/core/dev.c:6772 net/core/dev.c:6886) [ 44.141077][ C3] ? __pfx_net_rx_action (net/core/dev.c:6850) [ 44.141253][ C3] ? usage_skip (kernel/locking/lockdep.c:2295 kernel/locking/lockdep.c:2263) [ 44.141427][ C3] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 44.141602][ C3] __do_softirq (kernel/softirq.c:553) [ 44.141778][ C3] ? __dev_queue_xmit (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:818 net/core/dev.c:4399) [ 44.141953][ C3] do_softirq (kernel/softirq.c:454 kernel/softirq.c:441) [ 44.142086][ C3] [ 44.142175][ C3] [ 44.142267][ C3] __local_bh_enable_ip (kernel/softirq.c:381) [ 44.142441][ C3] ? __dev_queue_xmit (./include/linux/rcupdate.h:308 ./include/linux/rcupdate.h:818 net/core/dev.c:4399) [ 44.142614][ C3] __dev_queue_xmit (net/core/dev.c:4400) [ 44.142788][ C3] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 44.142964][ C3] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 44.143181][ C3] ? __pfx___dev_queue_xmit (net/core/dev.c:4281) [ 44.143356][ C3] ? neigh_hh_output (./include/linux/seqlock.h:74 ./include/linux/seqlock.h:772 ./include/net/neighbour.h:496) [ 44.143533][ C3] ip_finish_output2 (./include/net/neighbour.h:540 net/ipv4/ip_output.c:235) [ 44.143707][ C3] ? __pfx_ip_finish_output2 (net/ipv4/ip_output.c:199) [ 44.143880][ 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) [ 44.144059][ C3] ip_output (./include/linux/netfilter.h:303 net/ipv4/ip_output.c:433) [ 44.144190][ C3] ? __pfx_ip_output (net/ipv4/ip_output.c:427) [ 44.144363][ C3] ? __pfx_lock_acquire.part.0 (kernel/locking/lockdep.c:5719) [ 44.144538][ C3] ? ip_local_out (./include/linux/skbuff.h:1136 ./include/net/dst.h:450 net/ipv4/ip_output.c:129) [ 44.144713][ C3] __ip_queue_xmit (net/ipv4/ip_output.c:535 (discriminator 4)) [ 44.144886][ C3] ? __skb_clone (./arch/x86/include/asm/atomic.h:53 (discriminator 4) ./include/linux/atomic/atomic-arch-fallback.h:992 (discriminator 4) ./include/linux/atomic/atomic-instrumented.h:436 (discriminator 4) net/core/skbuff.c:1605 (discriminator 4)) [ 44.145059][ C3] __tcp_transmit_skb (net/ipv4/tcp_output.c:1462 (discriminator 4)) [ 44.145235][ C3] ? __pfx___tcp_transmit_skb (net/ipv4/tcp_output.c:1283) [ 44.145408][ C3] ? __lock_release (kernel/locking/lockdep.c:5430) [ 44.145580][ C3] ? tcp_write_xmit (net/ipv4/tcp_output.c:57 net/ipv4/tcp_output.c:2713) [ 44.145753][ C3] ? __pfx___lock_release (kernel/locking/lockdep.c:5406) [ 44.145931][ C3] ? tcp_small_queue_check.isra.0 (./arch/x86/include/asm/atomic.h:23 ./include/linux/atomic/atomic-arch-fallback.h:457 ./include/linux/atomic/atomic-instrumented.h:33 ./include/linux/refcount.h:136 net/ipv4/tcp_output.c:2623) [ 44.146148][ C3] tcp_write_xmit (net/ipv4/tcp_output.c:2792) [ 44.146322][ C3] ? __pfx_tcp_write_xmit (net/ipv4/tcp_output.c:2702) [ 44.146497][ C3] ? __pfx_tcp_set_state (net/ipv4/tcp.c:2595) [ 44.146670][ C3] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4346) [ 44.146888][ C3] __tcp_push_pending_frames (net/ipv4/tcp_output.c:2977) [ 44.147064][ C3] __tcp_close (net/ipv4/tcp.c:2842) [ 44.147237][ C3] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 44.147453][ C3] tcp_close (net/ipv4/tcp.c:2932) [ 44.147583][ C3] tls_sk_proto_close (net/tls/tls_main.c:398) tls [ 44.147769][ C3] ? __sock_release (net/socket.c:659) [ 44.147944][ C3] ? __pfx_tls_sk_proto_close (net/tls/tls_main.c:369) tls [ 44.148168][ C3] ? down_write (./arch/x86/include/asm/atomic64_64.h:20 ./include/linux/atomic/atomic-arch-fallback.h:2615 ./include/linux/atomic/atomic-long.h:79 ./include/linux/atomic/atomic-instrumented.h:3196 kernel/locking/rwsem.c:143 kernel/locking/rwsem.c:261 kernel/locking/rwsem.c:1305 kernel/locking/rwsem.c:1315 kernel/locking/rwsem.c:1580) [ 44.148343][ C3] ? ip_mc_drop_socket (net/ipv4/igmp.c:2698) [ 44.148518][ C3] ? __pfx_down_write (kernel/locking/rwsem.c:1577) [ 44.148694][ C3] inet_release (net/ipv4/af_inet.c:436) [ 44.148868][ C3] __sock_release (net/socket.c:659) [ 44.149040][ C3] sock_close (net/socket.c:1423) [ 44.149171][ C3] __fput (fs/file_table.c:376) [ 44.149305][ C3] __x64_sys_close (fs/open.c:1557 fs/open.c:1539 fs/open.c:1539) [ 44.149479][ C3] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 44.149654][ C3] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 44.149875][ C3] RIP: 0033:0x7fed1231c007 [ 44.150060][ C3] Code: ff e8 fd e2 01 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 41 c3 48 83 ec 18 89 7c 24 0c e8 c3 cb f5 ff All code ======== 0: ff (bad) 1: e8 fd e2 01 00 call 0x1e303 6: 66 2e 0f 1f 84 00 00 cs nopw 0x0(%rax,%rax,1) d: 00 00 00 10: 0f 1f 00 nopl (%rax) 13: f3 0f 1e fa endbr64 17: 64 8b 04 25 18 00 00 mov %fs:0x18,%eax 1e: 00 1f: 85 c0 test %eax,%eax 21: 75 10 jne 0x33 23: b8 03 00 00 00 mov $0x3,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 41 ja 0x73 32: c3 ret 33: 48 83 ec 18 sub $0x18,%rsp 37: 89 7c 24 0c mov %edi,0xc(%rsp) 3b: e8 c3 cb f5 ff call 0xfffffffffff5cc03 Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 41 ja 0x49 8: c3 ret 9: 48 83 ec 18 sub $0x18,%rsp d: 89 7c 24 0c mov %edi,0xc(%rsp) 11: e8 c3 cb f5 ff call 0xfffffffffff5cbd9 [ 44.150668][ C3] RSP: 002b:00007ffc8e6138b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 [ 44.150932][ C3] RAX: ffffffffffffffda RBX: 0000000000420cc0 RCX: 00007fed1231c007 [ 44.151190][ C3] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 [ 44.151451][ C3] RBP: 0000000000423140 R08: 0000000000000028 R09: 0000000000000000 [ 44.151714][ C3] R10: 00007fed121ecce0 R11: 0000000000000246 R12: 000000000000005a Finger prints: __pskb_pull_tail:tcp_v4_rcv:ip_protocol_deliver_rcu:ip_local_deliver_finish