====================================== | [ 89.427316][ T362] ================================================================== | [ 89.427670][ T362] BUG: KASAN: slab-use-after-free in kobject_put (lib/kobject.c:733) | [ 89.428001][ T362] Read of size 1 at addr ffff888007bb16ac by task teamd/362 | [ 89.428342][ T362] [ 89.428461][ T362] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 89.428466][ T362] Call Trace: [ 89.428469][ T362] [ 89.428471][ T362] dump_stack_lvl (lib/dump_stack.c:123) [ 89.428482][ T362] print_address_description.constprop.0 (mm/kasan/report.c:379) [ 89.428501][ T362] ? kobject_put (lib/kobject.c:733) [ 89.428506][ T362] print_report (mm/kasan/report.c:483) [ 89.428511][ T362] ? kobject_put (lib/kobject.c:733) [ 89.428516][ T362] ? kasan_addr_to_slab (./include/linux/mm.h:1245 mm/kasan/../slab.h:191 mm/kasan/common.c:47) [ 89.428520][ T362] ? kobject_put (lib/kobject.c:733) [ 89.428523][ T362] kasan_report (mm/kasan/report.c:597) [ 89.428527][ T362] ? kobject_put (lib/kobject.c:733) [ 89.428535][ T362] kobject_put (lib/kobject.c:733) [ 89.428538][ T362] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 89.428546][ T362] ? dev_ingress_queue_create (net/core/dev.c:12299) [ 89.428550][ T362] ? generic_xdp_install (net/core/dev.c:11630) [ 89.428553][ T362] ? unregister_netdevice_many (net/core/dev.c:12241) [ 89.428556][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.428571][ T362] rtnl_dellink (net/core/rtnetlink.c:3580) [ 89.428577][ T362] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 89.428595][ T362] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 89.428600][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.428606][ T362] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 89.428609][ T362] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 89.428612][ T362] ? __lock_release (kernel/locking/lockdep.c:5536) [ 89.428616][ T362] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 89.428619][ T362] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 89.428623][ T362] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 89.428626][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.428633][ T362] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 89.428639][ T362] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 89.428643][ T362] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 89.428649][ T362] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 89.428652][ T362] ? 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) [ 89.428656][ T362] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 89.428660][ T362] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 89.428664][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.428669][ T362] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 89.428674][ T362] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 89.428677][ T362] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 89.428689][ T362] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 89.428693][ T362] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 89.428703][ T362] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 89.428706][ T362] ? __copy_msghdr (net/socket.c:2556) [ 89.428713][ T362] ___sys_sendmsg (net/socket.c:2686) [ 89.428716][ T362] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 89.428719][ T362] ? __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) [ 89.428731][ T362] ? copy_msghdr_from_user (net/socket.c:2673) [ 89.428736][ T362] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 89.428741][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.428746][ T362] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 89.428750][ T362] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 89.428763][ T362] ? __lock_release (kernel/locking/lockdep.c:5536) [ 89.428774][ T362] __sys_sendmsg (net/socket.c:2716) [ 89.428779][ T362] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 89.428784][ T362] ? __sys_sendmsg_sock (net/socket.c:2701) [ 89.428794][ T362] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 89.428798][ T362] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 89.428808][ T362] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 89.428816][ T362] RIP: 0033:0x7f8598df31d7 [ 89.428824][ T362] 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) [ 89.428829][ T362] RSP: 002b:00007ffd47567968 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 89.428836][ T362] RAX: ffffffffffffffda RBX: 0000000011b95320 RCX: 00007f8598df31d7 [ 89.428838][ T362] RDX: 0000000000000000 RSI: 00007ffd475679a0 RDI: 0000000000000005 [ 89.428840][ T362] RBP: 0000000011b95230 R08: 0000000000000003 R09: 0000000000000000 [ 89.428842][ T362] R10: 0000000000001000 R11: 0000000000000246 R12: 0000000011bba830 [ 89.428844][ T362] R13: 00007ffd475679a0 R14: 0000000000000000 R15: 00007ffd47567b00 | [ 89.460448][ T362] refcount_t: underflow; use-after-free. | [ 89.461044][ T362] WARNING: CPU: 3 PID: 362 at lib/refcount.c:28 refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) | [ 89.461392][ T362] Modules linked in: act_mirred act_gact cls_flower bridge stp llc ip_gre gre sch_ingress 8021q vrf veth | [ 89.462171][ T362] Tainted: [B]=BAD_PAGE [ 89.462357][ T362] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 89.462614][ T362] RIP: 0010:refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) [ 89.462855][ T362] 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 25 97 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 25 97 mov $0xffffffff97258d60,%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 [ 89.463551][ T362] RSP: 0018:ffffc900005e71f0 EFLAGS: 00010286 [ 89.463787][ T362] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 89.464046][ T362] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 89.464350][ T362] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff2f7e134 [ 89.464790][ T362] R10: 0000000000000003 R11: ffffc900005e6d80 R12: 0000000000000001 [ 89.465067][ T362] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 89.465357][ T362] FS: 00007f8598cb2b80(0000) GS:ffff888097772000(0000) knlGS:0000000000000000 [ 89.465749][ T362] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 89.465973][ T362] CR2: 00007f8598d01204 CR3: 000000000ba6f002 CR4: 0000000000772ef0 [ 89.466266][ T362] PKRU: 55555554 [ 89.466404][ T362] Call Trace: [ 89.466621][ T362] [ 89.466713][ T362] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 89.466905][ T362] ? dev_ingress_queue_create (net/core/dev.c:12299) [ 89.467085][ T362] ? generic_xdp_install (net/core/dev.c:11630) [ 89.467286][ T362] ? unregister_netdevice_many (net/core/dev.c:12241) [ 89.467672][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.467873][ T362] rtnl_dellink (net/core/rtnetlink.c:3580) [ 89.468054][ T362] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 89.468318][ T362] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 89.468586][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.468764][ T362] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 89.468945][ T362] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 89.469125][ T362] ? __lock_release (kernel/locking/lockdep.c:5536) [ 89.469333][ T362] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 89.469734][ T362] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 89.469915][ T362] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 89.470093][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.470297][ T362] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 89.470564][ T362] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 89.470738][ T362] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 89.470919][ T362] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 89.471114][ T362] ? 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) [ 89.471306][ T362] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 89.471667][ T362] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 89.471849][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.472025][ T362] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 89.472229][ T362] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 89.472412][ T362] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 89.472675][ T362] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 89.472859][ T362] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 89.473035][ T362] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 89.473279][ T362] ? __copy_msghdr (net/socket.c:2556) [ 89.473468][ T362] ___sys_sendmsg (net/socket.c:2686) [ 89.473733][ T362] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 89.473912][ T362] ? __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) [ 89.474149][ T362] ? copy_msghdr_from_user (net/socket.c:2673) [ 89.474343][ T362] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 89.474614][ T362] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 89.474798][ T362] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 89.474969][ T362] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 89.475269][ T362] ? __lock_release (kernel/locking/lockdep.c:5536) [ 89.475458][ T362] __sys_sendmsg (net/socket.c:2716) [ 89.475710][ T362] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 89.475940][ T362] ? __sys_sendmsg_sock (net/socket.c:2701) [ 89.476133][ T362] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 89.476337][ T362] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 89.476701][ T362] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 89.476926][ T362] RIP: 0033:0x7f8598df31d7 [ 89.477120][ T362] 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) [ 89.477873][ T362] RSP: 002b:00007ffd47567968 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 89.478157][ T362] RAX: ffffffffffffffda RBX: 0000000011b95320 RCX: 00007f8598df31d7 [ 89.478449][ T362] RDX: 0000000000000000 RSI: 00007ffd475679a0 RDI: 0000000000000005 [ 89.478812][ T362] RBP: 0000000011b95230 R08: 0000000000000003 R09: 0000000000000000 [ 89.479081][ T362] R10: 0000000000001000 R11: 0000000000000246 R12: 0000000011bba830 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