[ 285.578134][ T402] openvswitch: Open vSwitch switching datapath [ 285.885251][ T398] python3 (398) used greatest stack depth: 24400 bytes left [ 289.736467][ T432] netlink: 'python3': attribute type 2 has an invalid length. [ 289.742653][ T432] arpping: entered promiscuous mode [ 290.492355][ T459] ip (459) used greatest stack depth: 23792 bytes left [ 292.921172][ T483] c0: entered promiscuous mode [ 295.953889][ T521] s0: entered promiscuous mode [ 302.335075][ T585] s0 (unregistering): left promiscuous mode [ 302.593757][ T11] ================================================================== [ 302.593976][ T11] BUG: KASAN: slab-use-after-free in cleanup_net+0xa5d/0xb90 [ 302.594171][ T11] Read of size 8 at addr ffff88800cdc00f8 by task kworker/u16:0/11 [ 302.594354][ T11] [ 302.594418][ T11] CPU: 1 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.12.0-virtme #1 [ 302.594612][ T11] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 302.594773][ T11] Workqueue: netns cleanup_net [ 302.594903][ T11] Call Trace: [ 302.594998][ T11] [ 302.595064][ T11] dump_stack_lvl+0x82/0xd0 [ 302.595202][ T11] print_address_description.constprop.0+0x2c/0x3b0 [ 302.595358][ T11] ? cleanup_net+0xa5d/0xb90 [ 302.595483][ T11] print_report+0xb4/0x270 [ 302.595606][ T11] ? kasan_addr_to_slab+0x25/0x80 [ 302.595730][ T11] kasan_report+0xbd/0xf0 [ 302.595829][ T11] ? cleanup_net+0xa5d/0xb90 [ 302.595956][ T11] cleanup_net+0xa5d/0xb90 [ 302.596081][ T11] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 302.596215][ T11] ? __pfx_cleanup_net+0x10/0x10 [ 302.596361][ T11] ? trace_lock_acquire+0x148/0x1f0 [ 302.596490][ T11] ? lock_acquire+0x32/0xc0 [ 302.596615][ T11] ? process_one_work+0xe0b/0x16d0 [ 302.596745][ T11] process_one_work+0xe55/0x16d0 [ 302.596871][ T11] ? __pfx___lock_release+0x10/0x10 [ 302.597002][ T11] ? __pfx_process_one_work+0x10/0x10 [ 302.597129][ T11] ? assign_work+0x16c/0x240 [ 302.597254][ T11] worker_thread+0x58c/0xce0 [ 302.597388][ T11] ? __pfx_worker_thread+0x10/0x10 [ 302.597514][ T11] kthread+0x28a/0x350 [ 302.597611][ T11] ? __pfx_kthread+0x10/0x10 [ 302.597738][ T11] ret_from_fork+0x31/0x70 [ 302.597860][ T11] ? __pfx_kthread+0x10/0x10 [ 302.597984][ T11] ret_from_fork_asm+0x1a/0x30 [ 302.598114][ T11] [ 302.598224][ T11] [ 302.598287][ T11] Allocated by task 251: [ 302.598380][ T11] kasan_save_stack+0x24/0x50 [ 302.598511][ T11] kasan_save_track+0x14/0x30 [ 302.598633][ T11] __kasan_slab_alloc+0x59/0x70 [ 302.598756][ T11] kmem_cache_alloc_noprof+0x10b/0x350 [ 302.598898][ T11] copy_net_ns+0xc6/0x540 [ 302.598992][ T11] create_new_namespaces+0x35f/0x920 [ 302.599123][ T11] unshare_nsproxy_namespaces+0x8a/0x1b0 [ 302.599255][ T11] ksys_unshare+0x2c4/0x6e0 [ 302.599382][ T11] __x64_sys_unshare+0x31/0x40 [ 302.599505][ T11] do_syscall_64+0xc1/0x1d0 [ 302.599628][ T11] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 302.599786][ T11] [ 302.599856][ T11] Freed by task 11: [ 302.599948][ T11] kasan_save_stack+0x24/0x50 [ 302.600073][ T11] kasan_save_track+0x14/0x30 [ 302.600202][ T11] kasan_save_free_info+0x3b/0x60 [ 302.600328][ T11] __kasan_slab_free+0x38/0x50 [ 302.600450][ T11] kmem_cache_free+0xf8/0x330 [ 302.600571][ T11] cleanup_net+0x5a8/0xb90 [ 302.600693][ T11] process_one_work+0xe55/0x16d0 [ 302.600830][ T11] worker_thread+0x58c/0xce0 [ 302.600956][ T11] kthread+0x28a/0x350 [ 302.601054][ T11] ret_from_fork+0x31/0x70 [ 302.601176][ T11] ret_from_fork_asm+0x1a/0x30 [ 302.601300][ T11] [ 302.601386][ T11] Last potentially related work creation: [ 302.601513][ T11] kasan_save_stack+0x24/0x50 [ 302.601644][ T11] __kasan_record_aux_stack+0x8e/0xa0 [ 302.601773][ T11] insert_work+0x34/0x230 [ 302.601875][ T11] __queue_work+0x5fd/0xa40 [ 302.601998][ T11] call_timer_fn+0x13b/0x230 [ 302.602131][ T11] __run_timers+0x3ff/0x810 [ 302.602256][ T11] run_timer_softirq+0x154/0x1c0 [ 302.602379][ T11] handle_softirqs+0x1f6/0x5c0 [ 302.602502][ T11] do_softirq+0x4d/0xa0 [ 302.602596][ T11] __local_bh_enable_ip+0xf6/0x120 [ 302.602718][ T11] __dev_queue_xmit+0x7bf/0x18d0 [ 302.602863][ T11] ip_finish_output2+0x768/0x1860 [ 302.602988][ T11] ip_output+0x174/0x4f0 [ 302.603084][ T11] __ip_queue_xmit+0x65b/0x1800 [ 302.603207][ T11] __tcp_transmit_skb+0x2365/0x2f50 [ 302.603337][ T11] tcp_send_syn_data+0x1069/0x2280 [ 302.603460][ T11] tcp_connect+0x848/0x1200 [ 302.603582][ T11] tcp_v4_connect+0x119e/0x1900 [ 302.603704][ T11] __inet_stream_connect+0x272/0x9f0 [ 302.603832][ T11] tcp_sendmsg_fastopen+0x365/0x660 [ 302.603957][ T11] tcp_sendmsg_locked+0x16ee/0x3360 [ 302.604082][ T11] tcp_sendmsg+0x2c/0x50 [ 302.604177][ T11] __sys_sendto+0x37a/0x450 [ 302.604322][ T11] __x64_sys_sendto+0xe0/0x1c0 [ 302.604453][ T11] do_syscall_64+0xc1/0x1d0 [ 302.604577][ T11] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 302.604734][ T11] [ 302.604818][ T11] Second to last potentially related work creation: [ 302.604969][ T11] kasan_save_stack+0x24/0x50 [ 302.605113][ T11] __kasan_record_aux_stack+0x8e/0xa0 [ 302.605239][ T11] insert_work+0x34/0x230 [ 302.605333][ T11] __queue_work+0x5fd/0xa40 [ 302.605457][ T11] call_timer_fn+0x13b/0x230 [ 302.605599][ T11] __run_timers+0x3ff/0x810 [ 302.605727][ T11] run_timer_softirq+0x154/0x1c0 [ 302.605850][ T11] handle_softirqs+0x1f6/0x5c0 [ 302.605992][ T11] do_softirq+0x4d/0xa0 [ 302.606086][ T11] __local_bh_enable_ip+0xf6/0x120 [ 302.606209][ T11] inet_csk_get_port+0x2fc/0x15f0 [ 302.606356][ T11] __inet6_bind+0x40c/0x1a30 [ 302.606483][ T11] inet6_bind_sk+0x136/0x1c0 [ 302.606629][ T11] __sys_bind+0x15f/0x230 [ 302.606729][ T11] __x64_sys_bind+0x72/0xb0 [ 302.606851][ T11] do_syscall_64+0xc1/0x1d0 [ 302.606975][ T11] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 302.607128][ T11] [ 302.607191][ T11] The buggy address belongs to the object at ffff88800cdc0040 [ 302.607191][ T11] which belongs to the cache net_namespace of size 6528 [ 302.607530][ T11] The buggy address is located 184 bytes inside of [ 302.607530][ T11] freed 6528-byte region [ffff88800cdc0040, ffff88800cdc19c0) [ 302.607824][ T11] [ 302.607898][ T11] The buggy address belongs to the physical page: [ 302.608049][ T11] page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff88800cdc5140 pfn:0xcdc0 [ 302.608307][ T11] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 302.608497][ T11] flags: 0x80000000000240(workingset|head|node=0|zone=1) [ 302.608667][ T11] page_type: f5(slab) [ 302.608765][ T11] raw: 0080000000000240 ffff888001975240 ffff88800197a088 ffff88800197a088 [ 302.609003][ T11] raw: ffff88800cdc5140 0000000000040003 00000001f5000000 0000000000000000 [ 302.609216][ T11] head: 0080000000000240 ffff888001975240 ffff88800197a088 ffff88800197a088 [ 302.609458][ T11] head: ffff88800cdc5140 0000000000040003 00000001f5000000 0000000000000000 [ 302.609692][ T11] head: 0080000000000003 ffffea0000337001 ffffffffffffffff 0000000000000000 [ 302.609909][ T11] head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 [ 302.610135][ T11] page dumped because: kasan: bad access detected [ 302.610289][ T11] [ 302.610350][ T11] Memory state around the buggy address: [ 302.610471][ T11] ffff88800cdbff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 302.610648][ T11] ffff88800cdc0000: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb [ 302.610847][ T11] >ffff88800cdc0080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 302.611047][ T11] ^ [ 302.611222][ T11] ffff88800cdc0100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 302.611396][ T11] ffff88800cdc0180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 302.611573][ T11] ================================================================== [ 302.611801][ T11] Disabling lock debugging due to kernel taint [ 302.724638][ T593] c0 (unregistering): left promiscuous mode [ 304.244634][ T600] arpping: left promiscuous mode [ 308.461865][ T644] netlink: 'python3': attribute type 2 has an invalid length. [ 308.465937][ T644] ct4: entered promiscuous mode [ 310.735688][ T694] c0: entered promiscuous mode [ 312.970033][ T732] s0: entered promiscuous mode [ 336.377185][ T887] s0 (unregistering): left promiscuous mode [ 336.683206][ T895] c0 (unregistering): left promiscuous mode [ 338.145169][ T901] ct4: left promiscuous mode [ 342.453402][ T944] netlink: 'python3': attribute type 2 has an invalid length. [ 342.457457][ T944] cv4: entered promiscuous mode [ 344.800035][ T994] c0: entered promiscuous mode [ 347.077515][ T1033] s0: entered promiscuous mode [ 355.801480][ T1120] s0 (unregistering): left promiscuous mode [ 356.090715][ T1128] c0 (unregistering): left promiscuous mode [ 357.579809][ T1134] cv4: left promiscuous mode [ 361.847417][ T1178] netlink: 'python3': attribute type 2 has an invalid length. [ 361.851650][ T1178] nat4: entered promiscuous mode [ 364.154378][ T1228] c0: entered promiscuous mode [ 366.347905][ T1267] s0: entered promiscuous mode [ 388.489637][ T1407] s0 (unregistering): left promiscuous mode [ 388.803303][ T1415] c0 (unregistering): left promiscuous mode [ 390.275711][ T1421] nat4: left promiscuous mode [ 394.530615][ T1465] netlink: 'python3': attribute type 2 has an invalid length. [ 394.535512][ T1465] natrelated4: entered promiscuous mode [ 396.877180][ T1515] c0: entered promiscuous mode [ 399.075133][ T1553] s0: entered promiscuous mode [ 411.505336][ T1706] s0 (unregistering): left promiscuous mode [ 411.798722][ T1714] c0 (unregistering): left promiscuous mode [ 413.259049][ T1721] natrelated4: left promiscuous mode [ 417.491523][ T1765] netlink: 'python3': attribute type 2 has an invalid length. [ 417.496301][ T1765] nv0: entered promiscuous mode [ 419.063018][ T1789] netlink: 'python3': attribute type 2 has an invalid length. [ 419.064015][ T1789] openvswitch: nv0: Dropping previously announced user features [ 421.396921][ T1838] left0: entered promiscuous mode [ 423.639733][ T1877] right0: entered promiscuous mode [ 426.470641][ T1909] right0: left promiscuous mode [ 429.330131][ T1945] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 429.420767][ T1945] python3 (1945) used greatest stack depth: 22472 bytes left [ 430.885478][ T1968] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 431.492421][ T1995] left0 (unregistering): left promiscuous mode [ 432.986454][ T2001] nv0: left promiscuous mode [ 438.671091][ T2060] ui0: entered promiscuous mode [ 441.098522][ T2111] left0: entered promiscuous mode [ 443.636738][ T2142] left0 (unregistering): left promiscuous mode [ 445.094097][ T2151] ui0: left promiscuous mode [ 449.344651][ T2195] netlink: 'python3': attribute type 2 has an invalid length. [ 449.348756][ T2195] dropreason: entered promiscuous mode [ 451.683489][ T2245] c0: entered promiscuous mode [ 453.901394][ T2284] s0: entered promiscuous mode [ 488.706578][ T2455] s0 (unregistering): left promiscuous mode [ 489.005676][ T2463] c0 (unregistering): left promiscuous mode [ 490.507038][ T2469] dropreason: left promiscuous mode [ 494.764413][ T2512] psample: entered promiscuous mode [ 497.522833][ T2564] c0: entered promiscuous mode [ 498.296138][ T2595] s0: entered promiscuous mode [ 501.462069][ T2658] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 503.080566][ T2681] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 504.688513][ T2704] openvswitch: netlink: Flow actions may not be safe on all matching packets. [ 514.274647][ T2845] s0 (unregistering): left promiscuous mode [ 514.619624][ T2855] c0 (unregistering): left promiscuous mode [ 516.126273][ T2861] psample: left promiscuous mode