Warning: Permanently added '[localhost]:64151' (ECDSA) to the list of known hosts. 2021/12/06 11:26:58 fuzzer started 2021/12/06 11:26:58 dialing manager at localhost:35719 2021/12/06 11:26:58 checking machine... 2021/12/06 11:26:58 checking revisions... syzkaller login: [ 32.857899] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:26:58 testing simple program... [ 32.895891] cgroup: Unknown subsys name 'net' [ 32.897257] cgroup: Unknown subsys name 'net_prio' [ 32.899384] cgroup: Unknown subsys name 'devices' [ 32.903205] cgroup: Unknown subsys name 'blkio' [ 32.925462] [ 32.925892] ========================= [ 32.926766] WARNING: held lock freed! [ 32.927634] 5.16.0-rc3-next-20211203 #1 Not tainted [ 32.929008] ------------------------- [ 32.930677] kworker/0:2/47 is freeing memory ffff88801d10e800-ffff88801d10e9ff, with a lock still held there! [ 32.932967] ffff88801d10e948 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 32.935014] 3 locks held by kworker/0:2/47: [ 32.935998] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 32.938239] #1: ffff88800afefda8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 32.940561] #2: ffff88801d10e948 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 32.942369] [ 32.942369] stack backtrace: [ 32.943229] CPU: 0 PID: 47 Comm: kworker/0:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 32.944774] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 32.946983] Workqueue: cgroup_destroy css_free_rwork_fn [ 32.948026] Call Trace: [ 32.948541] [ 32.948978] dump_stack_lvl+0x8b/0xb3 [ 32.949728] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 32.950770] ? kernfs_put.part.0+0x334/0x540 [ 32.951647] kfree+0xb3/0x5a0 [ 32.952258] ? kmem_cache_free+0xce/0x640 [ 32.953091] kernfs_put.part.0+0x334/0x540 [ 32.953935] kernfs_put+0x42/0x50 [ 32.954608] __kernfs_remove+0x7ce/0xb00 [ 32.955407] ? lock_is_held_type+0xd7/0x130 [ 32.956256] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 32.957293] ? down_write+0xde/0x150 [ 32.958026] ? down_write_killable_nested+0x180/0x180 [ 32.959042] kernfs_destroy_root+0x89/0xb0 [ 32.959871] css_free_rwork_fn+0xa28/0xf40 [ 32.960716] process_one_work+0xa30/0x1710 [ 32.961554] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 32.962471] ? rwlock_bug.part.0+0x90/0x90 [ 32.963311] ? _raw_spin_lock_irq+0x41/0x50 [ 32.964159] worker_thread+0x62a/0x13e0 [ 32.964967] ? process_one_work+0x1710/0x1710 [ 32.965846] kthread+0x40c/0x500 [ 32.966499] ? set_kthread_struct+0x130/0x130 [ 32.967376] ret_from_fork+0x22/0x30 [ 32.968106] [ 32.968626] ================================================================== [ 32.970058] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 32.971230] Read of size 8 at addr ffff88801d10e940 by task kworker/0:2/47 [ 32.972607] [ 32.972930] CPU: 0 PID: 47 Comm: kworker/0:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 32.974460] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 32.976724] Workqueue: cgroup_destroy css_free_rwork_fn [ 32.977780] Call Trace: [ 32.978285] [ 32.978722] dump_stack_lvl+0x8b/0xb3 [ 32.979473] print_address_description.constprop.0+0x1f/0x180 [ 32.980630] ? up_write+0x3ac/0x460 [ 32.981338] ? up_write+0x3ac/0x460 [ 32.982056] kasan_report.cold+0x7f/0x11b [ 32.982877] ? up_write+0x3ac/0x460 [ 32.983592] up_write+0x3ac/0x460 [ 32.984277] css_free_rwork_fn+0xa28/0xf40 [ 32.985144] process_one_work+0xa30/0x1710 [ 32.985986] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 32.986907] ? rwlock_bug.part.0+0x90/0x90 [ 32.987745] ? _raw_spin_lock_irq+0x41/0x50 [ 32.988617] worker_thread+0x62a/0x13e0 [ 32.989421] ? process_one_work+0x1710/0x1710 [ 32.990311] kthread+0x40c/0x500 [ 32.990970] ? set_kthread_struct+0x130/0x130 [ 32.991850] ret_from_fork+0x22/0x30 [ 32.992595] [ 32.993043] [ 32.993357] Allocated by task 282: [ 32.994038] kasan_save_stack+0x1e/0x40 [ 32.994815] __kasan_kmalloc+0x81/0xa0 [ 32.995568] kernfs_create_root+0x4c/0x410 [ 32.996398] cgroup_setup_root+0x346/0xb60 [ 32.997224] cgroup1_get_tree+0xc1b/0x1370 [ 32.998054] vfs_get_tree+0x8e/0x2f0 [ 32.998779] path_mount+0x131b/0x1f80 [ 32.999519] __x64_sys_mount+0x27e/0x300 [ 33.000309] do_syscall_64+0x3b/0x90 [ 33.001046] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 33.002058] [ 33.002373] Freed by task 47: [ 33.002971] kasan_save_stack+0x1e/0x40 [ 33.003744] kasan_set_track+0x21/0x30 [ 33.004510] kasan_set_free_info+0x20/0x30 [ 33.005331] __kasan_slab_free+0x108/0x170 [ 33.006152] kfree+0xc5/0x5a0 [ 33.006756] kernfs_put.part.0+0x334/0x540 [ 33.007579] kernfs_put+0x42/0x50 [ 33.008251] __kernfs_remove+0x7ce/0xb00 [ 33.009057] kernfs_destroy_root+0x89/0xb0 [ 33.009877] css_free_rwork_fn+0xa28/0xf40 [ 33.010700] process_one_work+0xa30/0x1710 [ 33.011519] worker_thread+0x62a/0x13e0 [ 33.012290] kthread+0x40c/0x500 [ 33.012954] ret_from_fork+0x22/0x30 [ 33.013675] [ 33.013988] The buggy address belongs to the object at ffff88801d10e800 [ 33.013988] which belongs to the cache kmalloc-512 of size 512 [ 33.016401] The buggy address is located 320 bytes inside of [ 33.016401] 512-byte region [ffff88801d10e800, ffff88801d10ea00) [ 33.018665] The buggy address belongs to the page: [ 33.019611] page:000000007a46ca6f refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1d10c [ 33.021453] head:000000007a46ca6f order:2 compound_mapcount:0 compound_pincount:0 [ 33.022922] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 33.024073] raw: 0100000000010200 0000000000000000 dead000000000001 ffff888007841c80 [ 33.025599] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 [ 33.027126] page dumped because: kasan: bad access detected [ 33.028235] [ 33.028563] Memory state around the buggy address: [ 33.029519] ffff88801d10e800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.030952] ffff88801d10e880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.032397] >ffff88801d10e900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.033817] ^ [ 33.034874] ffff88801d10e980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 33.036296] ffff88801d10ea00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 33.037729] ================================================================== [ 33.067103] cgroup: Unknown subsys name 'hugetlb' [ 33.070425] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:26:58 Registers: info registers vcpu 0 RAX=0000000000000033 RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff823640e1 RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff88800afef648 R8 =0000000000000000 R9 =0000000000000033 R10=ffffffff82365d23 R11=000000000000000a R12=0000000000000033 R13=0000000000000033 R14=ffffffff87381a20 R15=dffffc0000000000 RIP=ffffffff82364138 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=000000c0006ff000 CR3=000000000db2e000 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 692b202c6c6f7274 6e6f635f65657274 YMM02=0000000000000000 0000000000000000 202c6c6f72746e6f 635f656572746275 YMM03=0000000000000000 0000000000000000 0a3232203a64656c 69616620296f692b YMM04=0000000000000000 0000000000000000 00007f510d9b9b00 0000000000415710 YMM05=0000000000000000 0000000000000000 0000000000b12758 000000c0001605a8 YMM06=0000000000000000 0000000000000000 0000000000505007 000000c0004ebfc0 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 00000000004643c6 0000000000000000 YMM09=0000000000000000 0000000000000000 00000000004643c1 0000000000000000 YMM10=0000000000000000 0000000000000000 000000c0003a0060 000000c00039c160 YMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM13=0000000000000000 0000000000000000 00000000005e8f39 00000000005ec397 YMM14=0000000000000000 0000000000000000 000000000089d9b9 00000000008a446f YMM15=0000000000000000 0000000000000000 00000000004643c1 00000000004360f2 info registers vcpu 1 RAX=ffffffff84078af0 RBX=ffff8880081a9ac0 RCX=ffffffff8405abe1 RDX=ffffed100d9e7143 RSI=0000000000000001 RDI=ffffffff84078eaf RBP=0000000000000001 RSP=ffff888008207e78 R8 =0000000000000000 R9 =ffff88806cf38a13 R10=ffffed100d9e7142 R11=0000000000000001 R12=ffffed1001035358 R13=ffffffff858bd8d0 R14=0000000000000000 R15=dffffc0000000000 RIP=ffffffff84078afb RFL=00000246 [---Z-P-] CPL=0 II=0 A20=1 SMM=0 HLT=1 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=0000559c8e80b0a8 CR3=000000000fb00000 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 7465677261742e79 636e656772656d65 YMM02=0000000000000000 0000000000000000 ffffffffffffffff ffffffffffffffff YMM03=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM04=0000000000000000 0000000000000000 2f2f2f2f2f2f2f2f 2f2f2f2f2f2f2f2f YMM05=0000000000000000 0000000000000000 3739663335393732 2d353330382d6365 YMM06=0000000000000000 0000000000000000 0000000000000051 0000000000000000 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 6665646362613938 3736353433323130 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