Debian GNU/Linux 11 syzkaller ttyS0 Warning: Permanently added '[localhost]:39296' (ECDSA) to the list of known hosts. 2021/12/06 11:27:01 fuzzer started 2021/12/06 11:27:01 dialing manager at localhost:35719 2021/12/06 11:27:01 checking machine... 2021/12/06 11:27:01 checking revisions... syzkaller login: [ 27.979480] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:27:01 testing simple program... [ 28.019284] cgroup: Unknown subsys name 'net' [ 28.020805] cgroup: Unknown subsys name 'net_prio' [ 28.022445] cgroup: Unknown subsys name 'devices' [ 28.023993] cgroup: Unknown subsys name 'blkio' [ 28.045022] [ 28.045370] ========================= [ 28.046086] WARNING: held lock freed! [ 28.046807] 5.16.0-rc3-next-20211203 #1 Not tainted [ 28.047950] ------------------------- [ 28.049173] kworker/0:2/48 is freeing memory ffff88800fb36400-ffff88800fb365ff, with a lock still held there! [ 28.051573] ffff88800fb36548 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 28.053356] 3 locks held by kworker/0:2/48: [ 28.054202] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 28.056242] #1: ffff88800b6c7da8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 28.058550] #2: ffff88800fb36548 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 28.060369] [ 28.060369] stack backtrace: [ 28.061246] CPU: 0 PID: 48 Comm: kworker/0:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 28.062755] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 28.064967] Workqueue: cgroup_destroy css_free_rwork_fn [ 28.066014] Call Trace: [ 28.066515] [ 28.066946] dump_stack_lvl+0x8b/0xb3 [ 28.067694] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 28.068746] ? kernfs_put.part.0+0x334/0x540 [ 28.069611] kfree+0xb3/0x5a0 [ 28.070220] ? kmem_cache_free+0xce/0x640 [ 28.071032] kernfs_put.part.0+0x334/0x540 [ 28.071872] kernfs_put+0x42/0x50 [ 28.072548] __kernfs_remove+0x7ce/0xb00 [ 28.073351] ? lock_is_held_type+0xd7/0x130 [ 28.074208] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 28.075242] ? down_write+0xde/0x150 [ 28.075968] ? down_write_killable_nested+0x180/0x180 [ 28.076987] kernfs_destroy_root+0x89/0xb0 [ 28.077813] css_free_rwork_fn+0xa28/0xf40 [ 28.078650] process_one_work+0xa30/0x1710 [ 28.079481] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 28.080391] ? rwlock_bug.part.0+0x90/0x90 [ 28.081239] ? _raw_spin_lock_irq+0x41/0x50 [ 28.082084] worker_thread+0x62a/0x13e0 [ 28.082869] ? process_one_work+0x1710/0x1710 [ 28.083742] kthread+0x40c/0x500 [ 28.084400] ? set_kthread_struct+0x130/0x130 [ 28.085283] ret_from_fork+0x22/0x30 [ 28.086018] [ 28.086522] ================================================================== [ 28.087935] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 28.089108] Read of size 8 at addr ffff88800fb36540 by task kworker/0:2/48 [ 28.090461] [ 28.090777] CPU: 0 PID: 48 Comm: kworker/0:2 Not tainted 5.16.0-rc3-next-20211203 #1 [ 28.092294] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 28.094531] Workqueue: cgroup_destroy css_free_rwork_fn [ 28.095578] Call Trace: [ 28.096078] [ 28.096517] dump_stack_lvl+0x8b/0xb3 [ 28.097273] print_address_description.constprop.0+0x1f/0x180 [ 28.098422] ? up_write+0x3ac/0x460 [ 28.099140] ? up_write+0x3ac/0x460 [ 28.099855] kasan_report.cold+0x7f/0x11b [ 28.100694] ? up_write+0x3ac/0x460 [ 28.101405] up_write+0x3ac/0x460 [ 28.102088] css_free_rwork_fn+0xa28/0xf40 [ 28.102924] process_one_work+0xa30/0x1710 [ 28.103759] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 28.104684] ? rwlock_bug.part.0+0x90/0x90 [ 28.105515] ? _raw_spin_lock_irq+0x41/0x50 [ 28.106362] worker_thread+0x62a/0x13e0 [ 28.107154] ? process_one_work+0x1710/0x1710 [ 28.108033] kthread+0x40c/0x500 [ 28.108701] ? set_kthread_struct+0x130/0x130 [ 28.109578] ret_from_fork+0x22/0x30 [ 28.110317] [ 28.110767] [ 28.111083] Allocated by task 280: [ 28.111763] kasan_save_stack+0x1e/0x40 [ 28.112543] __kasan_kmalloc+0x81/0xa0 [ 28.113326] kernfs_create_root+0x4c/0x410 [ 28.114150] cgroup_setup_root+0x346/0xb60 [ 28.114977] cgroup1_get_tree+0xc1b/0x1370 [ 28.115809] vfs_get_tree+0x8e/0x2f0 [ 28.116542] path_mount+0x131b/0x1f80 [ 28.117292] __x64_sys_mount+0x27e/0x300 [ 28.118090] do_syscall_64+0x3b/0x90 [ 28.118820] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 28.119829] [ 28.120145] Freed by task 48: [ 28.120752] kasan_save_stack+0x1e/0x40 [ 28.121532] kasan_set_track+0x21/0x30 [ 28.122291] kasan_set_free_info+0x20/0x30 [ 28.123121] __kasan_slab_free+0x108/0x170 [ 28.123948] kfree+0xc5/0x5a0 [ 28.124556] kernfs_put.part.0+0x334/0x540 [ 28.125402] kernfs_put+0x42/0x50 [ 28.126073] __kernfs_remove+0x7ce/0xb00 [ 28.126859] kernfs_destroy_root+0x89/0xb0 [ 28.127680] css_free_rwork_fn+0xa28/0xf40 [ 28.128506] process_one_work+0xa30/0x1710 [ 28.129342] worker_thread+0x62a/0x13e0 [ 28.130117] kthread+0x40c/0x500 [ 28.130774] ret_from_fork+0x22/0x30 [ 28.131503] [ 28.131822] The buggy address belongs to the object at ffff88800fb36400 [ 28.131822] which belongs to the cache kmalloc-512 of size 512 [ 28.134248] The buggy address is located 320 bytes inside of [ 28.134248] 512-byte region [ffff88800fb36400, ffff88800fb36600) [ 28.136512] The buggy address belongs to the page: [ 28.137462] page:000000001c6e42f2 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xfb34 [ 28.139272] head:000000001c6e42f2 order:2 compound_mapcount:0 compound_pincount:0 [ 28.140742] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 28.141888] raw: 0100000000010200 dead000000000100 dead000000000122 ffff888007841c80 [ 28.143400] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 28.144920] page dumped because: kasan: bad access detected [ 28.146012] [ 28.146329] Memory state around the buggy address: [ 28.147274] ffff88800fb36400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.148685] ffff88800fb36480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.150095] >ffff88800fb36500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.151506] ^ [ 28.152549] ffff88800fb36580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 28.153980] ffff88800fb36600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 28.155384] ================================================================== [ 28.182815] cgroup: Unknown subsys name 'hugetlb' [ 28.183999] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:27:02 Registers: info registers vcpu 0 RAX=000000000000002d RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff823640e1 RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff88800b6c7648 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=000000c000761000 CR3=000000000eada000 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 3f847ae147ae147b YMM02=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM03=0000000000000000 0000000000000000 0000000000000000 3f74100dba9a20ea YMM04=0000000000000000 0000000000000000 00007f5c1f970c00 0000000000415710 YMM05=0000000000000000 0000000000000000 0000000000b12758 000000c0003c8130 YMM06=0000000000000000 0000000000000000 0000000000505007 000000c00034bfc0 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 00000000004643c6 0000000000000000 YMM09=0000000000000000 0000000000000000 00000000004643c1 0000000000000000 YMM10=0000000000000000 0000000000000000 000000c0003ccc60 000000c000158dc0 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 info registers vcpu 1 RAX=0000000000000000 RBX=0000000000000007 RCX=1ffffffff0b17d19 RDX=0000000000000009 RSI=ffff8880183b5040 RDI=ffff8880183b5558 RBP=ffff8880183b5040 RSP=ffff88806cf09d10 R8 =ffff88806cf38540 R9 =ffffffff862df04f R10=ffffffff862df057 R11=ffffffff862df05b R12=ffff88806cf37b00 R13=0000000000000000 R14=ffff88806cf09d98 R15=ffff8880183b5490 RIP=ffffffff81202b76 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=00007f86ab43a6d0 CR3=000000000eada000 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 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