====================================== | [ 483.051809][ T1915] ================================================================== | [ 483.052310][ T1915] BUG: KASAN: slab-use-after-free in kobject_put (lib/kobject.c:733) | [ 483.052698][ T1915] Read of size 1 at addr ffff88800e50c6ac by task ip/1915 | [ 483.052975][ T1915] [ 483.053080][ T1915] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 483.053085][ T1915] Call Trace: [ 483.053089][ T1915] [ 483.053091][ T1915] dump_stack_lvl (lib/dump_stack.c:123) [ 483.053101][ T1915] print_address_description.constprop.0 (mm/kasan/report.c:379) [ 483.053118][ T1915] ? kobject_put (lib/kobject.c:733) [ 483.053123][ T1915] print_report (mm/kasan/report.c:483) [ 483.053126][ T1915] ? kobject_put (lib/kobject.c:733) [ 483.053129][ T1915] ? kasan_addr_to_slab (./include/linux/mm.h:1245 mm/kasan/../slab.h:191 mm/kasan/common.c:47) [ 483.053132][ T1915] ? kobject_put (lib/kobject.c:733) [ 483.053136][ T1915] kasan_report (mm/kasan/report.c:597) [ 483.053139][ T1915] ? kobject_put (lib/kobject.c:733) [ 483.053145][ T1915] kobject_put (lib/kobject.c:733) [ 483.053148][ T1915] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 483.053156][ T1915] ? dev_ingress_queue_create (net/core/dev.c:12299) [ 483.053159][ T1915] ? generic_xdp_install (net/core/dev.c:11630) [ 483.053163][ T1915] ? vrf_dellink (drivers/net/vrf.c:1667) vrf [ 483.053170][ T1915] ? vrf_map_unregister_dev (drivers/net/vrf.c:1667) vrf [ 483.053177][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.053192][ T1915] rtnl_dellink (net/core/rtnetlink.c:3580) [ 483.053199][ T1915] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 483.053220][ T1915] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 483.053225][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.053231][ T1915] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 483.053235][ T1915] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 483.053238][ T1915] ? __lock_release (kernel/locking/lockdep.c:5536) [ 483.053243][ T1915] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 483.053246][ T1915] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 483.053250][ T1915] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 483.053253][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.053260][ T1915] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 483.053268][ T1915] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 483.053271][ T1915] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 483.053278][ T1915] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 483.053281][ T1915] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 483.053284][ T1915] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 483.053289][ T1915] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 483.053292][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.053298][ T1915] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 483.053302][ T1915] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 483.053308][ T1915] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 483.053319][ T1915] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 483.053322][ T1915] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 483.053335][ T1915] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 483.053338][ T1915] ? __copy_msghdr (net/socket.c:2556) [ 483.053348][ T1915] ___sys_sendmsg (net/socket.c:2686) [ 483.053352][ T1915] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 483.053355][ T1915] ? __call_rcu_common.constprop.0 (./arch/x86/include/asm/irqflags.h:26 ./arch/x86/include/asm/irqflags.h:109 ./arch/x86/include/asm/irqflags.h:127 kernel/rcu/tree.c:3125) [ 483.053368][ T1915] ? copy_msghdr_from_user (net/socket.c:2673) [ 483.053373][ T1915] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 483.053377][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.053383][ T1915] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 483.053387][ T1915] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 483.053401][ T1915] ? __lock_release (kernel/locking/lockdep.c:5536) [ 483.053407][ T1915] __sys_sendmsg (net/socket.c:2716) [ 483.053411][ T1915] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 483.053415][ T1915] ? __sys_sendmsg_sock (net/socket.c:2701) [ 483.053423][ T1915] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 483.053427][ T1915] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 483.053435][ T1915] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 483.053445][ T1915] RIP: 0033:0x7fb4129381d7 [ 483.053452][ T1915] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 All code ======== 0: 0e (bad) 1: 00 f7 add %dh,%bh 3: d8 64 89 02 fsubs 0x2(%rcx,%rcx,4) 7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax e: eb b9 jmp 0xffffffffffffffc9 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 2e 00 00 00 mov $0x2e,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 51 ja 0x83 32: c3 ret 33: 48 83 ec 28 sub $0x28,%rsp 37: 89 54 24 1c mov %edx,0x1c(%rsp) 3b: 48 89 74 24 10 mov %rsi,0x10(%rsp) Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 51 ja 0x59 8: c3 ret 9: 48 83 ec 28 sub $0x28,%rsp d: 89 54 24 1c mov %edx,0x1c(%rsp) 11: 48 89 74 24 10 mov %rsi,0x10(%rsp) [ 483.053456][ T1915] RSP: 002b:00007ffd22d891c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 483.053464][ T1915] RAX: ffffffffffffffda RBX: 00007ffd22d898f0 RCX: 00007fb4129381d7 [ 483.053468][ T1915] RDX: 0000000000000000 RSI: 00007ffd22d89230 RDI: 0000000000000005 [ 483.053471][ T1915] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 483.053474][ T1915] R10: 00007fb412834f60 R11: 0000000000000246 R12: 0000000000000002 [ 483.053476][ T1915] R13: 00000000690de71e R14: 0000000000499600 R15: 0000000000000000 | [ 483.088431][ T1915] refcount_t: underflow; use-after-free. | [ 483.088829][ T1915] WARNING: CPU: 3 PID: 1915 at lib/refcount.c:28 refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) | [ 483.089422][ T1915] Modules linked in: vrf veth | [ 483.090475][ T1915] Tainted: [B]=BAD_PAGE [ 483.090718][ T1915] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 483.091130][ T1915] RIP: 0010:refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) [ 483.091531][ T1915] Code: 7d 93 02 80 fb 01 0f 87 bb 99 d9 fe 83 e3 01 0f 85 51 ff ff ff c6 05 a8 7d 93 02 01 90 48 c7 c7 60 8d 85 9c e8 32 bf 18 ff 90 <0f> 0b 90 90 e9 33 ff ff ff 48 89 df e8 b0 63 a1 ff e9 ba fe ff ff All code ======== 0: 7d 93 jge 0xffffffffffffff95 2: 02 80 fb 01 0f 87 add -0x78f0fe05(%rax),%al 8: bb 99 d9 fe 83 mov $0x83fed999,%ebx d: e3 01 jrcxz 0x10 f: 0f 85 51 ff ff ff jne 0xffffffffffffff66 15: c6 05 a8 7d 93 02 01 movb $0x1,0x2937da8(%rip) # 0x2937dc4 1c: 90 nop 1d: 48 c7 c7 60 8d 85 9c mov $0xffffffff9c858d60,%rdi 24: e8 32 bf 18 ff call 0xffffffffff18bf5b 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: 90 nop 2e: e9 33 ff ff ff jmp 0xffffffffffffff66 33: 48 89 df mov %rbx,%rdi 36: e8 b0 63 a1 ff call 0xffffffffffa163eb 3b: e9 ba fe ff ff jmp 0xfffffffffffffefa Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: 90 nop 4: e9 33 ff ff ff jmp 0xffffffffffffff3c 9: 48 89 df mov %rbx,%rdi c: e8 b0 63 a1 ff call 0xffffffffffa163c1 11: e9 ba fe ff ff jmp 0xfffffffffffffed0 [ 483.092718][ T1915] RSP: 0018:ffffc900028a71f0 EFLAGS: 00010286 [ 483.093113][ T1915] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 483.093554][ T1915] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 483.094049][ T1915] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff3a3e134 [ 483.094490][ T1915] R10: 0000000000000003 R11: ffffc900028a6d80 R12: 0000000000000001 [ 483.094933][ T1915] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 483.095441][ T1915] FS: 00007fb41276a800(0000) GS:ffff888097d72000(0000) knlGS:0000000000000000 [ 483.096028][ T1915] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 483.096466][ T1915] CR2: 000055c589620dec CR3: 000000000c5d0002 CR4: 0000000000772ef0 [ 483.096932][ T1915] PKRU: 55555554 [ 483.097364][ T1915] Call Trace: [ 483.097613][ T1915] [ 483.097765][ T1915] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 483.098068][ T1915] ? dev_ingress_queue_create (net/core/dev.c:12299) [ 483.098565][ T1915] ? generic_xdp_install (net/core/dev.c:11630) [ 483.098882][ T1915] ? vrf_dellink (drivers/net/vrf.c:1667) vrf [ 483.099209][ T1915] ? vrf_map_unregister_dev (drivers/net/vrf.c:1667) vrf [ 483.099572][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.100061][ T1915] rtnl_dellink (net/core/rtnetlink.c:3580) [ 483.100407][ T1915] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 483.100809][ T1915] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 483.101110][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.101610][ T1915] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 483.101891][ T1915] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 483.102179][ T1915] ? __lock_release (kernel/locking/lockdep.c:5536) [ 483.102462][ T1915] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 483.102893][ T1915] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 483.103204][ T1915] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 483.103488][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.103777][ T1915] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 483.104212][ T1915] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 483.104495][ T1915] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 483.104782][ T1915] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 483.105065][ T1915] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 ./include/net/netns/generic.h:48 net/netlink/af_netlink.c:333) [ 483.105347][ T1915] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 483.105626][ T1915] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 483.105906][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.106206][ T1915] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 483.106699][ T1915] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 483.106966][ T1915] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 483.107275][ T1915] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 483.107568][ T1915] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 483.108068][ T1915] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 483.108436][ T1915] ? __copy_msghdr (net/socket.c:2556) [ 483.108704][ T1915] ___sys_sendmsg (net/socket.c:2686) [ 483.108994][ T1915] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 483.109457][ T1915] ? __call_rcu_common.constprop.0 (./arch/x86/include/asm/irqflags.h:26 ./arch/x86/include/asm/irqflags.h:109 ./arch/x86/include/asm/irqflags.h:127 kernel/rcu/tree.c:3125) [ 483.109833][ T1915] ? copy_msghdr_from_user (net/socket.c:2673) [ 483.110146][ T1915] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 483.110605][ T1915] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 483.110873][ T1915] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 483.111176][ T1915] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 483.111493][ T1915] ? __lock_release (kernel/locking/lockdep.c:5536) [ 483.111943][ T1915] __sys_sendmsg (net/socket.c:2716) [ 483.112225][ T1915] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 483.112621][ T1915] ? __sys_sendmsg_sock (net/socket.c:2701) [ 483.112908][ T1915] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 483.113245][ T1915] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 483.113563][ T1915] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 483.113938][ T1915] RIP: 0033:0x7fb4129381d7 [ 483.114261][ T1915] Code: 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b9 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 89 54 24 1c 48 89 74 24 10 All code ======== 0: 0e (bad) 1: 00 f7 add %dh,%bh 3: d8 64 89 02 fsubs 0x2(%rcx,%rcx,4) 7: 48 c7 c0 ff ff ff ff mov $0xffffffffffffffff,%rax e: eb b9 jmp 0xffffffffffffffc9 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 2e 00 00 00 mov $0x2e,%eax 28: 0f 05 syscall 2a:* 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 51 ja 0x83 32: c3 ret 33: 48 83 ec 28 sub $0x28,%rsp 37: 89 54 24 1c mov %edx,0x1c(%rsp) 3b: 48 89 74 24 10 mov %rsi,0x10(%rsp) Code starting with the faulting instruction =========================================== 0: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 6: 77 51 ja 0x59 8: c3 ret 9: 48 83 ec 28 sub $0x28,%rsp d: 89 54 24 1c mov %edx,0x1c(%rsp) 11: 48 89 74 24 10 mov %rsi,0x10(%rsp) [ 483.115472][ T1915] RSP: 002b:00007ffd22d891c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 483.116091][ T1915] RAX: ffffffffffffffda RBX: 00007ffd22d898f0 RCX: 00007fb4129381d7 [ 483.116517][ T1915] RDX: 0000000000000000 RSI: 00007ffd22d89230 RDI: 0000000000000005 [ 483.116985][ T1915] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 483.117398][ T1915] R10: 00007fb412834f60 R11: 0000000000000246 R12: 0000000000000002 Finger prints: print_report:kasan_report:kobject_put:netdev_run_todo:rtnl_dellink refcount_warn_saturate:netdev_run_todo:rtnl_dellink:rtnetlink_rcv_msg:netlink_rcv_skb