Warning: Permanently added '[localhost]:14688' (ECDSA) to the list of known hosts. 2021/12/06 11:29:13 fuzzer started 2021/12/06 11:29:14 dialing manager at localhost:35719 2021/12/06 11:29:14 checking machine... 2021/12/06 11:29:14 checking revisions... syzkaller login: [ 34.771856] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:29:14 testing simple program... [ 34.816108] cgroup: Unknown subsys name 'net' [ 34.817641] cgroup: Unknown subsys name 'net_prio' [ 34.819492] cgroup: Unknown subsys name 'devices' [ 34.820887] cgroup: Unknown subsys name 'blkio' [ 34.842166] [ 34.842570] ========================= [ 34.843471] WARNING: held lock freed! [ 34.844354] 5.16.0-rc3-next-20211203 #1 Not tainted [ 34.845669] ------------------------- [ 34.846981] kworker/1:1/29 is freeing memory ffff88800e59e400-ffff88800e59e5ff, with a lock still held there! [ 34.849339] ffff88800e59e548 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 34.851108] 3 locks held by kworker/1:1/29: [ 34.851964] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 34.854019] #1: ffff888008ba7da8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 34.856346] #2: ffff88800e59e548 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 34.858170] [ 34.858170] stack backtrace: [ 34.859061] CPU: 1 PID: 29 Comm: kworker/1:1 Not tainted 5.16.0-rc3-next-20211203 #1 [ 34.860580] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 34.862805] Workqueue: cgroup_destroy css_free_rwork_fn [ 34.863872] Call Trace: [ 34.864376] [ 34.864812] dump_stack_lvl+0x8b/0xb3 [ 34.865565] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 34.866607] ? kernfs_put.part.0+0x334/0x540 [ 34.867504] kfree+0xb3/0x5a0 [ 34.868121] ? kmem_cache_free+0xce/0x640 [ 34.868934] kernfs_put.part.0+0x334/0x540 [ 34.869775] kernfs_put+0x42/0x50 [ 34.870453] __kernfs_remove+0x7ce/0xb00 [ 34.871266] ? lock_is_held_type+0xd7/0x130 [ 34.872113] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 34.873139] ? down_write+0xde/0x150 [ 34.873870] ? down_write_killable_nested+0x180/0x180 [ 34.874883] kernfs_destroy_root+0x89/0xb0 [ 34.875737] css_free_rwork_fn+0xa28/0xf40 [ 34.876574] process_one_work+0xa30/0x1710 [ 34.877412] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 34.878330] ? rwlock_bug.part.0+0x90/0x90 [ 34.879172] ? _raw_spin_lock_irq+0x41/0x50 [ 34.880020] worker_thread+0x62a/0x13e0 [ 34.880806] ? process_one_work+0x1710/0x1710 [ 34.881691] kthread+0x40c/0x500 [ 34.882354] ? set_kthread_struct+0x130/0x130 [ 34.883242] ret_from_fork+0x22/0x30 [ 34.883979] [ 34.884520] ================================================================== [ 34.885928] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 34.887101] Read of size 8 at addr ffff88800e59e540 by task kworker/1:1/29 [ 34.888449] [ 34.888766] CPU: 1 PID: 29 Comm: kworker/1:1 Not tainted 5.16.0-rc3-next-20211203 #1 [ 34.890281] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 34.892505] Workqueue: cgroup_destroy css_free_rwork_fn [ 34.893552] Call Trace: [ 34.894051] [ 34.894486] dump_stack_lvl+0x8b/0xb3 [ 34.895262] print_address_description.constprop.0+0x1f/0x180 [ 34.896408] ? up_write+0x3ac/0x460 [ 34.897119] ? up_write+0x3ac/0x460 [ 34.897831] kasan_report.cold+0x7f/0x11b [ 34.898649] ? up_write+0x3ac/0x460 [ 34.899372] up_write+0x3ac/0x460 [ 34.900054] css_free_rwork_fn+0xa28/0xf40 [ 34.900885] process_one_work+0xa30/0x1710 [ 34.901724] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 34.902639] ? rwlock_bug.part.0+0x90/0x90 [ 34.903474] ? _raw_spin_lock_irq+0x41/0x50 [ 34.904328] worker_thread+0x62a/0x13e0 [ 34.905111] ? process_one_work+0x1710/0x1710 [ 34.905989] kthread+0x40c/0x500 [ 34.906655] ? set_kthread_struct+0x130/0x130 [ 34.907554] ret_from_fork+0x22/0x30 [ 34.908300] [ 34.908750] [ 34.909065] Allocated by task 280: [ 34.909750] kasan_save_stack+0x1e/0x40 [ 34.910528] __kasan_kmalloc+0x81/0xa0 [ 34.911304] kernfs_create_root+0x4c/0x410 [ 34.912127] cgroup_setup_root+0x346/0xb60 [ 34.912956] cgroup1_get_tree+0xc1b/0x1370 [ 34.913785] vfs_get_tree+0x8e/0x2f0 [ 34.914514] path_mount+0x131b/0x1f80 [ 34.915271] __x64_sys_mount+0x27e/0x300 [ 34.916063] do_syscall_64+0x3b/0x90 [ 34.916791] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 34.917801] [ 34.918119] Freed by task 29: [ 34.918720] kasan_save_stack+0x1e/0x40 [ 34.919512] kasan_set_track+0x21/0x30 [ 34.920272] kasan_set_free_info+0x20/0x30 [ 34.921098] __kasan_slab_free+0x108/0x170 [ 34.921929] kfree+0xc5/0x5a0 [ 34.922538] kernfs_put.part.0+0x334/0x540 [ 34.923380] kernfs_put+0x42/0x50 [ 34.924057] __kernfs_remove+0x7ce/0xb00 [ 34.924851] kernfs_destroy_root+0x89/0xb0 [ 34.925679] css_free_rwork_fn+0xa28/0xf40 [ 34.926510] process_one_work+0xa30/0x1710 [ 34.927361] worker_thread+0x62a/0x13e0 [ 34.928140] kthread+0x40c/0x500 [ 34.928796] ret_from_fork+0x22/0x30 [ 34.929517] [ 34.929831] The buggy address belongs to the object at ffff88800e59e400 [ 34.929831] which belongs to the cache kmalloc-512 of size 512 [ 34.932245] The buggy address is located 320 bytes inside of [ 34.932245] 512-byte region [ffff88800e59e400, ffff88800e59e600) [ 34.934507] The buggy address belongs to the page: [ 34.935477] page:000000000ea8dd67 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe59c [ 34.937266] head:000000000ea8dd67 order:2 compound_mapcount:0 compound_pincount:0 [ 34.938725] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 34.939900] raw: 0100000000010200 ffffea0000330700 dead000000000002 ffff888007841c80 [ 34.941413] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 34.942939] page dumped because: kasan: bad access detected [ 34.944031] [ 34.944349] Memory state around the buggy address: [ 34.945293] ffff88800e59e400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.946697] ffff88800e59e480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.948110] >ffff88800e59e500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.949516] ^ [ 34.950564] ffff88800e59e580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 34.951995] ffff88800e59e600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 34.953403] ================================================================== [ 34.993874] cgroup: Unknown subsys name 'hugetlb' [ 34.995721] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:29:14 Registers: info registers vcpu 0 RAX=dffffc0000000000 RBX=0000000000000000 RCX=0000000000000000 RDX=0000000000000000 RSI=ffffffff813382aa RDI=ffffffff8521ab08 RBP=0000000000004e20 RSP=ffff88800d9c7bc0 R8 =0000000000000000 R9 =ffffffff858bd8d7 R10=fffffbfff0b17b1a R11=0000000000000001 R12=ffffffff8521ab08 R13=ffff88806ce2a7c0 R14=ffff88800d9c7de0 R15=dffffc0000000000 RIP=ffffffff8128dd47 RFL=00000086 [--S--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 000000c000030090 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=00007f29259c4018 CR3=000000001a462000 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=0000000000000020 RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff823640e1 RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff888008ba7648 R8 =0000000000000000 R9 =0000000000000020 R10=ffffffff82365d23 R11=000000000000000a R12=0000000000000020 R13=0000000000000020 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=00007ffff0b6cfa8 CR3=000000001a462000 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 4158d2d81838c236 YMM01=0000000000000000 0000000000000000 0000000000000000 3f847ae147ae147b YMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM03=0000000000000000 0000000000000000 0000000000000000 3f73e297487896a0 YMM04=0000000000000000 0000000000000000 00007f6dcfd60a00 0000000000415710 YMM05=0000000000000000 0000000000000000 0000010101010101 000000c00020f250 YMM06=0000000000000000 0000000000000000 0000000000505007 000000c00039cfc0 YMM07=0000000000000000 0000000000000000 00000000013fe8a0 0000000000eadd40 YMM08=0000000000000000 0000000000000000 00000000013afa60 0000000000eadd40 YMM09=0000000000000000 0000000000000000 00000000004643c1 0000000000000000 YMM10=0000000000000000 0000000000000000 000000c000085200 000000c000158c60 YMM11=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM12=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM13=0000000000000000 0000000000000000 000000c0002966f0 000000c000088050 YMM14=0000000000000000 0000000000000000 000000c000296ba0 000000c00008e150 YMM15=0000000000000000 0000000000000000 000000c0000b0900 000000c000296bd0