[ 23.196724][ T257] ip (257) used greatest stack depth: 24112 bytes left [ 31.629037][ T315] rc1: renamed from rc0 (while UP) [ 31.854753][ T320] rs1: renamed from rs0 (while UP) [ 32.120936][ T322] rc2: renamed from rc1 (while UP) [ 32.317301][ T327] rs2: renamed from rs1 (while UP) [ 32.872735][ T328] rc3: renamed from rc2 (while UP) [ 33.559050][ T350] rs3: renamed from rs2 (while UP) [ 34.618031][ T351] rc4: renamed from rc3 (while UP) [ 35.554042][ T353] rs4: renamed from rs3 (while UP) [ 36.023623][ T354] rc5: renamed from rc4 (while UP) [ 36.649067][ T355] rs5: renamed from rs4 (while UP) [ 37.300302][ T357] rc6: renamed from rc5 (while UP) [ 37.958086][ T359] rs6: renamed from rs5 (while UP) [ 38.641244][ T360] rc7: renamed from rc6 (while UP) [ 39.373073][ T362] rs7: renamed from rs6 (while UP) [ 40.330437][ T363] rc8: renamed from rc7 (while UP) [ 41.051450][ T365] rs8: renamed from rs7 (while UP) [ 41.848732][ T366] rc9: renamed from rc8 (while UP) [ 42.515144][ T367] rs9: renamed from rs8 (while UP) [ 43.258235][ T369] rc0: renamed from rc9 (while UP) [ 44.127871][ T370] rs0: renamed from rs9 (while UP) [ 44.795707][ T373] rc1: renamed from rc0 (while UP) [ 45.543359][ T374] rs1: renamed from rs0 (while UP) [ 46.067519][ T376] rc2: renamed from rc1 (while UP) [ 46.628678][ T377] rs2: renamed from rs1 (while UP) [ 47.224901][ T378] rc3: renamed from rc2 (while UP) [ 47.966528][ T380] rs3: renamed from rs2 (while UP) [ 48.702531][ T381] rc4: renamed from rc3 (while UP) [ 49.303105][ T383] rs4: renamed from rs3 (while UP) [ 49.884473][ T384] rc5: renamed from rc4 (while UP) [ 50.471247][ T385] rs5: renamed from rs4 (while UP) [ 51.084842][ T387] rc6: renamed from rc5 (while UP) [ 51.705602][ T388] rs6: renamed from rs5 (while UP) [ 52.250195][ T390] rc7: renamed from rc6 (while UP) [ 52.922794][ T391] rs7: renamed from rs6 (while UP) [ 53.813485][ T393] rc8: renamed from rc7 (while UP) [ 54.463277][ T394] rs8: renamed from rs7 (while UP) [ 55.144292][ T395] rc9: renamed from rc8 (while UP) [ 55.759081][ T397] rs9: renamed from rs8 (while UP) [ 56.795296][ T398] rc0: renamed from rc9 (while UP) [ 57.473897][ T400] rs0: renamed from rs9 (while UP) [ 58.085522][ T401] rc1: renamed from rc0 (while UP) [ 58.799307][ T403] rs1: renamed from rs0 (while UP) [ 59.525462][ T404] rc2: renamed from rc1 (while UP) [ 60.165052][ T406] rs2: renamed from rs1 (while UP) [ 60.850100][ T407] rc3: renamed from rc2 (while UP) [ 61.724127][ T409] rs3: renamed from rs2 (while UP) [ 62.523098][ T410] rc4: renamed from rc3 (while UP) [ 63.114006][ T412] rs4: renamed from rs3 (while UP) [ 63.769829][ T413] rc5: renamed from rc4 (while UP) [ 64.348051][ T414] rs5: renamed from rs4 (while UP) [ 64.977696][ T416] rc6: renamed from rc5 (while UP) [ 65.986135][ T417] rs6: renamed from rs5 (while UP) [ 66.631342][ T419] rc7: renamed from rc6 (while UP) [ 67.359713][ T420] rs7: renamed from rs6 (while UP) [ 67.986732][ T422] rc8: renamed from rc7 (while UP) [ 68.564318][ T423] rs8: renamed from rs7 (while UP) [ 69.263030][ T424] rc9: renamed from rc8 (while UP) [ 69.893244][ T426] rs9: renamed from rs8 (while UP) [ 70.536716][ T427] rc0: renamed from rc9 (while UP) [ 71.157940][ T429] rs0: renamed from rs9 (while UP) [ 71.832065][ T430] rc1: renamed from rc0 (while UP) [ 72.377893][ T431] rs1: renamed from rs0 (while UP) [ 73.024951][ T433] rc2: renamed from rc1 (while UP) [ 73.609067][ T434] rs2: renamed from rs1 (while UP) [ 74.482765][ T435] rc3: renamed from rc2 (while UP) [ 75.167036][ T437] rs3: renamed from rs2 (while UP) [ 75.931004][ T438] rc4: renamed from rc3 (while UP) [ 76.675506][ T440] rs4: renamed from rs3 (while UP) [ 77.277111][ T441] rc5: renamed from rc4 (while UP) [ 78.047325][ T443] rs5: renamed from rs4 (while UP) [ 78.616044][ T444] rc6: renamed from rc5 (while UP) [ 79.291580][ T445] rs6: renamed from rs5 (while UP) [ 80.066798][ T447] rc7: renamed from rc6 (while UP) [ 80.568728][ T448] rs7: renamed from rs6 (while UP) [ 81.303439][ T12] ================================================================== [ 81.303925][ T12] BUG: KASAN: slab-use-after-free in kobject_put+0xbb/0xd0 [ 81.304366][ T12] Read of size 1 at addr ffff8880088fc6ac by task kworker/u16:0/12 [ 81.304796][ T12] [ 81.304975][ T12] CPU: 1 UID: 0 PID: 12 Comm: kworker/u16:0 Not tainted 6.18.0-rc4-virtme #1 PREEMPT(full) [ 81.304983][ T12] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 81.304988][ T12] Workqueue: netns cleanup_net [ 81.304998][ T12] Call Trace: [ 81.305001][ T12] [ 81.305006][ T12] dump_stack_lvl+0x82/0xc0 [ 81.305016][ T12] print_address_description.constprop.0+0x2c/0x3a0 [ 81.305027][ T12] ? kobject_put+0xbb/0xd0 [ 81.305034][ T12] print_report+0xb4/0x270 [ 81.305040][ T12] ? kobject_put+0xbb/0xd0 [ 81.305045][ T12] ? kasan_addr_to_slab+0x21/0x70 [ 81.305051][ T12] ? kobject_put+0xbb/0xd0 [ 81.305056][ T12] kasan_report+0xca/0x100 [ 81.305065][ T12] ? kobject_put+0xbb/0xd0 [ 81.305075][ T12] kobject_put+0xbb/0xd0 [ 81.305081][ T12] netdev_run_todo+0x5f0/0xc60 [ 81.305088][ T12] ? dev_ingress_queue_create+0x190/0x190 [ 81.305095][ T12] ? generic_xdp_install+0x410/0x410 [ 81.305108][ T12] ops_undo_list+0x714/0x890 [ 81.305118][ T12] ? netns_get+0x110/0x110 [ 81.305123][ T12] ? cleanup_net+0x2d6/0x830 [ 81.305133][ T12] cleanup_net+0x3b2/0x830 [ 81.305139][ T12] ? net_passive_dec+0x190/0x190 [ 81.305146][ T12] ? rcu_is_watching+0x12/0xb0 [ 81.305155][ T12] process_one_work+0xe35/0x1650 [ 81.305173][ T12] ? pwq_dec_nr_in_flight+0x550/0x550 [ 81.305183][ T12] ? assign_work+0x168/0x240 [ 81.305191][ T12] worker_thread+0x591/0xcf0 [ 81.305201][ T12] ? rescuer_thread+0xd10/0xd10 [ 81.305207][ T12] kthread+0x37b/0x5f0 [ 81.305217][ T12] ? kthread_is_per_cpu+0xc0/0xc0 [ 81.305222][ T12] ? ret_from_fork+0x1b/0x270 [ 81.305237][ T12] ? __lock_release+0x5d/0x170 [ 81.305247][ T12] ? rcu_is_watching+0x12/0xb0 [ 81.305253][ T12] ? kthread_is_per_cpu+0xc0/0xc0 [ 81.305259][ T12] ret_from_fork+0x1db/0x270 [ 81.305264][ T12] ? kthread_is_per_cpu+0xc0/0xc0 [ 81.305270][ T12] ret_from_fork_asm+0x11/0x20 [ 81.305286][ T12] [ 81.305289][ T12] [ 81.315945][ T12] Allocated by task 251: [ 81.316159][ T12] kasan_save_stack+0x24/0x40 [ 81.316476][ T12] kasan_save_track+0x14/0x30 [ 81.316741][ T12] __kasan_kmalloc+0x7b/0x90 [ 81.317008][ T12] __kvmalloc_node_noprof+0x2e5/0x8e0 [ 81.317287][ T12] alloc_netdev_mqs+0x7d/0x1370 [ 81.317561][ T12] sit_init_net+0x169/0x550 [ 81.317853][ T12] ops_init+0x189/0x550 [ 81.318099][ T12] setup_net+0xf1/0x380 [ 81.318322][ T12] copy_net_ns+0x21a/0x380 [ 81.318591][ T12] create_new_namespaces+0x35f/0x900 [ 81.318862][ T12] unshare_nsproxy_namespaces+0x89/0x120 [ 81.319151][ T12] ksys_unshare+0x2a3/0x660 [ 81.319423][ T12] __x64_sys_unshare+0x31/0x40 [ 81.319690][ T12] do_syscall_64+0xc1/0xfd0 [ 81.319974][ T12] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 81.320305][ T12] [ 81.320433][ T12] Freed by task 12: [ 81.320631][ T12] kasan_save_stack+0x24/0x40 [ 81.320912][ T12] kasan_save_track+0x14/0x30 [ 81.321190][ T12] __kasan_save_free_info+0x3b/0x60 [ 81.321457][ T12] __kasan_slab_free+0x3f/0x60 [ 81.321732][ T12] kfree+0x21d/0x540 [ 81.321953][ T12] device_release+0x9c/0x210 [ 81.322238][ T12] kobject_cleanup+0xfe/0x360 [ 81.322511][ T12] netdev_run_todo+0x81f/0xc60 [ 81.322785][ T12] ops_undo_list+0x714/0x890 [ 81.323094][ T12] cleanup_net+0x3b2/0x830 [ 81.323357][ T12] process_one_work+0xe35/0x1650 [ 81.323622][ T12] worker_thread+0x591/0xcf0 [ 81.323885][ T12] kthread+0x37b/0x5f0 [ 81.324092][ T12] ret_from_fork+0x1db/0x270 [ 81.324373][ T12] ret_from_fork_asm+0x11/0x20 [ 81.324654][ T12] [ 81.324791][ T12] The buggy address belongs to the object at ffff8880088fc000 [ 81.324791][ T12] which belongs to the cache kmalloc-4k of size 4096 [ 81.325439][ T12] The buggy address is located 1708 bytes inside of [ 81.325439][ T12] freed 4096-byte region [ffff8880088fc000, ffff8880088fd000) [ 81.326108][ T12] [ 81.326252][ T12] The buggy address belongs to the physical page: [ 81.326616][ T12] page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x88f8 [ 81.327119][ T12] head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 [ 81.327577][ T12] flags: 0x80000000000040(head|node=0|zone=1) [ 81.327944][ T12] page_type: f5(slab) [ 81.328155][ T12] raw: 0080000000000040 ffff888001043700 ffffea000014aa10 ffffea00001e9c10 [ 81.328649][ T12] raw: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 81.329178][ T12] head: 0080000000000040 ffff888001043700 ffffea000014aa10 ffffea00001e9c10 [ 81.329720][ T12] head: 0000000000000000 0000000000020002 00000000f5000000 0000000000000000 [ 81.330215][ T12] head: 0080000000000003 ffffea0000223e01 00000000ffffffff 00000000ffffffff [ 81.330696][ T12] head: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 [ 81.331181][ T12] page dumped because: kasan: bad access detected [ 81.331496][ T12] [ 81.331634][ T12] Memory state around the buggy address: [ 81.331903][ T12] ffff8880088fc580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 81.332330][ T12] ffff8880088fc600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 81.332701][ T12] >ffff8880088fc680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 81.333119][ T12] ^ [ 81.333397][ T12] ffff8880088fc700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 81.333783][ T12] ffff8880088fc780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 81.334184][ T12] ================================================================== [ 81.335070][ T12] Disabling lock debugging due to kernel taint [ 81.335518][ T12] ------------[ cut here ]------------ [ 81.335799][ T12] refcount_t: underflow; use-after-free. [ 81.336240][ T12] WARNING: CPU: 0 PID: 12 at lib/refcount.c:28 refcount_warn_saturate+0x16f/0x1b0 [ 81.336741][ T12] Modules linked in: nft_flow_offload nf_flow_table_inet nf_flow_table nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables veth [ 81.337480][ T12] CPU: 0 UID: 0 PID: 12 Comm: kworker/u16:0 Tainted: G B 6.18.0-rc4-virtme #1 PREEMPT(full) [ 81.338086][ T12] Tainted: [B]=BAD_PAGE [ 81.338299][ T12] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 81.338618][ T12] Workqueue: netns cleanup_net [ 81.338890][ T12] RIP: 0010:refcount_warn_saturate+0x16f/0x1b0 [ 81.339243][ T12] Code: 83 90 02 80 fb 01 0f 87 95 6b d6 fe 83 e3 01 0f 85 51 ff ff ff c6 05 b1 83 90 02 01 90 48 c7 c7 a0 de a5 88 e8 c2 8b 15 ff 90 <0f> 0b 90 90 e9 33 ff ff ff 48 89 df e8 f0 34 a1 ff e9 ba fe ff ff [ 81.340188][ T12] RSP: 0018:ffffc900000c7a08 EFLAGS: 00010282 [ 81.340515][ T12] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 [ 81.340907][ T12] RDX: 0000000000000002 RSI: 0000000000000004 RDI: 0000000000000001 [ 81.341300][ T12] RBP: 0000000000000003 R08: 0000000000000000 R09: fffffbfff127e220 [ 81.341690][ T12] R10: 0000000000000003 R11: ffffc900000c7580 R12: 0000000000000001 [ 81.342089][ T12] R13: dffffc0000000000 R14: dead000000000122 R15: dead000000000100 [ 81.342499][ T12] FS: 0000000000000000(0000) GS:ffff8880ab9ec000(0000) knlGS:0000000000000000 [ 81.342948][ T12] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 81.343295][ T12] CR2: 00007ffe6dd95f18 CR3: 000000000a653002 CR4: 0000000000772ef0 [ 81.343682][ T12] PKRU: 55555554 [ 81.343886][ T12] Call Trace: [ 81.344082][ T12] [ 81.344251][ T12] netdev_run_todo+0x5f0/0xc60 [ 81.344535][ T12] ? dev_ingress_queue_create+0x190/0x190 [ 81.344793][ T12] ? generic_xdp_install+0x410/0x410 [ 81.345055][ T12] ops_undo_list+0x714/0x890 [ 81.345324][ T12] ? netns_get+0x110/0x110 [ 81.345585][ T12] ? cleanup_net+0x2d6/0x830 [ 81.345853][ T12] cleanup_net+0x3b2/0x830 [ 81.346165][ T12] ? net_passive_dec+0x190/0x190 [ 81.346444][ T12] ? rcu_is_watching+0x12/0xb0 [ 81.346737][ T12] process_one_work+0xe35/0x1650 [ 81.347005][ T12] ? pwq_dec_nr_in_flight+0x550/0x550 [ 81.347279][ T12] ? assign_work+0x168/0x240 [ 81.347537][ T12] worker_thread+0x591/0xcf0 [ 81.347807][ T12] ? rescuer_thread+0xd10/0xd10 [ 81.348091][ T12] kthread+0x37b/0x5f0 [ 81.348316][ T12] ? kthread_is_per_cpu+0xc0/0xc0 [ 81.348578][ T12] ? ret_from_fork+0x1b/0x270 [ 81.348843][ T12] ? __lock_release+0x5d/0x170 [ 81.349107][ T12] ? rcu_is_watching+0x12/0xb0 [ 81.349383][ T12] ? kthread_is_per_cpu+0xc0/0xc0 [ 81.349633][ T12] ret_from_fork+0x1db/0x270 [ 81.349886][ T12] ? kthread_is_per_cpu+0xc0/0xc0 [ 81.350148][ T12] ret_from_fork_asm+0x11/0x20 [ 81.350418][ T12] [ 81.350622][ T12] irq event stamp: 6249 [ 81.350818][ T12] hardirqs last enabled at (6249): [] finish_task_switch.isra.0+0x245/0x960 [ 81.351353][ T12] hardirqs last disabled at (6248): [] __schedule+0x94a/0x1b10 [ 81.351809][ T12] softirqs last enabled at (6078): [] handle_softirqs+0x352/0x610 [ 81.352288][ T12] softirqs last disabled at (6071): [] irq_exit_rcu+0xab/0x100 [ 81.352768][ T12] ---[ end trace 0000000000000000 ]---