====================================== | [ 50.670323][ T745] ================================================================== | [ 50.670647][ T745] BUG: KASAN: slab-use-after-free in kobject_put (lib/kobject.c:733) | [ 50.670912][ T745] Read of size 1 at addr ffff88800c46a6ac by task ip/745 | [ 50.671114][ T745] [ 50.671212][ T745] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 50.671214][ T745] Call Trace: [ 50.671218][ T745] [ 50.671220][ T745] dump_stack_lvl (lib/dump_stack.c:123) [ 50.671226][ T745] print_address_description.constprop.0 (mm/kasan/report.c:379) [ 50.671234][ T745] ? kobject_put (lib/kobject.c:733) [ 50.671241][ T745] print_report (mm/kasan/report.c:483) [ 50.671244][ T745] ? kobject_put (lib/kobject.c:733) [ 50.671247][ T745] ? kasan_addr_to_slab (./include/linux/mm.h:1245 mm/kasan/../slab.h:191 mm/kasan/common.c:47) [ 50.671250][ T745] ? kobject_put (lib/kobject.c:733) [ 50.671253][ T745] kasan_report (mm/kasan/report.c:597) [ 50.671257][ T745] ? kobject_put (lib/kobject.c:733) [ 50.671262][ T745] kobject_put (lib/kobject.c:733) [ 50.671266][ T745] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 50.671272][ T745] ? dev_ingress_queue_create (net/core/dev.c:12299) [ 50.671275][ T745] ? generic_xdp_install (net/core/dev.c:11630) [ 50.671277][ T745] ? kernfs_put.part.0 (./arch/x86/include/asm/atomic.h:67 ./include/linux/atomic/atomic-arch-fallback.h:2278 ./include/linux/atomic/atomic-instrumented.h:1384 fs/kernfs/dir.c:595) [ 50.671285][ T745] ? unregister_netdevice_many (net/core/dev.c:12241) [ 50.671291][ T745] ? br_dev_delete (net/bridge/br_if.c:397) bridge [ 50.671346][ T745] rtnl_dellink (net/core/rtnetlink.c:3580) [ 50.671350][ T745] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 50.671368][ T745] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.671377][ T745] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.671383][ T745] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.671387][ T745] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 50.671389][ T745] ? __lock_release (kernel/locking/lockdep.c:5536) [ 50.671393][ T745] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 50.671397][ T745] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 50.671400][ T745] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 50.671403][ T745] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.671410][ T745] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 50.671416][ T745] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 50.671420][ T745] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 50.671426][ T745] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 50.671429][ T745] ? 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) [ 50.671433][ T745] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 50.671437][ T745] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 50.671440][ T745] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.671449][ T745] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 50.671456][ T745] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 50.671462][ T745] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 50.671474][ T745] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 50.671479][ T745] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 50.671486][ T745] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 50.671489][ T745] ? __copy_msghdr (net/socket.c:2556) [ 50.671497][ T745] ___sys_sendmsg (net/socket.c:2686) [ 50.671500][ T745] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 50.671503][ T745] ? __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) [ 50.671513][ T745] ? copy_msghdr_from_user (net/socket.c:2673) [ 50.671518][ T745] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.671523][ T745] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.671529][ T745] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.671532][ T745] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 50.671540][ T745] ? __lock_release (kernel/locking/lockdep.c:5536) [ 50.671546][ T745] __sys_sendmsg (net/socket.c:2716) [ 50.671549][ T745] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 50.671553][ T745] ? __sys_sendmsg_sock (net/socket.c:2701) [ 50.671561][ T745] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 50.671565][ T745] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 50.671572][ T745] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 50.671578][ T745] RIP: 0033:0x7fdc1a5ed1d7 [ 50.671583][ T745] 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) [ 50.671586][ T745] RSP: 002b:00007fff67a57bf8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 50.671593][ T745] RAX: ffffffffffffffda RBX: 00007fff67a58320 RCX: 00007fdc1a5ed1d7 [ 50.671596][ T745] RDX: 0000000000000000 RSI: 00007fff67a57c60 RDI: 0000000000000005 [ 50.671598][ T745] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 50.671599][ T745] R10: 00007fdc1a4e9f60 R11: 0000000000000246 R12: 0000000000000002 [ 50.671601][ T745] R13: 00000000690df3fb R14: 0000000000499600 R15: 0000000000000000 | [ 50.706142][ T745] refcount_t: underflow; use-after-free. | [ 50.706361][ T745] WARNING: CPU: 1 PID: 745 at lib/refcount.c:28 refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) | [ 50.706757][ T745] Modules linked in: bridge stp llc act_gact cls_flower sch_ingress vrf veth | [ 50.707450][ T745] Tainted: [B]=BAD_PAGE [ 50.707653][ T745] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 50.707897][ T745] RIP: 0010:refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) [ 50.708154][ T745] 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 e5 ac 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 e5 ac mov $0xfffffffface58d60,%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 [ 50.708941][ T745] RSP: 0018:ffffc900010071f0 EFLAGS: 00010286 [ 50.709206][ T745] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 50.709490][ T745] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 50.709852][ T745] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff5afe134 [ 50.710121][ T745] R10: 0000000000000003 R11: ffffc90001006d80 R12: 0000000000000001 [ 50.710420][ T745] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 50.710690][ T745] FS: 00007fdc1a41f800(0000) GS:ffff888087672000(0000) knlGS:0000000000000000 [ 50.710978][ T745] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 50.711227][ T745] CR2: 00005612300492e8 CR3: 000000000e40a001 CR4: 0000000000772ef0 [ 50.711503][ T745] PKRU: 55555554 [ 50.711642][ T745] Call Trace: [ 50.711773][ T745] [ 50.711868][ T745] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 50.712122][ T745] ? dev_ingress_queue_create (net/core/dev.c:12299) [ 50.712296][ T745] ? generic_xdp_install (net/core/dev.c:11630) [ 50.712498][ T745] ? kernfs_put.part.0 (./arch/x86/include/asm/atomic.h:67 ./include/linux/atomic/atomic-arch-fallback.h:2278 ./include/linux/atomic/atomic-instrumented.h:1384 fs/kernfs/dir.c:595) [ 50.712721][ T745] ? unregister_netdevice_many (net/core/dev.c:12241) [ 50.712895][ T745] ? br_dev_delete (net/bridge/br_if.c:397) bridge [ 50.713116][ T745] rtnl_dellink (net/core/rtnetlink.c:3580) [ 50.713348][ T745] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 50.713614][ T745] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.713908][ T745] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.714138][ T745] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.714316][ T745] ? rtnetlink_rcv_msg (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/core/rtnetlink.c:6956) [ 50.714487][ T745] ? __lock_release (kernel/locking/lockdep.c:5536) [ 50.714697][ T745] ? valid_bridge_getlink_req.constprop.0 (net/core/rtnetlink.c:3536) [ 50.714977][ T745] rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) [ 50.715240][ T745] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 50.715412][ T745] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.715601][ T745] netlink_rcv_skb (net/netlink/af_netlink.c:2550) [ 50.715835][ T745] ? rtnl_port_fill (net/core/rtnetlink.c:6861) [ 50.716017][ T745] ? netlink_ack (net/netlink/af_netlink.c:2527) [ 50.716181][ T745] ? netlink_deliver_tap (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:897 net/netlink/af_netlink.c:340) [ 50.716531][ T745] ? 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) [ 50.716763][ T745] netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) [ 50.716973][ T745] ? netlink_attachskb (net/netlink/af_netlink.c:1329) [ 50.717133][ T745] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.717397][ T745] netlink_sendmsg (net/netlink/af_netlink.c:1894) [ 50.717592][ T745] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 50.717864][ T745] ? __import_iovec (lib/iov_iter.c:1346 lib/iov_iter.c:1361) [ 50.718035][ T745] ? netlink_unicast (net/netlink/af_netlink.c:1813) [ 50.718380][ T745] ____sys_sendmsg (net/socket.c:727 net/socket.c:742 net/socket.c:2630) [ 50.718577][ T745] ? get_timestamp.constprop.0 (net/socket.c:2576) [ 50.718866][ T745] ? __copy_msghdr (net/socket.c:2556) [ 50.719033][ T745] ___sys_sendmsg (net/socket.c:2686) [ 50.719287][ T745] ? kasan_record_aux_stack (mm/kasan/generic.c:559) [ 50.719446][ T745] ? __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) [ 50.719669][ T745] ? copy_msghdr_from_user (net/socket.c:2673) [ 50.719832][ T745] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.720097][ T745] ? __lock_acquire (kernel/locking/lockdep.c:5237) [ 50.720257][ T745] ? find_held_lock (kernel/locking/lockdep.c:5350) [ 50.720416][ T745] ? __virt_addr_valid (./include/linux/rcupdate.h:341 ./include/linux/rcupdate.h:979 ./include/linux/mmzone.h:2197 arch/x86/mm/physaddr.c:65) [ 50.720693][ T745] ? __lock_release (kernel/locking/lockdep.c:5536) [ 50.720860][ T745] __sys_sendmsg (net/socket.c:2716) [ 50.721019][ T745] ? __call_rcu_common.constprop.0 (kernel/rcu/tree.c:3148) [ 50.721220][ T745] ? __sys_sendmsg_sock (net/socket.c:2701) [ 50.721477][ T745] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 50.721737][ T745] do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) [ 50.721921][ T745] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) [ 50.722117][ T745] RIP: 0033:0x7fdc1a5ed1d7 [ 50.722381][ T745] 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) [ 50.723164][ T745] RSP: 002b:00007fff67a57bf8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 50.723608][ T745] RAX: ffffffffffffffda RBX: 00007fff67a58320 RCX: 00007fdc1a5ed1d7 [ 50.724008][ T745] RDX: 0000000000000000 RSI: 00007fff67a57c60 RDI: 0000000000000005 [ 50.724378][ T745] RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000000078 [ 50.724683][ T745] R10: 00007fdc1a4e9f60 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