Debian GNU/Linux 11 syzkaller ttyS0 Warning: Permanently added '[localhost]:19941' (ECDSA) to the list of known hosts. 2021/12/06 11:31:46 fuzzer started 2021/12/06 11:31:46 dialing manager at localhost:35719 2021/12/06 11:31:46 checking machine... 2021/12/06 11:31:46 checking revisions... syzkaller login: [ 27.989855] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:31:46 testing simple program... [ 28.026296] cgroup: Unknown subsys name 'net' [ 28.027308] cgroup: Unknown subsys name 'net_prio' [ 28.028743] cgroup: Unknown subsys name 'devices' [ 28.030232] cgroup: Unknown subsys name 'blkio' [ 28.044113] [ 28.044370] ========================= [ 28.044947] WARNING: held lock freed! [ 28.045504] 5.16.0-rc3-next-20211203 #1 Not tainted [ 28.046212] ------------------------- [ 28.046904] kworker/1:2/83 is freeing memory ffff88800d98c000-ffff88800d98c1ff, with a lock still held there! [ 28.049051] ffff88800d98c148 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 28.050363] 3 locks held by kworker/1:2/83: [ 28.050987] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 28.052500] #1: ffff88800973fda8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 28.054241] #2: ffff88800d98c148 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 28.055597] [ 28.055597] stack backtrace: [ 28.056234] CPU: 1 PID: 83 Comm: kworker/1:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 28.057377] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 28.059036] Workqueue: cgroup_destroy css_free_rwork_fn [ 28.059808] Call Trace: [ 28.060184] [ 28.060511] dump_stack_lvl+0x8b/0xb3 [ 28.061085] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 28.061860] ? kernfs_put.part.0+0x334/0x540 [ 28.062509] kfree+0xb3/0x5a0 [ 28.062966] ? kmem_cache_free+0xce/0x640 [ 28.063568] kernfs_put.part.0+0x334/0x540 [ 28.064184] kernfs_put+0x42/0x50 [ 28.064694] __kernfs_remove+0x7ce/0xb00 [ 28.065318] ? lock_is_held_type+0xd7/0x130 [ 28.065954] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 28.066722] ? down_write+0xde/0x150 [ 28.067257] ? down_write_killable_nested+0x180/0x180 [ 28.068012] kernfs_destroy_root+0x89/0xb0 [ 28.068624] css_free_rwork_fn+0xa28/0xf40 [ 28.069263] process_one_work+0xa30/0x1710 [ 28.069888] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 28.070567] ? rwlock_bug.part.0+0x90/0x90 [ 28.071200] ? _raw_spin_lock_irq+0x41/0x50 [ 28.071836] worker_thread+0x62a/0x13e0 [ 28.072422] ? process_one_work+0x1710/0x1710 [ 28.073089] kthread+0x40c/0x500 [ 28.073584] ? set_kthread_struct+0x130/0x130 [ 28.074240] ret_from_fork+0x22/0x30 [ 28.074795] [ 28.075220] ================================================================== [ 28.076274] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 28.077141] Read of size 8 at addr ffff88800d98c140 by task kworker/1:2/83 [ 28.078150] [ 28.078388] CPU: 1 PID: 83 Comm: kworker/1:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 28.079521] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 28.081176] Workqueue: cgroup_destroy css_free_rwork_fn [ 28.081952] Call Trace: [ 28.082329] [ 28.082658] dump_stack_lvl+0x8b/0xb3 [ 28.083210] print_address_description.constprop.0+0x1f/0x180 [ 28.084073] ? up_write+0x3ac/0x460 [ 28.084597] ? up_write+0x3ac/0x460 [ 28.085141] kasan_report.cold+0x7f/0x11b [ 28.085728] ? up_write+0x3ac/0x460 [ 28.086272] up_write+0x3ac/0x460 [ 28.086788] css_free_rwork_fn+0xa28/0xf40 [ 28.087413] process_one_work+0xa30/0x1710 [ 28.088034] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 28.088713] ? rwlock_bug.part.0+0x90/0x90 [ 28.089372] ? _raw_spin_lock_irq+0x41/0x50 [ 28.090043] worker_thread+0x62a/0x13e0 [ 28.090634] ? process_one_work+0x1710/0x1710 [ 28.091292] kthread+0x40c/0x500 [ 28.091786] ? set_kthread_struct+0x130/0x130 [ 28.092448] ret_from_fork+0x22/0x30 [ 28.093012] [ 28.093354] [ 28.093593] Allocated by task 280: [ 28.094120] kasan_save_stack+0x1e/0x40 [ 28.094710] __kasan_kmalloc+0x81/0xa0 [ 28.095291] kernfs_create_root+0x4c/0x410 [ 28.095919] cgroup_setup_root+0x346/0xb60 [ 28.096647] cgroup1_get_tree+0xc1b/0x1370 [ 28.097266] vfs_get_tree+0x8e/0x2f0 [ 28.097806] path_mount+0x131b/0x1f80 [ 28.098365] __x64_sys_mount+0x27e/0x300 [ 28.098954] do_syscall_64+0x3b/0x90 [ 28.099482] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 28.100222] [ 28.100453] Freed by task 83: [ 28.100907] kasan_save_stack+0x1e/0x40 [ 28.101489] kasan_set_track+0x21/0x30 [ 28.102056] kasan_set_free_info+0x20/0x30 [ 28.102664] __kasan_slab_free+0x108/0x170 [ 28.103280] kfree+0xc5/0x5a0 [ 28.103730] kernfs_put.part.0+0x334/0x540 [ 28.104343] kernfs_put+0x42/0x50 [ 28.104860] __kernfs_remove+0x7ce/0xb00 [ 28.105449] kernfs_destroy_root+0x89/0xb0 [ 28.106059] css_free_rwork_fn+0xa28/0xf40 [ 28.106670] process_one_work+0xa30/0x1710 [ 28.107284] worker_thread+0x62a/0x13e0 [ 28.107860] kthread+0x40c/0x500 [ 28.108346] ret_from_fork+0x22/0x30 [ 28.108907] [ 28.109138] Last potentially related work creation: [ 28.109845] kasan_save_stack+0x1e/0x40 [ 28.110452] __kasan_record_aux_stack+0x97/0xa0 [ 28.111146] insert_work+0x44/0x2b0 [ 28.111692] __queue_work+0x61f/0x10a0 [ 28.112283] rcu_work_rcufn+0x58/0x80 [ 28.112875] rcu_core+0x7e9/0x1ce0 [ 28.113414] __do_softirq+0x270/0x8c7 [ 28.113986] [ 28.114226] Second to last potentially related work creation: [ 28.115085] kasan_save_stack+0x1e/0x40 [ 28.115682] __kasan_record_aux_stack+0x97/0xa0 [ 28.116388] call_rcu+0x82/0xa30 [ 28.116907] queue_rcu_work+0x82/0xa0 [ 28.117471] process_one_work+0xa30/0x1710 [ 28.118106] worker_thread+0x62a/0x13e0 [ 28.118702] kthread+0x40c/0x500 [ 28.119212] ret_from_fork+0x22/0x30 [ 28.119767] [ 28.120013] The buggy address belongs to the object at ffff88800d98c000 [ 28.120013] which belongs to the cache kmalloc-512 of size 512 [ 28.121878] The buggy address is located 320 bytes inside of [ 28.121878] 512-byte region [ffff88800d98c000, ffff88800d98c200) [ 28.123635] The buggy address belongs to the page: [ 28.124366] page:0000000025c3a835 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xd98c [ 28.125754] head:0000000025c3a835 order:2 compound_mapcount:0 compound_pincount:0 [ 28.126890] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 28.127765] raw: 0100000000010200 0000000000000000 dead000000000001 ffff888007841c80 [ 28.128958] raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 [ 28.130119] page dumped because: kasan: bad access detected [ 28.130960] [ 28.131203] Memory state around the buggy address: [ 28.131935] ffff88800d98c000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.133025] ffff88800d98c080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.134041] >ffff88800d98c100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.135056] ^ [ 28.135812] ffff88800d98c180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.136846] ffff88800d98c200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.137907] ================================================================== [ 28.179279] cgroup: Unknown subsys name 'hugetlb' [ 28.180629] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:31:47 Registers: info registers vcpu 0 RAX=ffffffff84078af0 RBX=ffffffff85032600 RCX=ffffffff8405abe1 RDX=ffffed100d9c7143 RSI=0000000000000001 RDI=ffffffff84078eaf RBP=0000000000000000 RSP=ffffffff85007e40 R8 =0000000000000000 R9 =ffff88806ce38a13 R10=ffffed100d9c7142 R11=0000000000000001 R12=fffffbfff0a064c0 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 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=00007f3af9efc220 CR3=000000001b3b4000 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 414316c829b812ab YMM01=0000000000000000 0000000000000000 0000000000000000 3f847ae147ae147b YMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM03=0000000000000000 0000000000000000 0000000000000000 3f73d80979d575a3 YMM04=0000000000000000 0000000000000000 00007f5cf6fd4500 0000000000415710 YMM05=0000000000000000 0000000000000000 000000c0004d0130 000000c0000a9148 YMM06=0000000000000000 0000000000000000 0000000000505007 000000c000356fc0 YMM07=0000000000000000 0000000000000000 0000000000000001 000000c0004d0138 YMM08=0000000000000000 0000000000000000 000000c0004d0140 0000000000000001 YMM09=0000000000000000 0000000000000000 00000000004643c1 0000000000000000 YMM10=0000000000000000 0000000000000000 000000c00009c9e0 000000c00052c2c0 YMM11=0000000000000000 0000000000000000 000000c0004d0150 0000000000000001 YMM12=0000000000000000 0000000000000000 0000000000000001 0000000000000001 YMM13=0000000000000000 0000000000000000 0000000000000017 00000000009ed2a6 YMM14=0000000000000000 0000000000000000 0000000000000019 00000000009f9107 YMM15=0000000000000000 0000000000000000 000000000000000b 00000000009a51fe info registers vcpu 1 RAX=0000000000000020 RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff823640e1 RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff88800973f648 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=00007ffc56dbb000 CR3=000000001b3b4000 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 0000000000000000 YMM02=0000000000000000 0000000000000000 0000000000000000 410b2dc000000000 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