Debian GNU/Linux 11 syzkaller ttyS0 Warning: Permanently added '[localhost]:57236' (ECDSA) to the list of known hosts. 2021/12/06 11:21:40 fuzzer started 2021/12/06 11:21:41 dialing manager at localhost:35719 2021/12/06 11:21:41 checking machine... 2021/12/06 11:21:41 checking revisions... syzkaller login: [ 36.912925] kmemleak: Automatic memory scanning thread ended 2021/12/06 11:21:41 testing simple program... [ 36.951085] cgroup: Unknown subsys name 'net' [ 36.953614] cgroup: Unknown subsys name 'net_prio' [ 36.954631] cgroup: Unknown subsys name 'devices' [ 36.956587] cgroup: Unknown subsys name 'blkio' [ 37.005540] [ 37.005818] ========================= [ 37.006283] WARNING: held lock freed! [ 37.006746] 5.16.0-rc3-next-20211203 #1 Not tainted [ 37.007344] ------------------------- [ 37.007893] kworker/1:0/18 is freeing memory ffff88800e5bc400-ffff88800e5bc5ff, with a lock still held there! [ 37.009099] ffff88800e5bc548 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 37.010228] 3 locks held by kworker/1:0/18: [ 37.010798] #0: ffff8880080a6138 ((wq_completion)cgroup_destroy){+.+.}-{0:0}, at: process_one_work+0x929/0x1710 [ 37.020064] #1: ffff88800823fda8 ((work_completion)(&(&css->destroy_rwork)->work)){+.+.}-{0:0}, at: process_one_work+0x95d/0x1710 [ 37.021561] #2: ffff88800e5bc548 (&root->kernfs_rwsem){++++}-{3:3}, at: __kernfs_remove+0x627/0xb00 [ 37.022707] [ 37.022707] stack backtrace: [ 37.023231] CPU: 1 PID: 18 Comm: kworker/1:0 Not tainted 5.16.0-rc3-next-20211203 #1 [ 37.036259] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 37.037651] Workqueue: cgroup_destroy css_free_rwork_fn [ 37.038308] Call Trace: [ 37.043862] [ 37.044141] dump_stack_lvl+0x8b/0xb3 [ 37.044643] debug_check_no_locks_freed.cold+0xa5/0xb1 [ 37.045293] ? kernfs_put.part.0+0x334/0x540 [ 37.045884] kfree+0xb3/0x5a0 [ 37.046267] ? kmem_cache_free+0xce/0x640 [ 37.046770] kernfs_put.part.0+0x334/0x540 [ 37.047293] kernfs_put+0x42/0x50 [ 37.051806] __kernfs_remove+0x7ce/0xb00 [ 37.052309] ? lock_is_held_type+0xd7/0x130 [ 37.052840] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 37.053476] ? down_write+0xde/0x150 [ 37.053926] ? down_write_killable_nested+0x180/0x180 [ 37.054565] kernfs_destroy_root+0x89/0xb0 [ 37.055102] css_free_rwork_fn+0xa28/0xf40 [ 37.055672] process_one_work+0xa30/0x1710 [ 37.056225] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 37.056794] ? rwlock_bug.part.0+0x90/0x90 [ 37.057311] ? _raw_spin_lock_irq+0x41/0x50 [ 37.057877] worker_thread+0x62a/0x13e0 [ 37.058381] ? process_one_work+0x1710/0x1710 [ 37.058981] kthread+0x40c/0x500 [ 37.059407] ? set_kthread_struct+0x130/0x130 [ 37.060028] ret_from_fork+0x22/0x30 [ 37.060488] [ 37.060914] ================================================================== [ 37.061785] BUG: KASAN: use-after-free in up_write+0x3ac/0x460 [ 37.062502] Read of size 8 at addr ffff88800e5bc540 by task kworker/1:0/18 [ 37.063359] [ 37.063577] CPU: 1 PID: 18 Comm: kworker/1:0 Not tainted 5.16.0-rc3-next-20211203 #1 [ 37.064562] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 [ 37.065929] Workqueue: cgroup_destroy css_free_rwork_fn [ 37.066607] Call Trace: [ 37.066938] [ 37.067211] dump_stack_lvl+0x8b/0xb3 [ 37.067891] print_address_description.constprop.0+0x1f/0x180 [ 37.068623] ? up_write+0x3ac/0x460 [ 37.069076] ? up_write+0x3ac/0x460 [ 37.069515] kasan_report.cold+0x7f/0x11b [ 37.070042] ? up_write+0x3ac/0x460 [ 37.070491] up_write+0x3ac/0x460 [ 37.070917] css_free_rwork_fn+0xa28/0xf40 [ 37.071434] process_one_work+0xa30/0x1710 [ 37.071993] ? pwq_dec_nr_in_flight+0x2a0/0x2a0 [ 37.072562] ? rwlock_bug.part.0+0x90/0x90 [ 37.073122] ? _raw_spin_lock_irq+0x41/0x50 [ 37.073649] worker_thread+0x62a/0x13e0 [ 37.074143] ? process_one_work+0x1710/0x1710 [ 37.074707] kthread+0x40c/0x500 [ 37.075124] ? set_kthread_struct+0x130/0x130 [ 37.079717] ret_from_fork+0x22/0x30 [ 37.080184] [ 37.080471] [ 37.080697] Allocated by task 281: [ 37.081124] kasan_save_stack+0x1e/0x40 [ 37.081611] __kasan_kmalloc+0x81/0xa0 [ 37.082143] kernfs_create_root+0x4c/0x410 [ 37.082660] cgroup_setup_root+0x346/0xb60 [ 37.083180] cgroup1_get_tree+0xc1b/0x1370 [ 37.083750] vfs_get_tree+0x8e/0x2f0 [ 37.084207] path_mount+0x131b/0x1f80 [ 37.084676] __x64_sys_mount+0x27e/0x300 [ 37.085213] do_syscall_64+0x3b/0x90 [ 37.085668] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 37.086309] [ 37.086510] Freed by task 18: [ 37.086917] kasan_save_stack+0x1e/0x40 [ 37.087400] kasan_set_track+0x21/0x30 [ 37.087955] kasan_set_free_info+0x20/0x30 [ 37.088472] __kasan_slab_free+0x108/0x170 [ 37.088988] kfree+0xc5/0x5a0 [ 37.089379] kernfs_put.part.0+0x334/0x540 [ 37.089929] kernfs_put+0x42/0x50 [ 37.090351] __kernfs_remove+0x7ce/0xb00 [ 37.090886] kernfs_destroy_root+0x89/0xb0 [ 37.091401] css_free_rwork_fn+0xa28/0xf40 [ 37.092008] process_one_work+0xa30/0x1710 [ 37.092528] worker_thread+0x62a/0x13e0 [ 37.093040] kthread+0x40c/0x500 [ 37.093457] ret_from_fork+0x22/0x30 [ 37.093961] [ 37.094162] The buggy address belongs to the object at ffff88800e5bc400 [ 37.094162] which belongs to the cache kmalloc-512 of size 512 [ 37.095677] The buggy address is located 320 bytes inside of [ 37.095677] 512-byte region [ffff88800e5bc400, ffff88800e5bc600) [ 37.097129] The buggy address belongs to the page: [ 37.097727] page:00000000dec93142 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xe5bc [ 37.098880] head:00000000dec93142 order:2 compound_mapcount:0 compound_pincount:0 [ 37.103828] flags: 0x100000000010200(slab|head|node=0|zone=1) [ 37.104541] raw: 0100000000010200 ffffea000039ff00 dead000000000002 ffff888007841c80 [ 37.105519] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000 [ 37.106461] page dumped because: kasan: bad access detected [ 37.107139] [ 37.107341] Memory state around the buggy address: [ 37.107992] ffff88800e5bc400: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.108901] ffff88800e5bc480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.109812] >ffff88800e5bc500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.110675] ^ [ 37.111367] ffff88800e5bc580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 37.112268] ffff88800e5bc600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 37.113140] ================================================================== [ 37.153442] cgroup: Unknown subsys name 'hugetlb' [ 37.154345] cgroup: Unknown subsys name 'rlimit' executing program executing program executing program VM DIAGNOSIS: 11:21:41 Registers: info registers vcpu 0 RAX=ffff88800804c000 RBX=ffff88800812f880 RCX=ffff88800812f880 RDX=dffffc0000000000 RSI=ffff88800812fbc0 RDI=ffff88800812fbc0 RBP=ffff88800812fbc0 RSP=ffff88800812f720 R8 =ffffffff85c71f04 R9 =ffffffff85c71f08 R10=ffffed1001025f13 R11=0000000000034044 R12=ffff88800812f830 R13=ffff888008128000 R14=ffff88800812f830 R15=ffff88800812f870 RIP=ffffffff811140de RFL=00000293 [--S-A-C] 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 00007f04762ab900 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=00005602880688f0 CR3=000000000b61a000 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 ff00000000000000 000000000000ff00 YMM02=0000000000000000 0000000000000000 000000ff00000000 00000000000000ff YMM03=0000000000000000 0000000000000000 74616c65722c7772 2074656e2f70756f YMM04=0000000000000000 0000000000000000 616d2c353d6f746f 72706e696d2c303d YMM05=0000000000000000 0000000000000000 333d64662c777220 312d646d65747379 YMM06=0000000000000000 0000000000000000 7261687320656d69 74616c65722c7772 YMM07=0000000000000000 0000000000000000 0000000000000000 0000000000000000 YMM08=0000000000000000 0000000000000000 756f73000a3a7366 202d2d2d2d2d2d00 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=0000000000000063 RBX=00000000000003f8 RCX=0000000000000000 RDX=00000000000003f8 RSI=ffffffff823640e1 RDI=ffffffff87381a60 RBP=ffffffff87381a20 RSP=ffff88800823f538 R8 =0000000000000000 R9 =0000000000000063 R10=ffffffff82365d23 R11=000000000000000a R12=0000000000000063 R13=0000000000000063 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=00007fa8cef9dd40 CR3=000000000ca88000 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