Warning: Permanently added '[localhost]:33734' (ECDSA) to the list of known hosts. 2021/12/06 11:22:13 fuzzer started 2021/12/06 11:22:14 dialing manager at localhost:35719 2021/12/06 11:22:14 checking machine... 2021/12/06 11:22:14 checking revisions... syzkaller login: [ 44.715106] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:22:14 testing simple program... [ 44.777428] cgroup: Unknown subsys name 'net' [ 44.778336] cgroup: Unknown subsys name 'net_prio' [ 44.780783] cgroup: Unknown subsys name 'devices' [ 44.783059] cgroup: Unknown subsys name 'blkio' [ 44.837226] [ 44.837489] ========================= [ 44.837924] WARNING: held lock freed! [ 44.838388] 5.16.0-rc3-next-20211203 #1 Not tainted [ 44.838984] ------------------------- [ 44.839471] kworker/0:0/5 is freeing memory ffff88800cca3800-ffff88800cca39ff, with a lock still held there! [ 44.840705] ffff88800cca3948 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 44.841804] 3 locks held by kworker/0:0/5: [ 44.842322] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 44.847608] #1: ffff888008167da8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 44.849073] #2: ffff88800cca3948 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 44.850222] [ 44.850222] stack backtrace: [ 44.850763] CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.16.0-rc3-next-20211203 #1 [ 44.855692] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 44.857044] Workqueue: cgroup_destroy css_free_rwork_fn [ 44.857698] Call Trace: [ 44.858009] [ 44.858280] dump_stack_lvl+0x8b/0xb3 [ 44.858760] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 44.863640] ? kernfs_put.part.0+0x334/0x540 [ 44.864197] kfree+0xb3/0x5a0 [ 44.864588] ? kmem_cache_free+0xce/0x640 [ 44.865105] kernfs_put.part.0+0x334/0x540 [ 44.865645] kernfs_put+0x42/0x50 [ 44.866077] __kernfs_remove+0x7ce/0xb00 [ 44.866581] ? lock_is_held_type+0xd7/0x130 [ 44.871222] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 44.871849] ? down_write+0xde/0x150 [ 44.872304] ? down_write_killable_nested+0x180/0x180 [ 44.872941] kernfs_destroy_root+0x89/0xb0 [ 44.873461] css_free_rwork_fn+0xa28/0xf40 [ 44.873990] process_one_work+0xa30/0x1710 [ 44.874529] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 44.879122] ? rwlock_bug.part.0+0x90/0x90 [ 44.879667] ? _raw_spin_lock_irq+0x41/0x50 [ 44.880208] worker_thread+0x62a/0x13e0 [ 44.880707] ? process_one_work+0x1710/0x1710 [ 44.881267] kthread+0x40c/0x500 [ 44.881691] ? set_kthread_struct+0x130/0x130 [ 44.882237] ret_from_fork+0x22/0x30 [ 44.882710] [ 44.883125] ================================================================== [ 44.891705] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 44.892436] Read of size 8 at addr ffff88800cca3940 by task kworker/0:0/5 [ 44.893274] [ 44.893478] CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.16.0-rc3-next-20211203 #1 [ 44.894414] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 44.899821] Workqueue: cgroup_destroy css_free_rwork_fn [ 44.900497] Call Trace: [ 44.900816] [ 44.901095] dump_stack_lvl+0x8b/0xb3 [ 44.901574] print_address_description.constprop.0+0x1f/0x180 [ 44.902303] ? up_write+0x3ac/0x460 [ 44.902755] ? up_write+0x3ac/0x460 [ 44.903219] kasan_report.cold+0x7f/0x11b [ 44.903739] ? up_write+0x3ac/0x460 [ 44.904191] up_write+0x3ac/0x460 [ 44.904621] css_free_rwork_fn+0xa28/0xf40 [ 44.905146] process_one_work+0xa30/0x1710 [ 44.905686] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 44.906261] ? rwlock_bug.part.0+0x90/0x90 [ 44.906774] ? _raw_spin_lock_irq+0x41/0x50 [ 44.907342] worker_thread+0x62a/0x13e0 [ 44.907828] ? process_one_work+0x1710/0x1710 [ 44.908369] kthread+0x40c/0x500 [ 44.908778] ? set_kthread_struct+0x130/0x130 [ 44.909328] ret_from_fork+0x22/0x30 [ 44.909794] [ 44.910078] [ 44.910292] Allocated by task 284: [ 44.910725] kasan_save_stack+0x1e/0x40 [ 44.911241] __kasan_kmalloc+0x81/0xa0 [ 44.911720] kernfs_create_root+0x4c/0x410 [ 44.912244] cgroup_setup_root+0x346/0xb60 [ 44.912771] cgroup1_get_tree+0xc1b/0x1370 [ 44.913296] vfs_get_tree+0x8e/0x2f0 [ 44.913760] path_mount+0x131b/0x1f80 [ 44.914237] __x64_sys_mount+0x27e/0x300 [ 44.914739] do_syscall_64+0x3b/0x90 [ 44.915243] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 44.915899] [ 44.916110] Freed by task 5: [ 44.916490] kasan_save_stack+0x1e/0x40 [ 44.916997] kasan_set_track+0x21/0x30 [ 44.917508] kasan_set_free_info+0x20/0x30 [ 44.918041] __kasan_slab_free+0x108/0x170 [ 44.918585] kfree+0xc5/0x5a0 [ 44.918985] kernfs_put.part.0+0x334/0x540 [ 44.919585] kernfs_put+0x42/0x50 [ 44.920015] __kernfs_remove+0x7ce/0xb00 [ 44.920515] kernfs_destroy_root+0x89/0xb0 [ 44.921037] css_free_rwork_fn+0xa28/0xf40 [ 44.921563] process_one_work+0xa30/0x1710 [ 44.922082] worker_thread+0x62a/0x13e0 [ 44.922583] kthread+0x40c/0x500 [ 44.923017] ret_from_fork+0x22/0x30 [ 44.923518] [ 44.923717] Last potentially related work creation: [ 44.924365] kasan_save_stack+0x1e/0x40 [ 44.924861] __kasan_record_aux_stack+0x97/0xa0 [ 44.925491] kvfree_call_rcu+0x2c/0x7a0 [ 44.926004] put_css_set_locked+0x7e6/0xcf0 [ 44.926569] cgroup_free+0x8f/0x1b0 [ 44.927056] __put_task_struct+0x113/0x3e0 [ 44.927634] delayed_put_task_struct+0x1ca/0x2f0 [ 44.928261] rcu_core+0x7e9/0x1ce0 [ 44.928707] __do_softirq+0x270/0x8c7 [ 44.929247] [ 44.929450] The buggy address belongs to the object at ffff88800cca3800 [ 44.929450] which belongs to the cache kmalloc-512 of size 512 [ 44.931077] The buggy address is located 320 bytes inside of [ 44.931077] 512-byte region [ffff88800cca3800, ffff88800cca3a00) [ 44.932612] The buggy address belongs to the page: [ 44.933250] page:00000000f3afc81b refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xcca0 [ 44.934433] head:00000000f3afc81b order:2 compound_mapcount:0 compound_pincount:0 [ 44.936535] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 44.938105] raw: 0100000000010200 dead000000000100 dead000000000122 ffff888007841c80 [ 44.940169] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 44.942280] page dumped because: kasan: bad access detected [ 44.947810] [ 44.948220] Memory state around the buggy address: [ 44.949534] ffff88800cca3800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.951467] ffff88800cca3880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.953358] >ffff88800cca3900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.955262] ^ [ 44.956743] ffff88800cca3980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 44.958751] ffff88800cca3a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 44.961877] ================================================================== [ 45.021775] cgroup: Unknown subsys name 'hugetlb' [ 45.022734] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:22:14 Registers: info registers vcpu 0 RAX=dffffc0000000060 RBX=00000000000003fd RCX=0000000000000000 RDX=00000000000003fd RSI=ffffffff8236405c RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff8880081674e0 R8 =000000000000002f R9 =0000000000000030 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=00007ffcfbcd4940 CR3=000000000e06a000 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=00001fa0 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 0000000000000000 3f847ae147ae147b YMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM03=0000000000000000 0000000000000000 0000000000000000 3f7358f9e41bf29a YMM04=0000000000000000 0000000000000000 6620296f692b202c 6c6f72746e6f635f YMM05=0000000000000000 0000000000000000 28746e756f6d0a32 32203a64656c6961 YMM06=0000000000000000 0000000000000000 202c74656e2f7075 6f7267637a79732f YMM07=0000000000000000 0000000000000000 0a3232203a64656c 696166202974656e YMM08=0000000000000000 0000000000000000 00000000004643c6 0000000000000000 YMM09=0000000000000000 0000000000000000 00000000004643c1 0000000000000000 YMM10=0000000000000000 0000000000000000 000000c00000ce80 000000c0003662c0 YMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM13=0000000000000000 0000000000000000 000000c00000e1e0 000000c00000e1d8 YMM14=0000000000000000 0000000000000000 000000c00000e1f0 000000c00000e1e8 YMM15=0000000000000000 0000000000000000 000000c00000e200 000000c00000e1f8 info registers vcpu 1 RAX=0000000000000000 RBX=ffff88806ce3ed20 RCX=0000000000000000 RDX=ffff88800d63b580 RSI=ffffffff813865f9 RDI=0000000000000003 RBP=0000000000000003 RSP=ffff8880173cf930 R8 =0000000000000000 R9 =0000000000000001 R10=ffffffff8138661f R11=0000000000000000 R12=ffffed100d9c7da5 R13=0000000000000000 R14=ffff88806ce3ed28 R15=0000000000000001 RIP=ffffffff813865fb RFL=00000293 [--S-A-C] 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 0000555555816400 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=00007f20362aa6d0 CR3=000000000d608000 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 0000000000000000 0000000000000000 YMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM04=0000000000000000 0000000000000000 ffffffffffffffff ffffffffffffffff YMM05=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM06=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 0000000000000000 0000000000000000 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