Warning: Permanently added '[localhost]:45968' (ECDSA) to the list of known hosts. 2021/12/06 11:24:23 fuzzer started 2021/12/06 11:24:24 dialing manager at localhost:35719 2021/12/06 11:24:24 checking machine... 2021/12/06 11:24:24 checking revisions... syzkaller login: [ 37.837686] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:24:24 testing simple program... [ 37.876533] cgroup: Unknown subsys name 'net' [ 37.877416] cgroup: Unknown subsys name 'net_prio' [ 37.879027] cgroup: Unknown subsys name 'devices' [ 37.880493] cgroup: Unknown subsys name 'blkio' [ 37.919766] [ 37.920051] ========================= [ 37.920567] WARNING: held lock freed! [ 37.921035] 5.16.0-rc3-next-20211203 #1 Not tainted [ 37.921706] ------------------------- [ 37.922181] kworker/1:0/18 is freeing memory ffff88800e4fd000-ffff88800e4fd1ff, with a lock still held there! [ 37.923467] ffff88800e4fd148 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 37.924590] 3 locks held by kworker/1:0/18: [ 37.925136] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 37.930552] #1: ffff88800823fda8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 37.932071] #2: ffff88800e4fd148 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 37.933316] [ 37.933316] stack backtrace: [ 37.934106] CPU: 1 PID: 18 Comm: kworker/1:0 Not tainted 5.16.0-rc3-next-20211203 #1 [ 37.935140] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 37.936586] Workqueue: cgroup_destroy css_free_rwork_fn [ 37.937265] Call Trace: [ 37.937823] [ 37.938462] dump_stack_lvl+0x8b/0xb3 [ 37.939522] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 37.941020] ? kernfs_put.part.0+0x334/0x540 [ 37.942521] kfree+0xb3/0x5a0 [ 37.943448] ? kmem_cache_free+0xce/0x640 [ 37.944626] kernfs_put.part.0+0x334/0x540 [ 37.945874] kernfs_put+0x42/0x50 [ 37.946821] __kernfs_remove+0x7ce/0xb00 [ 37.948099] ? lock_is_held_type+0xd7/0x130 [ 37.949333] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 37.950353] ? down_write+0xde/0x150 [ 37.950995] ? down_write_killable_nested+0x180/0x180 [ 37.951780] kernfs_destroy_root+0x89/0xb0 [ 37.952450] css_free_rwork_fn+0xa28/0xf40 [ 37.953085] process_one_work+0xa30/0x1710 [ 37.953811] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 37.954426] ? rwlock_bug.part.0+0x90/0x90 [ 37.954978] ? _raw_spin_lock_irq+0x41/0x50 [ 37.955566] worker_thread+0x62a/0x13e0 [ 37.956077] ? process_one_work+0x1710/0x1710 [ 37.956696] kthread+0x40c/0x500 [ 37.957138] ? set_kthread_struct+0x130/0x130 [ 37.958025] ret_from_fork+0x22/0x30 [ 37.958776] [ 37.959254] ================================================================== [ 37.960387] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 37.961230] Read of size 8 at addr ffff88800e4fd140 by task kworker/1:0/18 [ 37.962220] [ 37.962457] CPU: 1 PID: 18 Comm: kworker/1:0 Not tainted 5.16.0-rc3-next-20211203 #1 [ 37.963459] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 37.964898] Workqueue: cgroup_destroy css_free_rwork_fn [ 37.965754] Call Trace: [ 37.966077] [ 37.966384] dump_stack_lvl+0x8b/0xb3 [ 37.966868] print_address_description.constprop.0+0x1f/0x180 [ 37.967652] ? up_write+0x3ac/0x460 [ 37.968119] ? up_write+0x3ac/0x460 [ 37.968550] kasan_report.cold+0x7f/0x11b [ 37.969028] ? up_write+0x3ac/0x460 [ 37.969455] up_write+0x3ac/0x460 [ 37.969924] css_free_rwork_fn+0xa28/0xf40 [ 37.970422] process_one_work+0xa30/0x1710 [ 37.970915] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 37.971487] ? rwlock_bug.part.0+0x90/0x90 [ 37.971971] ? _raw_spin_lock_irq+0x41/0x50 [ 37.972528] worker_thread+0x62a/0x13e0 [ 37.973030] ? process_one_work+0x1710/0x1710 [ 37.974722] kthread+0x40c/0x500 [ 37.975139] ? set_kthread_struct+0x130/0x130 [ 37.975708] ret_from_fork+0x22/0x30 [ 37.976146] [ 37.976434] [ 37.976639] Allocated by task 280: [ 37.977040] kasan_save_stack+0x1e/0x40 [ 37.977542] __kasan_kmalloc+0x81/0xa0 [ 37.978141] kernfs_create_root+0x4c/0x410 [ 37.978823] cgroup_setup_root+0x346/0xb60 [ 37.979542] cgroup1_get_tree+0xc1b/0x1370 [ 37.980269] vfs_get_tree+0x8e/0x2f0 [ 37.980906] path_mount+0x131b/0x1f80 [ 37.981596] __x64_sys_mount+0x27e/0x300 [ 37.982134] do_syscall_64+0x3b/0x90 [ 37.982614] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 37.983239] [ 37.983538] Freed by task 18: [ 37.983981] kasan_save_stack+0x1e/0x40 [ 37.984555] kasan_set_track+0x21/0x30 [ 37.985075] kasan_set_free_info+0x20/0x30 [ 37.985740] __kasan_slab_free+0x108/0x170 [ 37.986320] kfree+0xc5/0x5a0 [ 37.986760] kernfs_put.part.0+0x334/0x540 [ 37.987329] kernfs_put+0x42/0x50 [ 37.987810] __kernfs_remove+0x7ce/0xb00 [ 37.988464] kernfs_destroy_root+0x89/0xb0 [ 37.988978] css_free_rwork_fn+0xa28/0xf40 [ 37.989510] process_one_work+0xa30/0x1710 [ 37.990076] worker_thread+0x62a/0x13e0 [ 37.990561] kthread+0x40c/0x500 [ 37.990972] ret_from_fork+0x22/0x30 [ 37.991431] [ 37.991630] The buggy address belongs to the object at ffff88800e4fd000 [ 37.991630] which belongs to the cache kmalloc-512 of size 512 [ 37.993172] The buggy address is located 320 bytes inside of [ 37.993172] 512-byte region [ffff88800e4fd000, ffff88800e4fd200) [ 37.994630] The buggy address belongs to the page: [ 37.995219] page:00000000a933680a refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe4fc [ 37.996338] head:00000000a933680a order:2 compound_mapcount:0 compound_pincount:0 [ 37.997308] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 37.998069] raw: 0100000000010200 ffffea00006cfb00 dead000000000002 ffff888007841c80 [ 37.998970] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 37.999845] page dumped because: kasan: bad access detected [ 38.000487] [ 38.000686] Memory state around the buggy address: [ 38.001223] ffff88800e4fd000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.002075] ffff88800e4fd080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.002916] >ffff88800e4fd100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.003712] ^ [ 38.004305] ffff88800e4fd180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 38.005101] ffff88800e4fd200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 38.005952] ================================================================== [ 38.048842] cgroup: Unknown subsys name 'hugetlb' [ 38.049773] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:24:24 Registers: info registers vcpu 0 RAX=0000000080010001 RBX=00000008cdc63e02 RCX=ffffffff85007d98 RDX=0000000000000000 RSI=ffffffff85032600 RDI=0000000000000003 RBP=ffff88806ce2b120 RSP=ffff88806ce09de8 R8 =0000000000000000 R9 =0000000000000001 R10=ffffffff81370709 R11=0000000000000000 R12=00000008cdfb4e88 R13=ffffffff85007d98 R14=0000000000000001 R15=ffff88806ce2b16c RIP=ffffffff814316a7 RFL=00000082 [--S----] 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=0000561914f27560 CR3=000000001576a000 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 0000000000000000 YMM02=0000000000000000 0000000000000000 0000000000000000 bfe62e42fefa39ef YMM03=0000000000000000 0000000000000000 0000ff0000000000 0000000000000000 YMM04=0000000000000000 0000000000000000 732f6c61636f6c2f 7273752f3d485441 YMM05=0000000000000000 0000000000000000 622f6c61636f6c2f 7273752f3a6e6962 YMM06=0000000000000000 0000000000000000 73752f3a6e696273 2f7273752f3a6e69 YMM07=0000000000000000 0000000000000000 6e69622f3a6e6962 732f3a6e69622f72 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 info registers vcpu 1 RAX=0000000000000066 RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff823640e1 RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff88800823f618 R8 =0000000000000000 R9 =0000000000000066 R10=ffffffff82365d23 R11=000000000000000a R12=0000000000000066 R13=0000000000000066 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 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=00007f9e2288e5b0 CR3=000000001576a000 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=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 3f6836cdf4d33b51 YMM04=0000000000000000 0000000000000000 6174736e69206572 6120737265646165 YMM05=0000000000000000 0000000000000000 613c206564756c63 6e69230a64656c6c YMM06=0000000000000000 0000000000000000 736e65202f2f203e 6d687469726f676c YMM07=0000000000000000 0000000000000000 6568202b2b432074 6168742073657275 YMM08=0000000000000000 0000000000000000 736e692065726120 7372656461656820 YMM09=0000000000000000 0000000000000000 206564756c636e69 230a64656c6c6174 YMM10=0000000000000000 0000000000000000 65202f2f203e6d68 7469726f676c613c YMM11=0000000000000000 0000000000000000 202b2b4320746168 742073657275736e YMM12=0000000000000000 0000000000000000 74736e6920657261 2073726564616568 YMM13=0000000000000000 0000000000000000 29286e69616d2074 6e690a64656c6c61 YMM14=0000000000000000 0000000000000000 6f6c6c6548222866 746e697270207b20 YMM15=0000000000000000 0000000000000000 0a7d203b29226e5c 21646c726f57202c