Warning: Permanently added '[localhost]:52049' (ECDSA) to the list of known hosts. 2021/12/06 11:24:22 fuzzer started 2021/12/06 11:24:22 dialing manager at localhost:35719 2021/12/06 11:24:22 checking machine... 2021/12/06 11:24:22 checking revisions... syzkaller login: [ 37.194983] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:24:23 testing simple program... [ 37.256544] cgroup: Unknown subsys name 'net' [ 37.258273] cgroup: Unknown subsys name 'net_prio' [ 37.260835] cgroup: Unknown subsys name 'devices' [ 37.261678] cgroup: Unknown subsys name 'blkio' [ 37.320753] [ 37.321069] ========================= [ 37.321618] WARNING: held lock freed! [ 37.322190] 5.16.0-rc3-next-20211203 #1 Not tainted [ 37.322956] ------------------------- [ 37.323421] kworker/0:2/48 is freeing memory ffff88800e836800-ffff88800e8369ff, with a lock still held there! [ 37.324639] ffff88800e836948 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 37.325769] 3 locks held by kworker/0:2/48: [ 37.326321] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 37.327700] #1: ffff88800c4f7da8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 37.329181] #2: ffff88800e836948 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 37.330349] [ 37.330349] stack backtrace: [ 37.331004] CPU: 0 PID: 48 Comm: kworker/0:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 37.331997] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 37.333443] Workqueue: cgroup_destroy css_free_rwork_fn [ 37.334103] Call Trace: [ 37.334420] [ 37.338743] dump_stack_lvl+0x8b/0xb3 [ 37.339403] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 37.340066] ? kernfs_put.part.0+0x334/0x540 [ 37.340637] kfree+0xb3/0x5a0 [ 37.341025] ? kmem_cache_free+0xce/0x640 [ 37.341579] kernfs_put.part.0+0x334/0x540 [ 37.342115] kernfs_put+0x42/0x50 [ 37.342560] __kernfs_remove+0x7ce/0xb00 [ 37.343127] ? lock_is_held_type+0xd7/0x130 [ 37.343672] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 37.344340] ? down_write+0xde/0x150 [ 37.344798] ? down_write_killable_nested+0x180/0x180 [ 37.345437] kernfs_destroy_root+0x89/0xb0 [ 37.345952] css_free_rwork_fn+0xa28/0xf40 [ 37.346480] process_one_work+0xa30/0x1710 [ 37.347113] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 37.347729] ? rwlock_bug.part.0+0x90/0x90 [ 37.348285] ? _raw_spin_lock_irq+0x41/0x50 [ 37.348805] worker_thread+0x62a/0x13e0 [ 37.349297] ? process_one_work+0x1710/0x1710 [ 37.349849] kthread+0x40c/0x500 [ 37.350300] ? set_kthread_struct+0x130/0x130 [ 37.355230] ret_from_fork+0x22/0x30 [ 37.355685] [ 37.356030] ================================================================== [ 37.356946] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 37.357650] Read of size 8 at addr ffff88800e836940 by task kworker/0:2/48 [ 37.358476] [ 37.358820] CPU: 0 PID: 48 Comm: kworker/0:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 37.359772] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 37.361178] Workqueue: cgroup_destroy css_free_rwork_fn [ 37.361825] Call Trace: [ 37.362129] [ 37.362444] dump_stack_lvl+0x8b/0xb3 [ 37.363935] print_address_description.constprop.0+0x1f/0x180 [ 37.364703] ? up_write+0x3ac/0x460 [ 37.365165] ? up_write+0x3ac/0x460 [ 37.365627] kasan_report.cold+0x7f/0x11b [ 37.366130] ? up_write+0x3ac/0x460 [ 37.366590] up_write+0x3ac/0x460 [ 37.367043] css_free_rwork_fn+0xa28/0xf40 [ 37.367596] process_one_work+0xa30/0x1710 [ 37.368114] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 37.368733] ? rwlock_bug.part.0+0x90/0x90 [ 37.369286] ? _raw_spin_lock_irq+0x41/0x50 [ 37.369809] worker_thread+0x62a/0x13e0 [ 37.370326] ? process_one_work+0x1710/0x1710 [ 37.374948] kthread+0x40c/0x500 [ 37.375396] ? set_kthread_struct+0x130/0x130 [ 37.375945] ret_from_fork+0x22/0x30 [ 37.376404] [ 37.376687] [ 37.376886] Allocated by task 280: [ 37.377321] kasan_save_stack+0x1e/0x40 [ 37.377812] __kasan_kmalloc+0x81/0xa0 [ 37.378315] kernfs_create_root+0x4c/0x410 [ 37.382739] cgroup_setup_root+0x346/0xb60 [ 37.383332] cgroup1_get_tree+0xc1b/0x1370 [ 37.383876] vfs_get_tree+0x8e/0x2f0 [ 37.384369] path_mount+0x131b/0x1f80 [ 37.384837] __x64_sys_mount+0x27e/0x300 [ 37.385360] do_syscall_64+0x3b/0x90 [ 37.385833] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 37.386497] [ 37.394738] Freed by task 48: [ 37.395130] kasan_save_stack+0x1e/0x40 [ 37.395654] kasan_set_track+0x21/0x30 [ 37.396124] kasan_set_free_info+0x20/0x30 [ 37.396674] __kasan_slab_free+0x108/0x170 [ 37.397189] kfree+0xc5/0x5a0 [ 37.397616] kernfs_put.part.0+0x334/0x540 [ 37.398148] kernfs_put+0x42/0x50 [ 37.398598] __kernfs_remove+0x7ce/0xb00 [ 37.402879] kernfs_destroy_root+0x89/0xb0 [ 37.403433] css_free_rwork_fn+0xa28/0xf40 [ 37.403961] process_one_work+0xa30/0x1710 [ 37.404507] worker_thread+0x62a/0x13e0 [ 37.404991] kthread+0x40c/0x500 [ 37.405444] ret_from_fork+0x22/0x30 [ 37.405905] [ 37.406105] The buggy address belongs to the object at ffff88800e836800 [ 37.406105] which belongs to the cache kmalloc-512 of size 512 [ 37.410943] The buggy address is located 320 bytes inside of [ 37.410943] 512-byte region [ffff88800e836800, ffff88800e836a00) [ 37.412407] The buggy address belongs to the page: [ 37.413010] page:000000009b1ff448 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe834 [ 37.414124] head:000000009b1ff448 order:2 compound_mapcount:0 compound_pincount:0 [ 37.415119] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 37.415866] raw: 0100000000010200 dead000000000100 dead000000000122 ffff888007841c80 [ 37.416841] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 [ 37.417759] page dumped because: kasan: bad access detected [ 37.418440] [ 37.418641] Memory state around the buggy address: [ 37.419281] ffff88800e836800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.420163] ffff88800e836880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.421077] >ffff88800e836900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.421975] ^ [ 37.426708] ffff88800e836980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.427635] ffff88800e836a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.428554] ================================================================== [ 37.459584] cgroup: Unknown subsys name 'hugetlb' [ 37.460394] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:24:23 Registers: info registers vcpu 0 RAX=000000000000000a RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff823640e1 RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff88800c4f7800 R8 =0000000000000000 R9 =000000000000000a R10=ffffffff82365d23 R11=000000000000000a R12=000000000000000a R13=000000000000000a 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=00007f77456ebd40 CR3=000000000cc52000 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 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 info registers vcpu 1 RAX=0000000000000000 RBX=ffff88800e834440 RCX=ffffffff8121dce4 RDX=1ffff11001d068a8 RSI=0000000000000008 RDI=ffff8880089050c0 RBP=0000000000000000 RSP=ffff88806cf09c50 R8 =0000000000000001 R9 =ffff88800dd86347 R10=ffff888008905140 R11=0000000000000001 R12=0000000000000009 R13=ffff88800e834400 R14=dffffc0000000000 R15=ffff8880089050c0 RIP=ffffffff8122702b 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=00007f774580f000 CR3=000000001d406000 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 412c64cc1301e7f5 YMM01=0000000000000000 0000000000000000 0000000000000000 3f847ae147ae147b YMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM03=0000000000000000 0000000000000000 0000000000000000 3f73b5e14d9da538 YMM04=0000000000000000 0000000000000000 0000000000000000 3fbf68f4aacd798e YMM05=0000000000000000 0000000000000000 000000c00000e010 000000c00000e020 YMM06=0000000000000000 0000000000000000 0000000000000000 3fd3333333333333 YMM07=0000000000000000 0000000000000000 0000000000000000 3fd6f20101a1eba5 YMM08=0000000000000000 0000000000000000 0000000000000000 3fe2b49685e98408 YMM09=0000000000000000 0000000000000000 0000000000000000 3fbc0b1a95b286a8 YMM10=0000000000000000 0000000000000000 0000000000000000 3fd03b1ece17d3ca YMM11=0000000000000000 0000000000000000 000000c00045c098 000000c00001dc90 YMM12=0000000000000000 0000000000000000 000000c00001dca0 000000c00045c0a0 YMM13=0000000000000000 0000000000000000 000000c00045c0b8 000000c00045c0b0 YMM14=0000000000000000 0000000000000000 000000c00045c0c8 000000c00045c0c0 YMM15=0000000000000000 0000000000000000 000000c00045c0d8 000000c00045c0d0