====================================== | [ 41.749770][ T296] Initializing XFRM netlink socket | [ 270.494858][ C1] ------------[ cut here ]------------ | [ 270.495152][ C1] kernel BUG at net/core/skbuff.c:5103! | [ 270.495343][ C1] invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI [ 270.495778][ C1] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.3-0-ga6ed6b701f0a-prebuilt.qemu.org 04/01/2014 [ 270.496161][ C1] RIP: 0010:__skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 270.496340][ C1] 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 [ 270.496910][ C1] RSP: 0018:ffffc900001c86a8 EFLAGS: 00010202 [ 270.497115][ C1] RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000002 [ 270.497354][ C1] RDX: 1ffff11000c519d9 RSI: 1ffff11000c519de RDI: ffff88800628cec8 [ 270.497597][ C1] RBP: ffffea0000225c02 R08: 0000000000000040 R09: 0000000000000058 [ 270.497839][ C1] R10: ffff888004700c80 R11: 0000000000000002 R12: 0000000000000058 [ 270.498082][ C1] R13: dffffc0000000000 R14: 0000000000000018 R15: 0000000000000040 [ 270.498322][ C1] FS: 00007ff9f601d300(0000) GS:ffff888036080000(0000) knlGS:0000000000000000 [ 270.498603][ C1] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 270.498804][ C1] CR2: 00007ff9f62ac840 CR3: 000000002d29c002 CR4: 0000000000770ef0 [ 270.499049][ C1] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 270.499289][ C1] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 270.499528][ C1] PKRU: 55555554 [ 270.499649][ C1] Call Trace: [ 270.499770][ C1] [ 270.499854][ C1] ? die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434 arch/x86/kernel/dumpstack.c:447) [ 270.499980][ C1] ? do_trap (arch/x86/kernel/traps.c:113 arch/x86/kernel/traps.c:154) [ 270.500101][ C1] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 270.500263][ C1] ? do_error_trap (./arch/x86/include/asm/traps.h:58 arch/x86/kernel/traps.c:175) [ 270.500428][ C1] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 270.500588][ C1] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 270.500748][ C1] ? handle_invalid_op (arch/x86/kernel/traps.c:213) [ 270.500908][ C1] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 270.501067][ C1] ? exc_invalid_op (arch/x86/kernel/traps.c:265) [ 270.501230][ C1] ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:568) [ 270.501395][ C1] ? __skb_to_sgvec (net/core/skbuff.c:5103 (discriminator 1)) [ 270.501554][ C1] ? __skb_to_sgvec (./include/linux/scatterlist.h:189 net/core/skbuff.c:5050) [ 270.501714][ C1] ? kasan_save_track (./arch/x86/include/asm/current.h:42 mm/kasan/common.c:60 mm/kasan/common.c:69) [ 270.501879][ C1] ? __kasan_kmalloc (mm/kasan/common.c:391) [ 270.502040][ C1] skb_to_sgvec (net/core/skbuff.c:5123) [ 270.502162][ C1] esp_output_tail (net/ipv4/esp4.c:578) [ 270.502325][ C1] ? 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) [ 270.502489][ C1] esp_xmit (net/ipv4/esp4_offload.c:342) [ 270.502611][ C1] ? __pfx_esp_xmit (net/ipv4/esp4_offload.c:257) [ 270.502770][ C1] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 270.502929][ C1] validate_xmit_xfrm (net/xfrm/xfrm_device.c:184) [ 270.503093][ C1] __dev_queue_xmit (net/core/dev.c:4364) [ 270.503256][ C1] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 270.503416][ C1] ? eth_header (net/ethernet/eth.c:100) [ 270.503576][ C1] ? __pfx___dev_queue_xmit (net/core/dev.c:4281) [ 270.503735][ C1] ? neigh_resolve_output (./include/linux/netdevice.h:3226 net/core/neighbour.c:1558 net/core/neighbour.c:1543) [ 270.503896][ C1] ? __neigh_update (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/neighbour.c:1446) [ 270.504056][ C1] __neigh_update (net/core/neighbour.c:1461) [ 270.504218][ C1] 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)) [ 270.504379][ C1] ? __pfx_arp_process (net/ipv4/arp.c:699) [ 270.504543][ C1] ? lock_acquire.part.0 (kernel/locking/lockdep.c:467 kernel/locking/lockdep.c:5756) [ 270.504705][ C1] ? __pfx_arp_rcv (net/ipv4/arp.c:965) [ 270.504863][ C1] __netif_receive_skb_one_core (net/core/dev.c:5610 (discriminator 5)) [ 270.505062][ C1] ? __pfx___netif_receive_skb_one_core (net/core/dev.c:5603) [ 270.505263][ C1] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 270.505422][ C1] ? process_backlog (./include/linux/rcupdate.h:298 ./include/linux/rcupdate.h:750 net/core/dev.c:6051) [ 270.505583][ C1] process_backlog (./include/linux/rcupdate.h:779 net/core/dev.c:6053) [ 270.505744][ C1] __napi_poll.constprop.0 (net/core/dev.c:6703) [ 270.505905][ C1] net_rx_action (net/core/dev.c:6772 net/core/dev.c:6886) [ 270.506069][ C1] ? __pfx_net_rx_action (net/core/dev.c:6850) [ 270.506242][ C1] ? usage_skip (kernel/locking/lockdep.c:2295 kernel/locking/lockdep.c:2263) [ 270.506392][ C1] ? mark_held_locks (kernel/locking/lockdep.c:4274) [ 270.506540][ C1] __do_softirq (kernel/softirq.c:553) [ 270.506686][ C1] ? __neigh_event_send (./include/linux/bottom_half.h:33 net/core/neighbour.c:1245) [ 270.506834][ C1] do_softirq (kernel/softirq.c:454 kernel/softirq.c:441) [ 270.506944][ C1] [ 270.507020][ C1] [ 270.507093][ C1] __local_bh_enable_ip (kernel/softirq.c:381) [ 270.507242][ C1] __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) [ 270.507392][ C1] neigh_resolve_output (net/core/neighbour.c:1547) [ 270.507537][ C1] ? __local_bh_enable_ip (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:77 kernel/softirq.c:386) [ 270.507683][ C1] ? ___neigh_create (net/core/neighbour.c:722 (discriminator 9)) [ 270.507831][ C1] ip_finish_output2 (./include/net/neighbour.h:542 net/ipv4/ip_output.c:235) [ 270.507978][ C1] ? __pfx_get_random_u32 (drivers/char/random.c:532) [ 270.508126][ C1] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 270.508273][ C1] ? __pfx_raw_getfrag (net/ipv4/raw.c:446) [ 270.508427][ C1] ? __pfx_ip_finish_output2 (net/ipv4/ip_output.c:199) [ 270.508575][ C1] ? __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) [ 270.508723][ C1] ip_output (./include/linux/netfilter.h:303 net/ipv4/ip_output.c:433) [ 270.508833][ C1] ? __ip_local_out (net/ipv4/ip_output.c:96 net/ipv4/ip_output.c:107) [ 270.508981][ C1] ? __pfx_ip_output (net/ipv4/ip_output.c:427) [ 270.509128][ C1] ? __ip_make_skb (net/ipv4/ip_output.c:1379 net/ipv4/ip_output.c:1487) [ 270.509276][ C1] ? __pfx_raw_getfrag (net/ipv4/raw.c:446) [ 270.509423][ C1] ? ip_append_data (net/ipv4/ip_output.c:1368 net/ipv4/ip_output.c:1347) [ 270.509573][ C1] 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) [ 270.509721][ C1] raw_sendmsg (net/ipv4/raw.c:648) [ 270.509866][ C1] ? __pfx_validate_chain (kernel/locking/lockdep.c:3825) [ 270.510012][ C1] ? __pfx_raw_sendmsg (net/ipv4/raw.c:476) [ 270.510157][ C1] ? __lock_acquire (kernel/locking/lockdep.c:5137) [ 270.510308][ C1] ? find_held_lock (kernel/locking/lockdep.c:5244) [ 270.510456][ C1] ? __lock_release (kernel/locking/lockdep.c:5430) [ 270.510600][ C1] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 270.510747][ C1] ? __pfx___lock_release (kernel/locking/lockdep.c:5406) [ 270.510898][ C1] ? 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) [ 270.511045][ C1] ? lock_acquire (./include/trace/events/lock.h:24 kernel/locking/lockdep.c:5725) [ 270.511190][ C1] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 270.511336][ C1] ? __might_fault (mm/memory.c:6080 mm/memory.c:6073) [ 270.511483][ C1] ? __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 270.511630][ C1] __sys_sendto (net/socket.c:730 net/socket.c:745 net/socket.c:2191) [ 270.511778][ C1] ? __pfx___sys_sendto (net/socket.c:2161) [ 270.511926][ C1] ? 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) [ 270.512072][ C1] ? reacquire_held_locks (kernel/locking/lockdep.c:5279) [ 270.512225][ C1] ? __lock_release (kernel/locking/lockdep.c:5430) [ 270.512372][ C1] ? 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) [ 270.512518][ C1] ? __pfx___lock_release (kernel/locking/lockdep.c:5406) [ 270.512663][ C1] ? __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) [ 270.512811][ C1] ? __pfx___up_read (kernel/locking/rwsem.c:1339) [ 270.512957][ C1] ? 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) [ 270.513103][ C1] __x64_sys_sendto (net/socket.c:2199) [ 270.513248][ C1] ? lockdep_hardirqs_on_prepare.part.0 (kernel/locking/lockdep.c:4300 kernel/locking/lockdep.c:4359) [ 270.513440][ C1] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 270.513587][ C1] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:129) [ 270.513769][ C1] RIP: 0033:0x7ff9f62f385a [ 270.513921][ C1] 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 [ 270.514447][ C1] RSP: 002b:00007ffce0623638 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 270.514670][ C1] RAX: ffffffffffffffda RBX: 0000000000000038 RCX: 00007ff9f62f385a [ 270.514890][ C1] RDX: 0000000000000040 RSI: 0000000001808340 RDI: 0000000000000005 [ 270.515110][ C1] RBP: 00007ffce0623690 R08: 00000000004185e0 R09: 0000000000000010 [ 270.515332][ C1] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000054 Finger prints: __skb_to_sgvec:skb_to_sgvec:esp_output_tail:esp_xmit