Warning: Permanently added '[localhost]:31354' (ECDSA) to the list of known hosts. 2021/12/06 11:21:06 fuzzer started 2021/12/06 11:21:06 dialing manager at localhost:35719 2021/12/06 11:21:06 checking machine... 2021/12/06 11:21:06 checking revisions... syzkaller login: [ 41.772040] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:21:07 testing simple program... [ 41.816769] cgroup: Unknown subsys name 'net' [ 41.818419] cgroup: Unknown subsys name 'net_prio' [ 41.820389] cgroup: Unknown subsys name 'devices' [ 41.821741] cgroup: Unknown subsys name 'blkio' [ 41.863353] [ 41.863651] ========================= [ 41.864320] WARNING: held lock freed! [ 41.864783] 5.16.0-rc3-next-20211203 #1 Not tainted [ 41.865410] ------------------------- [ 41.865859] kworker/0:2/48 is freeing memory ffff88800ea45c00-ffff88800ea45dff, with a lock still held there! [ 41.867092] ffff88800ea45d48 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 41.868347] 3 locks held by kworker/0:2/48: [ 41.868913] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 41.870207] #1: ffff88800ef57da8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 41.871704] #2: ffff88800ea45d48 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 41.873000] [ 41.873000] stack backtrace: [ 41.873568] CPU: 0 PID: 48 Comm: kworker/0:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 41.874551] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 41.875920] Workqueue: cgroup_destroy css_free_rwork_fn [ 41.876803] Call Trace: [ 41.877118] [ 41.877397] dump_stack_lvl+0x8b/0xb3 [ 41.877869] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 41.878541] ? kernfs_put.part.0+0x334/0x540 [ 41.879078] kfree+0xb3/0x5a0 [ 41.879499] ? kmem_cache_free+0xce/0x640 [ 41.880213] kernfs_put.part.0+0x334/0x540 [ 41.880762] kernfs_put+0x42/0x50 [ 41.881183] __kernfs_remove+0x7ce/0xb00 [ 41.881687] ? lock_is_held_type+0xd7/0x130 [ 41.882230] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 41.882883] ? down_write+0xde/0x150 [ 41.883355] ? down_write_killable_nested+0x180/0x180 [ 41.884213] kernfs_destroy_root+0x89/0xb0 [ 41.884768] css_free_rwork_fn+0xa28/0xf40 [ 41.885297] process_one_work+0xa30/0x1710 [ 41.885859] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 41.886435] ? rwlock_bug.part.0+0x90/0x90 [ 41.886958] ? _raw_spin_lock_irq+0x41/0x50 [ 41.887495] worker_thread+0x62a/0x13e0 [ 41.888495] ? process_one_work+0x1710/0x1710 [ 41.889056] kthread+0x40c/0x500 [ 41.889505] ? set_kthread_struct+0x130/0x130 [ 41.890052] ret_from_fork+0x22/0x30 [ 41.890562] [ 41.890959] ================================================================== [ 41.891857] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 41.892821] Read of size 8 at addr ffff88800ea45d40 by task kworker/0:2/48 [ 41.893689] [ 41.893887] CPU: 0 PID: 48 Comm: kworker/0:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 41.894872] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 41.896690] Workqueue: cgroup_destroy css_free_rwork_fn [ 41.897348] Call Trace: [ 41.897662] [ 41.897935] dump_stack_lvl+0x8b/0xb3 [ 41.898431] print_address_description.constprop.0+0x1f/0x180 [ 41.899151] ? up_write+0x3ac/0x460 [ 41.899648] ? up_write+0x3ac/0x460 [ 41.900222] kasan_report.cold+0x7f/0x11b [ 41.900774] ? up_write+0x3ac/0x460 [ 41.901223] up_write+0x3ac/0x460 [ 41.901662] css_free_rwork_fn+0xa28/0xf40 [ 41.902192] process_one_work+0xa30/0x1710 [ 41.902751] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 41.903324] ? rwlock_bug.part.0+0x90/0x90 [ 41.903876] ? _raw_spin_lock_irq+0x41/0x50 [ 41.904724] worker_thread+0x62a/0x13e0 [ 41.905224] ? process_one_work+0x1710/0x1710 [ 41.905827] kthread+0x40c/0x500 [ 41.906257] ? set_kthread_struct+0x130/0x130 [ 41.906831] ret_from_fork+0x22/0x30 [ 41.907298] [ 41.907627] [ 41.907830] Allocated by task 283: [ 41.908409] kasan_save_stack+0x1e/0x40 [ 41.908903] __kasan_kmalloc+0x81/0xa0 [ 41.909401] kernfs_create_root+0x4c/0x410 [ 41.909946] cgroup_setup_root+0x346/0xb60 [ 41.910469] cgroup1_get_tree+0xc1b/0x1370 [ 41.910992] vfs_get_tree+0x8e/0x2f0 [ 41.911482] path_mount+0x131b/0x1f80 [ 41.912044] __x64_sys_mount+0x27e/0x300 [ 41.912604] do_syscall_64+0x3b/0x90 [ 41.913065] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 41.913728] [ 41.913928] Freed by task 48: [ 41.914302] kasan_save_stack+0x1e/0x40 [ 41.914833] kasan_set_track+0x21/0x30 [ 41.915333] kasan_set_free_info+0x20/0x30 [ 41.915859] __kasan_slab_free+0x108/0x170 [ 41.916688] kfree+0xc5/0x5a0 [ 41.917076] kernfs_put.part.0+0x334/0x540 [ 41.917625] kernfs_put+0x42/0x50 [ 41.918047] __kernfs_remove+0x7ce/0xb00 [ 41.918589] kernfs_destroy_root+0x89/0xb0 [ 41.919107] css_free_rwork_fn+0xa28/0xf40 [ 41.919657] process_one_work+0xa30/0x1710 [ 41.920290] worker_thread+0x62a/0x13e0 [ 41.920832] kthread+0x40c/0x500 [ 41.921254] ret_from_fork+0x22/0x30 [ 41.921735] [ 41.921937] The buggy address belongs to the object at ffff88800ea45c00 [ 41.921937] which belongs to the cache kmalloc-512 of size 512 [ 41.923411] The buggy address is located 320 bytes inside of [ 41.923411] 512-byte region [ffff88800ea45c00, ffff88800ea45e00) [ 41.924978] The buggy address belongs to the page: [ 41.925609] page:00000000117bbb20 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xea44 [ 41.926742] head:00000000117bbb20 order:2 compound_mapcount:0 compound_pincount:0 [ 41.927683] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 41.928526] raw: 0100000000010200 0000000000000000 dead000000000001 ffff888007841c80 [ 41.929490] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 [ 41.930459] page dumped because: kasan: bad access detected [ 41.931124] [ 41.931319] Memory state around the buggy address: [ 41.932048] ffff88800ea45c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.932956] ffff88800ea45c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.933870] >ffff88800ea45d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.934771] ^ [ 41.935416] ffff88800ea45d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 41.939116] ffff88800ea45e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 41.940044] ================================================================== [ 41.994290] cgroup: Unknown subsys name 'hugetlb' [ 41.995407] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:21:07 Registers: info registers vcpu 0 RAX=dffffc0000000060 RBX=00000000000003fd RCX=0000000000000000 RDX=00000000000003fd RSI=ffffffff8236405c RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff88800ef577a8 R8 =0000000000000042 R9 =0000000000000031 R10=ffffffff8234ae1b R11=000000000000000a R12=0000000000000020 R13=fffffbfff0e70397 R14=fffffbfff0e7034e R15=dffffc0000000000 RIP=ffffffff823640b0 RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 0000000000000000 00000000 00000000 GS =0000 ffff88806ce00000 00000000 00000000 LDT=0000 fffffe0000000000 00000000 00000000 TR =0040 fffffe0000003000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000001000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=000056315ff503b8 CR3=000000000dbd6000 CR4=00350ef0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 YMM00=0000000000000000 0000000000000000 ffffffffffffffff ffffffffffffffff YMM01=0000000000000000 0000000000000000 00000004ffffffff 000056315fefc810 YMM02=0000000000000000 0000000000000000 ffffff0f0e0d0c0b 0a09080706050403 YMM03=0000000000000000 0000000000000000 696e656420737365 636341002f737973 YMM04=0000000000000000 0000000000000000 00000003ffffffff 000056315feeac50 YMM05=0000000000000000 0000000000000000 000056315fefc930 000056315fef3ee0 YMM06=0000000000000000 0000000000000000 000056315fefc950 0000000000000000 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 616c702f73656369 7665642f7379732f YMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM10=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000 info registers vcpu 1 RAX=0000000000000000 RBX=ffff88806cf37b00 RCX=ffffffff81200fa9 RDX=1ffff1100d9e70ba RSI=0000000000000008 RDI=ffff88806cf385d0 RBP=ffff8880081a9ac0 RSP=ffff88806cf09ca8 R8 =0000000000000000 R9 =ffff8880081a9ac7 R10=ffffed1001035358 R11=0000000000000001 R12=0000000000000001 R13=ffff88806cf384d8 R14=ffffffff84eed0d0 R15=ffff88806cf37b00 RIP=ffffffff8405b2c0 RFL=00000046 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=0 ES =0000 0000000000000000 00000000 00000000 CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA] SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA] DS =0000 0000000000000000 00000000 00000000 FS =0000 0000000000000000 00000000 00000000 GS =0000 ffff88806cf00000 00000000 00000000 LDT=0000 fffffe0000000000 00000000 00000000 TR =0040 fffffe000004a000 00004087 00008b00 DPL=0 TSS64-busy GDT= fffffe0000048000 0000007f IDT= fffffe0000000000 00000fff CR0=80050033 CR2=00007f5b2ad13018 CR3=0000000008810000 CR4=00350ee0 DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 DR6=00000000ffff0ff0 DR7=0000000000000400 EFER=0000000000000d01 FCW=037f FSW=0000 [ST=0] FTW=00 MXCSR=00001f80 FPR0=0000000000000000 0000 FPR1=0000000000000000 0000 FPR2=0000000000000000 0000 FPR3=0000000000000000 0000 FPR4=0000000000000000 0000 FPR5=0000000000000000 0000 FPR6=0000000000000000 0000 FPR7=0000000000000000 0000 YMM00=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM01=0000000000000000 0000000000000000 7b0b2e0524854280 fe4f4dc549b99bf9 YMM02=0000000000000000 0000000000000000 6b1e99b806172e3b 00000000000aea20 YMM03=0000000000000000 0000000000000000 375afdebbf381c81 00000000000e6040 YMM04=0000000000000000 0000000000000000 846edd6f18958c7d 000000000012fca0 YMM05=0000000000000000 0000000000000000 d3fdd5f48436fbd7 00000000000aeac8 YMM06=0000000000000000 0000000000000000 758356f378026b21 00000000000ae980 YMM07=0000000000000000 0000000000000000 a1fcdcf819d7e1e5 00000000000ae728 YMM08=0000000000000000 0000000000000000 44495f474f4c5359 530069253d595449 YMM09=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM10=0000000000000000 0000000000000000 2020000000002020 2020202020200000 YMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM13=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM14=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM15=0000000000000000 0000000000000000 0000000000000000 0000000000000000