====================================== | [ 35.502977][ T299] Initializing XFRM netlink socket | [ 254.806172][ C0] ------------[ cut here ]------------ | [ 254.806511][ C0] kernel BUG at net/core/skbuff.c:5103! | [ 254.806711][ C0] invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 254.807127][ C0] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 254.807464][ C0] RIP: 0010:__skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 254.807627][ C0] Code: 00 0f 85 93 03 00 00 f6 02 02 0f 84 52 ff ff ff e9 73 fd ff ff 41 89 c3 e9 71 fd ff ff 45 89 e3 45 85 ff 0f 84 65 fd ff ff 90 <0f> 0b 44 89 4c 24 28 4c 89 54 24 18 44 89 5c 24 10 e8 97 93 8d fe All code ======== 0: 00 0f add %cl,(%rdi) 2: 85 93 03 00 00 f6 test %edx,-0x9fffffd(%rbx) 8: 02 02 add (%rdx),%al a: 0f 84 52 ff ff ff je 0xffffffffffffff62 10: e9 73 fd ff ff jmp 0xfffffffffffffd88 15: 41 89 c3 mov %eax,%r11d 18: e9 71 fd ff ff jmp 0xfffffffffffffd8e 1d: 45 89 e3 mov %r12d,%r11d 20: 45 85 ff test %r15d,%r15d 23: 0f 84 65 fd ff ff je 0xfffffffffffffd8e 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 44 89 4c 24 28 mov %r9d,0x28(%rsp) 31: 4c 89 54 24 18 mov %r10,0x18(%rsp) 36: 44 89 5c 24 10 mov %r11d,0x10(%rsp) 3b: e8 97 93 8d fe call 0xfffffffffe8d93d7 Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 44 89 4c 24 28 mov %r9d,0x28(%rsp) 7: 4c 89 54 24 18 mov %r10,0x18(%rsp) c: 44 89 5c 24 10 mov %r11d,0x10(%rsp) 11: e8 97 93 8d fe call 0xfffffffffe8d93ad [ 254.808146][ C0] RSP: 0018:ffffc900000076a8 EFLAGS: 00010202 [ 254.808334][ C0] RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000002 [ 254.808555][ C0] RDX: 1ffff11000ce1cd9 RSI: 1ffff11000ce1cde RDI: ffff88800670e6c8 [ 254.808775][ C0] RBP: ffffea0000251e02 R08: 0000000000000040 R09: 0000000000000058 [ 254.809000][ C0] R10: ffff88800731be00 R11: 0000000000000002 R12: 0000000000000058 [ 254.809223][ C0] R13: dffffc0000000000 R14: 0000000000000018 R15: 0000000000000040 [ 254.809446][ C0] FS: 00007fba5be86300(0000) GS:ffff888036000000(0000) knlGS:0000000000000000 [ 254.809710][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 254.809893][ C0] CR2: 00007fba5c115840 CR3: 0000000009d56006 CR4: 0000000000770ef0 [ 254.810117][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 254.810336][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 254.810553][ C0] PKRU: 55555554 [ 254.810664][ C0] Call Trace: [ 254.810776][ C0] [ 254.810851][ C0] ? die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434 arch/x86/kernel/dumpstack.c:447) [ 254.810973][ C0] ? do_trap (arch/x86/kernel/traps.c:113 arch/x86/kernel/traps.c:154) [ 254.811094][ C0] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 254.811243][ C0] ? do_error_trap (./arch/x86/include/asm/traps.h:58 arch/x86/kernel/traps.c:175) [ 254.811388][ C0] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 254.811535][ C0] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 254.811681][ C0] ? handle_invalid_op (arch/x86/kernel/traps.c:213) [ 254.811827][ C0] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 254.811974][ C0] ? exc_invalid_op (arch/x86/kernel/traps.c:265) [ 254.812125][ C0] ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:568) [ 254.812274][ C0] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 254.812419][ C0] ? __skb_to_sgvec (./include/linux/scatterlist.h:189 net/core/skbuff.c:5050) [ 254.812566][ C0] ? kasan_save_track (./arch/x86/include/asm/current.h:42 mm/kasan/common.c:60 mm/kasan/common.c:69) [ 254.812711][ C0] ? __kasan_kmalloc (mm/kasan/common.c:391) [ 254.812857][ C0] skb_to_sgvec (net/core/skbuff.c:5123) [ 254.812969][ C0] esp_output_tail (net/ipv4/esp4.c:578) [ 254.813117][ C0] ? 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) [ 254.813266][ C0] esp_xmit (net/ipv4/esp4_offload.c:342) [ 254.813377][ C0] ? __pfx_esp_xmit (net/ipv4/esp4_offload.c:257) [ 254.813524][ C0] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 254.813670][ C0] validate_xmit_xfrm (net/xfrm/xfrm_device.c:184) [ 254.813820][ C0] __dev_queue_xmit (net/core/dev.c:4364) [ 254.813967][ C0] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 254.814113][ C0] ? eth_header (net/ethernet/eth.c:100) [ 254.814258][ C0] ? __pfx___dev_queue_xmit (net/core/dev.c:4281) [ 254.814405][ C0] ? neigh_resolve_output (./include/linux/netdevice.h:3226 net/core/neighbour.c:1558 net/core/neighbour.c:1543) [ 254.814553][ C0] ? __neigh_update (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/neighbour.c:1446) [ 254.814703][ C0] __neigh_update (net/core/neighbour.c:1461) [ 254.814853][ C0] arp_process (./include/linux/instrumented.h:96 (discriminator 4) ./include/linux/atomic/atomic-instrumented.h:400 (discriminator 4) ./include/linux/refcount.h:261 (discriminator 4) ./include/linux/refcount.h:304 (discriminator 4) ./include/linux/refcount.h:322 (discriminator 4) ./include/net/neighbour.h:444 (discriminator 4) net/ipv4/arp.c:934 (discriminator 4)) [ 254.815007][ C0] ? __pfx_arp_process (net/ipv4/arp.c:699) [ 254.815153][ C0] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 254.815299][ C0] ? __pfx_arp_rcv (net/ipv4/arp.c:965) [ 254.815444][ C0] __netif_receive_skb_one_core (net/core/dev.c:5610 (discriminator 5)) [ 254.815630][ C0] ? __pfx___netif_receive_skb_one_core (net/core/dev.c:5603) [ 254.815814][ C0] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 254.815960][ C0] ? process_backlog (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/dev.c:6051) [ 254.816108][ C0] process_backlog (./include/linux/rcupdate.h:779 net/core/dev.c:6053) [ 254.816256][ C0] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 254.816404][ C0] __napi_poll.constprop.0 (net/core/dev.c:6703) [ 254.816549][ C0] net_rx_action (net/core/dev.c:6772 net/core/dev.c:6886) [ 254.816698][ C0] ? __pfx_net_rx_action (net/core/dev.c:6850) [ 254.816844][ C0] ? usage_skip (kernel/locking/lockdep.c:2295 kernel/locking/lockdep.c:2263) [ 254.816992][ C0] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 254.817139][ C0] ? hrtimer_interrupt (kernel/time/hrtimer.c:1828) [ 254.817288][ C0] __do_softirq (kernel/softirq.c:553) [ 254.817436][ C0] ? __neigh_event_send (./include/linux/bottom_half.h:33 net/core/neighbour.c:1245) [ 254.817584][ C0] do_softirq (kernel/softirq.c:454 kernel/softirq.c:441) [ 254.817696][ C0] [ 254.817770][ C0] [ 254.817844][ C0] __local_bh_enable_ip (kernel/softirq.c:381) [ 254.817989][ C0] __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) [ 254.818137][ C0] neigh_resolve_output (net/core/neighbour.c:1547) [ 254.818281][ C0] ? __local_bh_enable_ip (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:77 kernel/softirq.c:386) [ 254.818426][ C0] ? ___neigh_create (net/core/neighbour.c:722 (discriminator 9)) [ 254.818574][ C0] ip_finish_output2 (./include/net/neighbour.h:542 net/ipv4/ip_output.c:235) [ 254.818722][ C0] ? __pfx_get_random_u32 (drivers/char/random.c:532) [ 254.818870][ C0] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 254.819014][ C0] ? __pfx_raw_getfrag (net/ipv4/raw.c:446) [ 254.819160][ C0] ? __pfx_ip_finish_output2 (net/ipv4/ip_output.c:199) [ 254.819306][ C0] ? __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) [ 254.819453][ C0] ip_output (./include/linux/netfilter.h:303 net/ipv4/ip_output.c:433) [ 254.819563][ C0] ? __ip_local_out (net/ipv4/ip_output.c:96 net/ipv4/ip_output.c:107) [ 254.819708][ C0] ? __pfx_ip_output (net/ipv4/ip_output.c:427) [ 254.819855][ C0] ? __ip_make_skb (net/ipv4/ip_output.c:1379 net/ipv4/ip_output.c:1487) [ 254.820003][ C0] ? __pfx_raw_getfrag (net/ipv4/raw.c:446) [ 254.820146][ C0] ? ip_append_data (net/ipv4/ip_output.c:1368 net/ipv4/ip_output.c:1347) [ 254.820293][ C0] 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) [ 254.820439][ C0] raw_sendmsg (net/ipv4/raw.c:648) [ 254.820583][ C0] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 254.820732][ C0] ? __pfx_raw_sendmsg (net/ipv4/raw.c:476) [ 254.820877][ C0] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 254.821044][ C0] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 254.821194][ C0] ? __lock_release (kernel/locking/lockdep.c:5430) [ 254.821339][ C0] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 254.821485][ C0] ? __pfx___lock_release (kernel/locking/lockdep.c:5406) [ 254.821630][ C0] ? 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) [ 254.821777][ C0] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 254.821928][ C0] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 254.822074][ C0] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 254.822220][ C0] ? __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 254.822369][ C0] __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 254.822518][ C0] ? __pfx___sys_sendto (net/socket.c:2161) [ 254.822662][ C0] ? 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) [ 254.822808][ C0] ? reacquire_held_locks (kernel/locking/lockdep.c:5279) [ 254.822956][ C0] ? __lock_release (kernel/locking/lockdep.c:5430) [ 254.823100][ C0] ? 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) [ 254.823248][ C0] ? __pfx___lock_release (kernel/locking/lockdep.c:5406) [ 254.823392][ C0] ? __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) [ 254.823540][ C0] ? __pfx___up_read (kernel/locking/rwsem.c:1339) [ 254.823685][ C0] ? 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) [ 254.823834][ C0] __x64_sys_sendto (net/socket.c:2199) [ 254.823978][ C0] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 254.824157][ C0] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 254.824306][ C0] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 254.824489][ C0] RIP: 0033:0x7fba5c15c85a [ 254.824639][ C0] 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 [ 254.825159][ C0] RSP: 002b:00007ffff6956828 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 254.825381][ C0] RAX: ffffffffffffffda RBX: 0000000000000038 RCX: 00007fba5c15c85a [ 254.825599][ C0] RDX: 0000000000000040 RSI: 00000000004c7340 RDI: 0000000000000005 [ 254.825820][ C0] RBP: 00007ffff6956880 R08: 00000000004185e0 R09: 0000000000000010 [ 254.826037][ C0] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000054 Finger prints: __skb_to_sgvec:skb_to_sgvec:esp_output_tail:esp_xmit