[ 10.046494][ T263] ip (263) used greatest stack depth: 24344 bytes left [ 10.706718][ T281] veth0: renamed from veth-rt-1 [ 11.428631][ T289] veth0: renamed from veth-rt-2 [ 50.179207][ T66] ================================================================== [ 50.179414][ T66] BUG: KASAN: slab-use-after-free in cleanup_net+0xa5d/0xb90 [ 50.179602][ T66] Read of size 8 at addr ffff88800c5900f8 by task kworker/u16:1/66 [ 50.179799][ T66] [ 50.179865][ T66] CPU: 1 UID: 0 PID: 66 Comm: kworker/u16:1 Not tainted 6.12.0-virtme #1 [ 50.180052][ T66] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 50.180206][ T66] Workqueue: netns cleanup_net [ 50.180336][ T66] Call Trace: [ 50.180430][ T66] [ 50.180496][ T66] dump_stack_lvl+0x82/0xd0 [ 50.180624][ T66] print_address_description.constprop.0+0x2c/0x3b0 [ 50.180782][ T66] ? cleanup_net+0xa5d/0xb90 [ 50.180908][ T66] print_report+0xb4/0x270 [ 50.181032][ T66] ? kasan_addr_to_slab+0x25/0x80 [ 50.181155][ T66] kasan_report+0xbd/0xf0 [ 50.181250][ T66] ? cleanup_net+0xa5d/0xb90 [ 50.181373][ T66] cleanup_net+0xa5d/0xb90 [ 50.181496][ T66] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 50.181621][ T66] ? __pfx_cleanup_net+0x10/0x10 [ 50.181743][ T66] ? trace_lock_acquire+0x148/0x1f0 [ 50.181867][ T66] ? lock_acquire+0x32/0xc0 [ 50.181988][ T66] ? process_one_work+0xe0b/0x16d0 [ 50.182115][ T66] process_one_work+0xe55/0x16d0 [ 50.182241][ T66] ? __pfx___lock_release+0x10/0x10 [ 50.182368][ T66] ? __pfx_process_one_work+0x10/0x10 [ 50.182495][ T66] ? assign_work+0x16c/0x240 [ 50.182618][ T66] worker_thread+0x58c/0xce0 [ 50.182742][ T66] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 50.182899][ T66] ? __pfx_worker_thread+0x10/0x10 [ 50.183021][ T66] ? __pfx_worker_thread+0x10/0x10 [ 50.183146][ T66] kthread+0x28a/0x350 [ 50.183242][ T66] ? __pfx_kthread+0x10/0x10 [ 50.183366][ T66] ret_from_fork+0x31/0x70 [ 50.183490][ T66] ? __pfx_kthread+0x10/0x10 [ 50.183614][ T66] ret_from_fork_asm+0x1a/0x30 [ 50.183742][ T66] [ 50.183837][ T66] [ 50.183900][ T66] Allocated by task 267: [ 50.183993][ T66] kasan_save_stack+0x24/0x50 [ 50.184119][ T66] kasan_save_track+0x14/0x30 [ 50.184241][ T66] __kasan_slab_alloc+0x59/0x70 [ 50.184364][ T66] kmem_cache_alloc_noprof+0x10b/0x350 [ 50.184489][ T66] copy_net_ns+0xc6/0x540 [ 50.184581][ T66] create_new_namespaces+0x35f/0x920 [ 50.184706][ T66] unshare_nsproxy_namespaces+0x8a/0x1b0 [ 50.184828][ T66] ksys_unshare+0x2c4/0x6e0 [ 50.184953][ T66] __x64_sys_unshare+0x31/0x40 [ 50.185076][ T66] do_syscall_64+0xc1/0x1d0 [ 50.185201][ T66] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 50.185353][ T66] [ 50.185416][ T66] Freed by task 66: [ 50.185508][ T66] kasan_save_stack+0x24/0x50 [ 50.185632][ T66] kasan_save_track+0x14/0x30 [ 50.185754][ T66] kasan_save_free_info+0x3b/0x60 [ 50.185878][ T66] __kasan_slab_free+0x38/0x50 [ 50.186000][ T66] kmem_cache_free+0xf8/0x330 [ 50.186123][ T66] cleanup_net+0x5a8/0xb90 [ 50.186244][ T66] process_one_work+0xe55/0x16d0 [ 50.186366][ T66] worker_thread+0x58c/0xce0 [ 50.186487][ T66] kthread+0x28a/0x350 [ 50.186582][ T66] ret_from_fork+0x31/0x70 [ 50.186704][ T66] ret_from_fork_asm+0x1a/0x30 [ 50.186825][ T66] [ 50.186889][ T66] Last potentially related work creation: [ 50.187010][ T66] kasan_save_stack+0x24/0x50 [ 50.187134][ T66] __kasan_record_aux_stack+0x8e/0xa0 [ 50.187259][ T66] insert_work+0x34/0x230 [ 50.187351][ T66] __queue_work+0x5fd/0xa40 [ 50.187473][ T66] queue_delayed_work_on+0x8c/0xa0 [ 50.187599][ T66] __inet_insert_ifa+0x751/0xb10 [ 50.187726][ T66] inetdev_event+0xb18/0xcf0 [ 50.187850][ T66] notifier_call_chain+0xcd/0x150 [ 50.187974][ T66] __dev_notify_flags+0xe6/0x250 [ 50.188114][ T66] dev_change_flags+0xec/0x160 [ 50.188239][ T66] do_setlink.constprop.0+0x79d/0x2300 [ 50.188365][ T66] rtnl_newlink+0x6de/0xa80 [ 50.188489][ T66] rtnetlink_rcv_msg+0x712/0xc10 [ 50.188613][ T66] netlink_rcv_skb+0x130/0x360 [ 50.188738][ T66] netlink_unicast+0x44b/0x710 [ 50.188860][ T66] netlink_sendmsg+0x723/0xbe0 [ 50.188985][ T66] ____sys_sendmsg+0x7ac/0xa10 [ 50.189112][ T66] ___sys_sendmsg+0xee/0x170 [ 50.189236][ T66] __sys_sendmsg+0x109/0x1a0 [ 50.189359][ T66] do_syscall_64+0xc1/0x1d0 [ 50.189483][ T66] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 50.189637][ T66] [ 50.189706][ T66] The buggy address belongs to the object at ffff88800c590040 [ 50.189706][ T66] which belongs to the cache net_namespace of size 6528 [ 50.190031][ T66] The buggy address is located 184 bytes inside of [ 50.190031][ T66] freed 6528-byte region [ffff88800c590040, ffff88800c5919c0) [ 50.190325][ T66] [ 50.190387][ T66] The buggy address belongs to the physical page: [ 50.190536][ T66] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xc590 [ 50.190752][ T66] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 50.190937][ T66] flags: 0x80000000000040(head|node=0|zone=1) [ 50.191095][ T66] page_type: f5(slab) [ 50.191193][ T66] raw: 0080000000000040 ffff888001975240 ffff88800197a0a8 ffff88800197a0a8 [ 50.191411][ T66] raw: 0000000000000000 0000000000040004 00000001f5000000 0000000000000000 [ 50.191627][ T66] head: 0080000000000040 ffff888001975240 ffff88800197a0a8 ffff88800197a0a8 [ 50.191847][ T66] head: 0000000000000000 0000000000040004 00000001f5000000 0000000000000000 [ 50.192064][ T66] head: 0080000000000003 ffffea0000316401 ffffffffffffffff 0000000000000000 [ 50.192284][ T66] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 50.192499][ T66] page dumped because: kasan: bad access detected [ 50.192651][ T66] [ 50.192712][ T66] Memory state around the buggy address: [ 50.192831][ T66] ffff88800c58ff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 50.193010][ T66] ffff88800c590000: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 50.193184][ T66] >ffff88800c590080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.193365][ T66] ^ [ 50.193542][ T66] ffff88800c590100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.193717][ T66] ffff88800c590180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 50.193895][ T66] ================================================================== [ 50.194149][ T66] Disabling lock debugging due to kernel taint