[ 18.407895][ T260] packetdrill (260) used greatest stack depth: 23792 bytes left [ 18.472289][ T11] ================================================================== [ 18.472630][ T11] BUG: KASAN: slab-use-after-free in cleanup_net+0x932/0xa40 [ 18.472893][ T11] Read of size 8 at addr ffff8880050200f8 by task kworker/u16:0/11 [ 18.473169][ T11] [ 18.473256][ T11] CPU: 1 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.12.0-virtme #1 [ 18.473495][ T11] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 18.473690][ T11] Workqueue: netns cleanup_net [ 18.473847][ T11] Call Trace: [ 18.473971][ T11] [ 18.474050][ T11] dump_stack_lvl+0x82/0xd0 [ 18.474245][ T11] print_address_description.constprop.0+0x2c/0x3b0 [ 18.474493][ T11] ? cleanup_net+0x932/0xa40 [ 18.474679][ T11] print_report+0xb4/0x270 [ 18.474848][ T11] ? kasan_addr_to_slab+0x25/0x80 [ 18.475019][ T11] kasan_report+0xbd/0xf0 [ 18.475139][ T11] ? cleanup_net+0x932/0xa40 [ 18.475296][ T11] cleanup_net+0x932/0xa40 [ 18.475451][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 18.475606][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 18.475755][ T11] ? trace_lock_acquire+0x148/0x1f0 [ 18.475899][ T11] ? lock_acquire+0x32/0xc0 [ 18.476062][ T11] ? process_one_work+0xe0b/0x16d0 [ 18.476222][ T11] process_one_work+0xe55/0x16d0 [ 18.476372][ T11] ? __pfx___lock_release+0x10/0x10 [ 18.476529][ T11] ? __pfx_process_one_work+0x10/0x10 [ 18.476680][ T11] ? assign_work+0x16c/0x240 [ 18.476841][ T11] worker_thread+0x58c/0xce0 [ 18.476996][ T11] ? __pfx_worker_thread+0x10/0x10 [ 18.477149][ T11] kthread+0x28a/0x350 [ 18.477276][ T11] ? __pfx_kthread+0x10/0x10 [ 18.477440][ T11] ret_from_fork+0x31/0x70 [ 18.477602][ T11] ? __pfx_kthread+0x10/0x10 [ 18.477766][ T11] ret_from_fork_asm+0x1a/0x30 [ 18.477942][ T11] [ 18.478068][ T11] [ 18.478158][ T11] Allocated by task 224: [ 18.478294][ T11] kasan_save_stack+0x24/0x50 [ 18.478472][ T11] kasan_save_track+0x14/0x30 [ 18.478628][ T11] __kasan_slab_alloc+0x59/0x70 [ 18.478793][ T11] kmem_cache_alloc_noprof+0x10b/0x350 [ 18.478962][ T11] copy_net_ns+0xc6/0x340 [ 18.479088][ T11] create_new_namespaces+0x35f/0x920 [ 18.479246][ T11] unshare_nsproxy_namespaces+0x8d/0x130 [ 18.479399][ T11] ksys_unshare+0x2a9/0x660 [ 18.479566][ T11] __x64_sys_unshare+0x31/0x40 [ 18.479733][ T11] do_syscall_64+0xc1/0x1d0 [ 18.479893][ T11] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 18.480084][ T11] [ 18.480164][ T11] Freed by task 11: [ 18.480292][ T11] kasan_save_stack+0x24/0x50 [ 18.480461][ T11] kasan_save_track+0x14/0x30 [ 18.480633][ T11] kasan_save_free_info+0x3b/0x60 [ 18.480801][ T11] __kasan_slab_free+0x38/0x50 [ 18.480945][ T11] kmem_cache_free+0xf8/0x330 [ 18.481118][ T11] cleanup_net+0x5a8/0xa40 [ 18.481292][ T11] process_one_work+0xe55/0x16d0 [ 18.481460][ T11] worker_thread+0x58c/0xce0 [ 18.481608][ T11] kthread+0x28a/0x350 [ 18.481733][ T11] ret_from_fork+0x31/0x70 [ 18.481894][ T11] ret_from_fork_asm+0x1a/0x30 [ 18.482043][ T11] [ 18.482146][ T11] Last potentially related work creation: [ 18.482314][ T11] kasan_save_stack+0x24/0x50 [ 18.482454][ T11] __kasan_record_aux_stack+0x8e/0xa0 [ 18.482620][ T11] insert_work+0x34/0x230 [ 18.482757][ T11] __queue_work+0x5fd/0xa40 [ 18.482931][ T11] queue_delayed_work_on+0x8c/0xa0 [ 18.483098][ T11] __inet_insert_ifa+0x751/0xb10 [ 18.483256][ T11] inet_rtm_newaddr+0x833/0xbd0 [ 18.483413][ T11] rtnetlink_rcv_msg+0x712/0xc10 [ 18.483588][ T11] netlink_rcv_skb+0x130/0x360 [ 18.483746][ T11] netlink_unicast+0x44b/0x710 [ 18.483917][ T11] netlink_sendmsg+0x723/0xbe0 [ 18.484077][ T11] ____sys_sendmsg+0x7ac/0xa10 [ 18.484246][ T11] ___sys_sendmsg+0xee/0x170 [ 18.484410][ T11] __sys_sendmsg+0x109/0x1a0 [ 18.484578][ T11] do_syscall_64+0xc1/0x1d0 [ 18.484750][ T11] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 18.484935][ T11] [ 18.485008][ T11] The buggy address belongs to the object at ffff888005020040 [ 18.485008][ T11] which belongs to the cache net_namespace of size 5696 [ 18.485439][ T11] The buggy address is located 184 bytes inside of [ 18.485439][ T11] freed 5696-byte region [ffff888005020040, ffff888005021680) [ 18.485789][ T11] [ 18.485871][ T11] The buggy address belongs to the physical page: [ 18.486066][ T11] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888005022fc0 pfn:0x5020 [ 18.486348][ T11] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 18.486587][ T11] flags: 0x80000000000240(workingset|head|node=0|zone=1) [ 18.486772][ T11] page_type: f5(slab) [ 18.486885][ T11] raw: 0080000000000240 ffff88800195f240 ffff888001962088 ffff888001962088 [ 18.487130][ T11] raw: ffff888005022fc0 0000000000050002 00000001f5000000 0000000000000000 [ 18.487367][ T11] head: 0080000000000240 ffff88800195f240 ffff888001962088 ffff888001962088 [ 18.487631][ T11] head: ffff888005022fc0 0000000000050002 00000001f5000000 0000000000000000 [ 18.487861][ T11] head: 0080000000000003 ffffea0000140801 ffffffffffffffff 0000000000000000 [ 18.488108][ T11] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 18.488345][ T11] page dumped because: kasan: bad access detected [ 18.488518][ T11] [ 18.488605][ T11] Memory state around the buggy address: [ 18.488740][ T11] ffff88800501ff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 18.488965][ T11] ffff888005020000: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 18.489227][ T11] >ffff888005020080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.489480][ T11] ^ [ 18.489731][ T11] ffff888005020100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.489981][ T11] ffff888005020180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 18.490233][ T11] ================================================================== [ 18.490598][ T11] Disabling lock debugging due to kernel taint