====================================== | [ 62.392555][ T70] ================================================================== | [ 62.392904][ T70] BUG: KASAN: slab-use-after-free in kobject_put (lib/kobject.c:733) | [ 62.393216][ T70] Read of size 1 at addr ffff888005bf16ac by task kworker/u16:1/70 | [ 62.393545][ T70] [ 62.393660][ T70] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 62.393664][ T70] Workqueue: netns cleanup_net [ 62.393676][ T70] Call Trace: [ 62.393679][ T70] [ 62.393681][ T70] dump_stack_lvl (lib/dump_stack.c:123) [ 62.393688][ T70] print_address_description.constprop.0 (mm/kasan/report.c:379) [ 62.393695][ T70] ? kobject_put (lib/kobject.c:733) [ 62.393699][ T70] print_report (mm/kasan/report.c:483) [ 62.393702][ T70] ? kobject_put (lib/kobject.c:733) [ 62.393705][ T70] ? kasan_addr_to_slab (./include/linux/mm.h:1245 mm/kasan/../slab.h:191 mm/kasan/common.c:47) [ 62.393709][ T70] ? kobject_put (lib/kobject.c:733) [ 62.393712][ T70] kasan_report (mm/kasan/report.c:597) [ 62.393716][ T70] ? kobject_put (lib/kobject.c:733) [ 62.393721][ T70] kobject_put (lib/kobject.c:733) [ 62.393725][ T70] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 62.393729][ T70] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 62.393735][ T70] ? dev_ingress_queue_create (net/core/dev.c:12299) [ 62.393739][ T70] ? generic_xdp_install (net/core/dev.c:11630) [ 62.393745][ T70] ops_undo_list (net/core/net_namespace.c:190 net/core/net_namespace.c:248) [ 62.393750][ T70] ? netns_get (net/core/net_namespace.c:223) [ 62.393753][ T70] ? cleanup_net (./include/linux/list.h:191 net/core/net_namespace.c:693) [ 62.393758][ T70] cleanup_net (net/core/net_namespace.c:698) [ 62.393762][ T70] ? net_passive_dec (net/core/net_namespace.c:660) [ 62.393766][ T70] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 62.393774][ T70] process_one_work (kernel/workqueue.c:3268) [ 62.393783][ T70] ? pwq_dec_nr_in_flight (kernel/workqueue.c:3165) [ 62.393789][ T70] ? assign_work (kernel/workqueue.c:1206) [ 62.393793][ T70] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 62.393799][ T70] ? rescuer_thread (kernel/workqueue.c:3373) [ 62.393802][ T70] kthread (kernel/kthread.c:463) [ 62.393807][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 62.393810][ T70] ? ret_from_fork (arch/x86/kernel/process.c:157) [ 62.393814][ T70] ? __lock_release (kernel/locking/lockdep.c:5536) [ 62.393822][ T70] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 62.393825][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 62.393829][ T70] ret_from_fork (arch/x86/kernel/process.c:164) [ 62.393831][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 62.393834][ T70] ret_from_fork_asm (arch/x86/entry/entry_64.S:255) | [ 62.413638][ T70] refcount_t: underflow; use-after-free. | [ 62.414258][ T70] WARNING: CPU: 3 PID: 70 at lib/refcount.c:28 refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) | [ 62.414560][ T70] Modules linked in: macvlan 8021q vxlan ip6_udp_tunnel udp_tunnel bridge stp llc vrf veth | [ 62.415294][ T70] Tainted: [B]=BAD_PAGE [ 62.415419][ T70] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 62.415624][ T70] Workqueue: netns cleanup_net [ 62.415803][ T70] RIP: 0010:refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) [ 62.416020][ T70] 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 45 96 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 45 96 mov $0xffffffff96458d60,%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 [ 62.416597][ T70] RSP: 0018:ffffc900004b7a08 EFLAGS: 00010282 [ 62.416804][ T70] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 62.417064][ T70] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 62.417324][ T70] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff2dbe134 [ 62.417603][ T70] R10: 0000000000000003 R11: ffffc900004b7580 R12: 0000000000000001 [ 62.417870][ T70] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 62.418138][ T70] FS: 0000000000000000(0000) GS:ffff88809e172000(0000) knlGS:0000000000000000 [ 62.418458][ T70] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 62.418781][ T70] CR2: 0000560f077254a8 CR3: 0000000004bbe005 CR4: 0000000000772ef0 [ 62.419060][ T70] PKRU: 55555554 [ 62.419195][ T70] Call Trace: [ 62.419365][ T70] [ 62.419460][ T70] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 62.419641][ T70] ? rtnl_is_locked (net/core/rtnetlink.c:169) [ 62.419816][ T70] ? dev_ingress_queue_create (net/core/dev.c:12299) [ 62.420084][ T70] ? generic_xdp_install (net/core/dev.c:11630) [ 62.420269][ T70] ops_undo_list (net/core/net_namespace.c:190 net/core/net_namespace.c:248) [ 62.420545][ T70] ? netns_get (net/core/net_namespace.c:223) [ 62.420715][ T70] ? cleanup_net (./include/linux/list.h:191 net/core/net_namespace.c:693) [ 62.420990][ T70] cleanup_net (net/core/net_namespace.c:698) [ 62.421164][ T70] ? net_passive_dec (net/core/net_namespace.c:660) [ 62.421347][ T70] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 62.421621][ T70] process_one_work (kernel/workqueue.c:3268) [ 62.421796][ T70] ? pwq_dec_nr_in_flight (kernel/workqueue.c:3165) [ 62.421979][ T70] ? assign_work (kernel/workqueue.c:1206) [ 62.422327][ T70] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 62.422514][ T70] ? rescuer_thread (kernel/workqueue.c:3373) [ 62.422691][ T70] kthread (kernel/kthread.c:463) [ 62.422833][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 62.422993][ T70] ? ret_from_fork (arch/x86/kernel/process.c:157) [ 62.423239][ T70] ? __lock_release (kernel/locking/lockdep.c:5536) [ 62.423437][ T70] ? rcu_is_watching (./include/linux/context_tracking.h:128 kernel/rcu/tree.c:751) [ 62.423615][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) [ 62.423787][ T70] ret_from_fork (arch/x86/kernel/process.c:164) [ 62.423971][ T70] ? kthread_is_per_cpu (kernel/kthread.c:412) Finger prints: refcount_warn_saturate:netdev_run_todo:ops_undo_list:cleanup_net:process_one_work print_report:kasan_report:kobject_put:netdev_run_todo:ops_undo_list