====================================== | xx__-> [ 2.200754] ------------[ cut here ]------------ | [ 2.200869] refcount_t: underflow; use-after-free. | [ 2.200948] WARNING: CPU: 1 PID: 252 at lib/refcount.c:28 refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) | [ 2.201045] Modules linked in: [ 2.201178] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 2.201243] RIP: 0010:refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) [ 2.201301] Code: ae e8 e8 54 ba ff 90 0f 0b 90 90 c3 80 3d 00 e6 2b 01 00 75 89 c6 05 f7 e5 2b 01 01 90 48 c7 c7 f8 48 b5 ae e8 c5 54 ba ff 90 <0f> 0b 90 90 c3 80 3d db e5 2b 01 00 0f 85 62 ff ff ff c6 05 ce e5 All code ======== 0: ae scas %es:(%rdi),%al 1: e8 e8 54 ba ff call 0xffffffffffba54ee 6: 90 nop 7: 0f 0b ud2 9: 90 nop a: 90 nop b: c3 ret c: 80 3d 00 e6 2b 01 00 cmpb $0x0,0x12be600(%rip) # 0x12be613 13: 75 89 jne 0xffffffffffffff9e 15: c6 05 f7 e5 2b 01 01 movb $0x1,0x12be5f7(%rip) # 0x12be613 1c: 90 nop 1d: 48 c7 c7 f8 48 b5 ae mov $0xffffffffaeb548f8,%rdi 24: e8 c5 54 ba ff call 0xffffffffffba54ee 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: 90 nop 2e: c3 ret 2f: 80 3d db e5 2b 01 00 cmpb $0x0,0x12be5db(%rip) # 0x12be611 36: 0f 85 62 ff ff ff jne 0xffffffffffffff9e 3c: c6 .byte 0xc6 3d: 05 .byte 0x5 3e: ce (bad) 3f: e5 .byte 0xe5 Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: 90 nop 4: c3 ret 5: 80 3d db e5 2b 01 00 cmpb $0x0,0x12be5db(%rip) # 0x12be5e7 c: 0f 85 62 ff ff ff jne 0xffffffffffffff74 12: c6 .byte 0xc6 13: 05 .byte 0x5 14: ce (bad) 15: e5 .byte 0xe5 [ 2.201487] RSP: 0018:ffffa3b1405d7868 EFLAGS: 00010286 [ 2.201537] RAX: 0000000000000000 RBX: ffffa3b1405d7878 RCX: 00000000ffffdfff [ 2.201615] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 2.201706] RBP: ffffa3b1405d7370 R08: ffffffffaf35ba28 R09: 00000000ffffdfff [ 2.201789] R10: ffffffffaf27ba40 R11: ffffffffaf32ba40 R12: dead000000000122 [ 2.201866] R13: 00000000fffb7431 R14: 0000000000000001 R15: ffff923881e98000 [ 2.201945] FS: 00007f972579eb80(0000) GS:ffff92390f211000(0000) knlGS:0000000000000000 [ 2.202031] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 2.202102] CR2: 00007f6897a8db70 CR3: 0000000004716006 CR4: 0000000000772ef0 [ 2.202178] PKRU: 55555554 [ 2.202202] Call Trace: [ 2.202231] [ 2.202262] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 2.202311] rtnl_dellink (net/core/rtnetlink.c:3580) [ 2.202367] ? idr_alloc_cyclic (lib/idr.c:126) [ 2.202416] ? ep_poll_callback (fs/eventpoll.c:1329) [ 2.202468] ? rtnl_bridge_getlink (net/core/rtnetlink.c:3536) [ 2.202527] rtnetlink_rcv_msg (net/core/rtnetlink.c:6959) [ 2.202574] ? rtnl_calcit.isra.0 (net/core/rtnetlink.c:6861) [ 2.202632] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 2.202685] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 2.202732] ? __alloc_skb (net/core/skbuff.c:690) [ 2.202781] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 2.202828] __sys_sendto (net/socket.c:727 net/socket.c:742 net/socket.c:2244) [ 2.202899] ? alloc_file_pseudo (./include/linux/fs.h:3233 fs/file_table.c:393) [ 2.202949] ? sock_alloc_file (./include/linux/fs.h:3233 net/socket.c:499) [ 2.202996] ? __sys_socket (net/socket.c:516 net/socket.c:1756) [ 2.203042] __x64_sys_sendto (net/socket.c:2251 net/socket.c:2247 net/socket.c:2247) [ 2.203088] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 2.203135] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 2.203194] RIP: 0033:0x7f97258b1120 [ 2.203247] Code: Unable to access opcode bytes at 0x7f97258b10f6. Code starting with the faulting instruction =========================================== [ 2.203314] RSP: 002b:00007ffe8eca21d8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c [ 2.203400] RAX: ffffffffffffffda RBX: 00007ffe8eca2270 RCX: 00007f97258b1120 [ 2.203477] RDX: 0000000000000034 RSI: 00007ffe8eca21e0 RDI: 0000000000000007 [ 2.203554] RBP: 0000000000000007 R08: 0000000000000000 R09: 0000000000000000 [ 2.203632] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 Finger prints: refcount_warn_saturate:netdev_run_todo:rtnl_dellink:rtnetlink_rcv_msg:netlink_rcv_skb