Warning: Permanently added '[localhost]:34378' (ECDSA) to the list of known hosts. 2021/12/06 11:28:19 fuzzer started 2021/12/06 11:28:19 dialing manager at localhost:35719 2021/12/06 11:28:19 checking machine... 2021/12/06 11:28:19 checking revisions... syzkaller login: [ 35.600528] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:28:20 testing simple program... [ 35.642360] cgroup: Unknown subsys name 'net' [ 35.643580] cgroup: Unknown subsys name 'net_prio' [ 35.645267] cgroup: Unknown subsys name 'devices' [ 35.646918] cgroup: Unknown subsys name 'blkio' [ 35.668670] [ 35.669048] ========================= [ 35.669785] WARNING: held lock freed! [ 35.670517] 5.16.0-rc3-next-20211203 #1 Not tainted [ 35.671630] ------------------------- [ 35.672712] kworker/0:1/10 is freeing memory ffff88800d2c9c00-ffff88800d2c9dff, with a lock still held there! [ 35.674880] ffff88800d2c9d48 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 35.676626] 3 locks held by kworker/0:1/10: [ 35.677464] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 35.679574] #1: ffff888008197da8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 35.681826] #2: ffff88800d2c9d48 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 35.683608] [ 35.683608] stack backtrace: [ 35.684443] CPU: 0 PID: 10 Comm: kworker/0:1 Not tainted 5.16.0-rc3-next-20211203 #1 [ 35.685920] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 35.688081] Workqueue: cgroup_destroy css_free_rwork_fn [ 35.689106] Call Trace: [ 35.689592] [ 35.690017] dump_stack_lvl+0x8b/0xb3 [ 35.690747] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 35.691770] ? kernfs_put.part.0+0x334/0x540 [ 35.692613] kfree+0xb3/0x5a0 [ 35.693208] ? kmem_cache_free+0xce/0x640 [ 35.694001] kernfs_put.part.0+0x334/0x540 [ 35.694813] kernfs_put+0x42/0x50 [ 35.695476] __kernfs_remove+0x7ce/0xb00 [ 35.696249] ? lock_is_held_type+0xd7/0x130 [ 35.697079] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 35.698080] ? down_write+0xde/0x150 [ 35.698785] ? down_write_killable_nested+0x180/0x180 [ 35.699780] kernfs_destroy_root+0x89/0xb0 [ 35.700585] css_free_rwork_fn+0xa28/0xf40 [ 35.701396] process_one_work+0xa30/0x1710 [ 35.702208] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 35.703117] ? rwlock_bug.part.0+0x90/0x90 [ 35.703922] ? _raw_spin_lock_irq+0x41/0x50 [ 35.704747] worker_thread+0x62a/0x13e0 [ 35.705512] ? process_one_work+0x1710/0x1710 [ 35.706367] kthread+0x40c/0x500 [ 35.707015] ? set_kthread_struct+0x130/0x130 [ 35.707870] ret_from_fork+0x22/0x30 [ 35.708586] [ 35.709073] ================================================================== [ 35.710446] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 35.711582] Read of size 8 at addr ffff88800d2c9d40 by task kworker/0:1/10 [ 35.712898] [ 35.713211] CPU: 0 PID: 10 Comm: kworker/0:1 Not tainted 5.16.0-rc3-next-20211203 #1 [ 35.714690] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 35.716854] Workqueue: cgroup_destroy css_free_rwork_fn [ 35.717872] Call Trace: [ 35.718360] [ 35.718783] dump_stack_lvl+0x8b/0xb3 [ 35.719535] print_address_description.constprop.0+0x1f/0x180 [ 35.720657] ? up_write+0x3ac/0x460 [ 35.721352] ? up_write+0x3ac/0x460 [ 35.722049] kasan_report.cold+0x7f/0x11b [ 35.722846] ? up_write+0x3ac/0x460 [ 35.723550] up_write+0x3ac/0x460 [ 35.724217] css_free_rwork_fn+0xa28/0xf40 [ 35.725030] process_one_work+0xa30/0x1710 [ 35.725842] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 35.726733] ? rwlock_bug.part.0+0x90/0x90 [ 35.727555] ? _raw_spin_lock_irq+0x41/0x50 [ 35.728382] worker_thread+0x62a/0x13e0 [ 35.729146] ? process_one_work+0x1710/0x1710 [ 35.730006] kthread+0x40c/0x500 [ 35.730650] ? set_kthread_struct+0x130/0x130 [ 35.731516] ret_from_fork+0x22/0x30 [ 35.732234] [ 35.732678] [ 35.732985] Allocated by task 282: [ 35.733650] kasan_save_stack+0x1e/0x40 [ 35.734407] __kasan_kmalloc+0x81/0xa0 [ 35.735164] kernfs_create_root+0x4c/0x410 [ 35.735967] cgroup_setup_root+0x346/0xb60 [ 35.736775] cgroup1_get_tree+0xc1b/0x1370 [ 35.737584] vfs_get_tree+0x8e/0x2f0 [ 35.738292] path_mount+0x131b/0x1f80 [ 35.739029] __x64_sys_mount+0x27e/0x300 [ 35.739811] do_syscall_64+0x3b/0x90 [ 35.740521] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 35.741502] [ 35.741809] Freed by task 10: [ 35.742391] kasan_save_stack+0x1e/0x40 [ 35.743154] kasan_set_track+0x21/0x30 [ 35.743892] kasan_set_free_info+0x20/0x30 [ 35.744694] __kasan_slab_free+0x108/0x170 [ 35.745498] kfree+0xc5/0x5a0 [ 35.746092] kernfs_put.part.0+0x334/0x540 [ 35.746899] kernfs_put+0x42/0x50 [ 35.747566] __kernfs_remove+0x7ce/0xb00 [ 35.748336] kernfs_destroy_root+0x89/0xb0 [ 35.749138] css_free_rwork_fn+0xa28/0xf40 [ 35.749942] process_one_work+0xa30/0x1710 [ 35.750748] worker_thread+0x62a/0x13e0 [ 35.751509] kthread+0x40c/0x500 [ 35.752150] ret_from_fork+0x22/0x30 [ 35.752856] [ 35.753163] Last potentially related work creation: [ 35.754097] kasan_save_stack+0x1e/0x40 [ 35.754852] __kasan_record_aux_stack+0x97/0xa0 [ 35.755753] kvfree_call_rcu+0x2c/0x7a0 [ 35.756513] put_css_set_locked+0x7e6/0xcf0 [ 35.757333] cgroup_free+0x8f/0x1b0 [ 35.758027] __put_task_struct+0x113/0x3e0 [ 35.758833] delayed_put_task_struct+0x1ca/0x2f0 [ 35.759740] rcu_core+0x7e9/0x1ce0 [ 35.760418] __do_softirq+0x270/0x8c7 [ 35.761143] [ 35.761450] Second to last potentially related work creation: [ 35.762544] kasan_save_stack+0x1e/0x40 [ 35.763310] __kasan_record_aux_stack+0x97/0xa0 [ 35.764197] kvfree_call_rcu+0x2c/0x7a0 [ 35.764958] timerfd_release+0x103/0x230 [ 35.765733] __fput+0x281/0x9e0 [ 35.766360] task_work_run+0xe2/0x1a0 [ 35.767099] exit_to_user_mode_prepare+0x1be/0x1c0 [ 35.768036] syscall_exit_to_user_mode+0x19/0x50 [ 35.768936] do_syscall_64+0x48/0x90 [ 35.769644] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 35.770624] [ 35.770931] The buggy address belongs to the object at ffff88800d2c9c00 [ 35.770931] which belongs to the cache kmalloc-512 of size 512 [ 35.773298] The buggy address is located 320 bytes inside of [ 35.773298] 512-byte region [ffff88800d2c9c00, ffff88800d2c9e00) [ 35.775511] The buggy address belongs to the page: [ 35.776425] page:000000005b55c2c3 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xd2c8 [ 35.778176] head:000000005b55c2c3 order:2 compound_mapcount:0 compound_pincount:0 [ 35.779763] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 35.780924] raw: 0100000000010200 ffffea0000325a00 dead000000000002 ffff888007841c80 [ 35.782454] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 35.783987] page dumped because: kasan: bad access detected [ 35.785091] [ 35.785409] Memory state around the buggy address: [ 35.786362] ffff88800d2c9c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.787792] ffff88800d2c9c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.789222] >ffff88800d2c9d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.790646] ^ [ 35.791710] ffff88800d2c9d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 35.793133] ffff88800d2c9e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 35.794551] ================================================================== [ 35.826114] cgroup: Unknown subsys name 'hugetlb' [ 35.829852] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:28:20 Registers: info registers vcpu 0 RAX=000000000000002d RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff823640e1 RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff888008197648 R8 =0000000000000000 R9 =000000000000002d R10=ffffffff82365d23 R11=000000000000000a R12=000000000000002d R13=000000000000002d 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=00007ffee3396a20 CR3=000000000e954000 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=ffffffff862df040 RCX=0000000000000001 RDX=0000000000000000 RSI=0000000000000001 RDI=ffffffff862df040 RBP=0000000000000001 RSP=ffff88806cf09ee0 R8 =000000000000f10a R9 =ffffffff858bd8d7 R10=ffffffff81340ed5 R11=0000000000000001 R12=ffffffff862df043 R13=0000000000000000 R14=0000000000000000 R15=0000000000000000 RIP=ffffffff8110f415 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=00007fad47c36648 CR3=0000000009074000 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 0f0e0d0c0b0a0908 YMM03=0000000000000000 0000000000000000 0000000000000073 66626c7465677568 YMM04=0000000000000000 0000000000000000 2e2e2e2e2e2e2e2e 2e2e2e2e2e2e2e2e YMM05=0000000000000000 0000000000000000 2d312e31303a3030 3a303030302d6963 YMM06=0000000000000000 0000000000000000 0000000000000000 6c6562616c636573 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 6564636261393837 3635343332313040 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