WARNING: held lock freed in kernfs_destroy_root
cgroup: Unknown subsys name 'net'
=========================
WARNING: held lock freed!
5.16.0-rc3-next-20211203-syzkaller #0 Not tainted
-------------------------
syz-executor/6596 is freeing memory ffff88801e977c00-ffff88801e977dff, with a lock still held there!
ffff88801e977d48 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove fs/kernfs/dir.c:1396 [inline]
ffff88801e977d48 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_destroy_root+0x81/0xb0 fs/kernfs/dir.c:964
2 locks held by syz-executor/6596:
#0: ffffffff8bbc4e08 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock_and_drain_offline+0xa5/0x900 kernel/cgroup/cgroup.c:2998
#1: ffff88801e977d48 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove fs/kernfs/dir.c:1396 [inline]
#1: ffff88801e977d48 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_destroy_root+0x81/0xb0 fs/kernfs/dir.c:964
stack backtrace:
CPU: 0 PID: 6596 Comm: syz-executor Not tainted 5.16.0-rc3-next-20211203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_freed_lock_bug kernel/locking/lockdep.c:6388 [inline]
debug_check_no_locks_freed.cold+0x9d/0xa9 kernel/locking/lockdep.c:6421
slab_free_hook mm/slub.c:1700 [inline]
slab_free_freelist_hook+0x73/0x1c0 mm/slub.c:1754
slab_free mm/slub.c:3510 [inline]
kfree+0xd0/0x4b0 mm/slub.c:4561
kernfs_put.part.0+0x331/0x540 fs/kernfs/dir.c:548
kernfs_put+0x42/0x50 fs/kernfs/dir.c:513
__kernfs_remove+0x7a3/0xb20 fs/kernfs/dir.c:1382
kernfs_remove fs/kernfs/dir.c:1397 [inline]
kernfs_destroy_root+0x89/0xb0 fs/kernfs/dir.c:964
cgroup_setup_root+0x3a6/0xad0 kernel/cgroup/cgroup.c:2077
cgroup1_root_to_use kernel/cgroup/cgroup-v1.c:1194 [inline]
cgroup1_get_tree+0xd33/0x1390 kernel/cgroup/cgroup-v1.c:1211
vfs_get_tree+0x89/0x2f0 fs/super.c:1500
do_new_mount fs/namespace.c:3004 [inline]
path_mount+0x1320/0x1fa0 fs/namespace.c:3334
do_mount fs/namespace.c:3347 [inline]
__do_sys_mount fs/namespace.c:3555 [inline]
__se_sys_mount fs/namespace.c:3532 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3532
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f0f25eb5f6a
Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe62ffb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffe62ffcd8 RCX: 00007f0f25eb5f6a
RDX: 00007f0f25f18e6c RSI: 00007f0f25f0f1b1 RDI: 00007f0f25f0dca1
RBP: 00007f0f25f0f1b1 R08: 00007f0f25f0f30e R09: 0000000000000026
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffe62ffb50
R13: 00007fffe62ffcf8 R14: 00007fffe62ffc20 R15: 00007f0f25f0f308
==================================================================
BUG: KASAN: use-after-free in __up_write kernel/locking/rwsem.c:1318 [inline]
BUG: KASAN: use-after-free in up_write+0x3ac/0x470 kernel/locking/rwsem.c:1576
Read of size 8 at addr ffff88801e977d40 by task syz-executor/6596
CPU: 0 PID: 6596 Comm: syz-executor Not tainted 5.16.0-rc3-next-20211203-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
print_address_description.constprop.0.cold+0xa5/0x3ed mm/kasan/report.c:255
__kasan_report mm/kasan/report.c:442 [inline]
kasan_report.cold+0x83/0xdf mm/kasan/report.c:459
__up_write kernel/locking/rwsem.c:1318 [inline]
up_write+0x3ac/0x470 kernel/locking/rwsem.c:1576
cgroup_setup_root+0x3a6/0xad0 kernel/cgroup/cgroup.c:2077
cgroup1_root_to_use kernel/cgroup/cgroup-v1.c:1194 [inline]
cgroup1_get_tree+0xd33/0x1390 kernel/cgroup/cgroup-v1.c:1211
vfs_get_tree+0x89/0x2f0 fs/super.c:1500
do_new_mount fs/namespace.c:3004 [inline]
path_mount+0x1320/0x1fa0 fs/namespace.c:3334
do_mount fs/namespace.c:3347 [inline]
__do_sys_mount fs/namespace.c:3555 [inline]
__se_sys_mount fs/namespace.c:3532 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3532
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f0f25eb5f6a
Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe62ffb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffe62ffcd8 RCX: 00007f0f25eb5f6a
RDX: 00007f0f25f18e6c RSI: 00007f0f25f0f1b1 RDI: 00007f0f25f0dca1
RBP: 00007f0f25f0f1b1 R08: 00007f0f25f0f30e R09: 0000000000000026
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffe62ffb50
R13: 00007fffe62ffcf8 R14: 00007fffe62ffc20 R15: 00007f0f25f0f308
Allocated by task 6596:
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:436 [inline]
____kasan_kmalloc mm/kasan/common.c:515 [inline]
____kasan_kmalloc mm/kasan/common.c:474 [inline]
__kasan_kmalloc+0xa9/0xd0 mm/kasan/common.c:524
kmalloc include/linux/slab.h:581 [inline]
kzalloc include/linux/slab.h:715 [inline]
kernfs_create_root+0x4c/0x410 fs/kernfs/dir.c:913
cgroup_setup_root+0x243/0xad0 kernel/cgroup/cgroup.c:2018
cgroup1_root_to_use kernel/cgroup/cgroup-v1.c:1194 [inline]
cgroup1_get_tree+0xd33/0x1390 kernel/cgroup/cgroup-v1.c:1211
vfs_get_tree+0x89/0x2f0 fs/super.c:1500
do_new_mount fs/namespace.c:3004 [inline]
path_mount+0x1320/0x1fa0 fs/namespace.c:3334
do_mount fs/namespace.c:3347 [inline]
__do_sys_mount fs/namespace.c:3555 [inline]
__se_sys_mount fs/namespace.c:3532 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3532
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
Freed by task 6596:
kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38
kasan_set_track+0x21/0x30 mm/kasan/common.c:45
kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370
____kasan_slab_free mm/kasan/common.c:366 [inline]
____kasan_slab_free+0x166/0x1a0 mm/kasan/common.c:328
kasan_slab_free include/linux/kasan.h:236 [inline]
slab_free_hook mm/slub.c:1728 [inline]
slab_free_freelist_hook+0x8b/0x1c0 mm/slub.c:1754
slab_free mm/slub.c:3510 [inline]
kfree+0xd0/0x4b0 mm/slub.c:4561
kernfs_put.part.0+0x331/0x540 fs/kernfs/dir.c:548
kernfs_put+0x42/0x50 fs/kernfs/dir.c:513
__kernfs_remove+0x7a3/0xb20 fs/kernfs/dir.c:1382
kernfs_remove fs/kernfs/dir.c:1397 [inline]
kernfs_destroy_root+0x89/0xb0 fs/kernfs/dir.c:964
cgroup_setup_root+0x3a6/0xad0 kernel/cgroup/cgroup.c:2077
cgroup1_root_to_use kernel/cgroup/cgroup-v1.c:1194 [inline]
cgroup1_get_tree+0xd33/0x1390 kernel/cgroup/cgroup-v1.c:1211
vfs_get_tree+0x89/0x2f0 fs/super.c:1500
do_new_mount fs/namespace.c:3004 [inline]
path_mount+0x1320/0x1fa0 fs/namespace.c:3334
do_mount fs/namespace.c:3347 [inline]
__do_sys_mount fs/namespace.c:3555 [inline]
__se_sys_mount fs/namespace.c:3532 [inline]
__x64_sys_mount+0x27f/0x300 fs/namespace.c:3532
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
The buggy address belongs to the object at ffff88801e977c00
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 320 bytes inside of
512-byte region [ffff88801e977c00, ffff88801e977e00)
The buggy address belongs to the page:
page:ffffea00007a5d00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1e974
head:ffffea00007a5d00 order:2 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888010c41c80
raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 2111, ts 13871398788, free_ts 0
prep_new_page mm/page_alloc.c:2433 [inline]
get_page_from_freelist+0xa72/0x2f40 mm/page_alloc.c:4164
__alloc_pages+0x1b2/0x500 mm/page_alloc.c:5376
alloc_pages+0x1aa/0x310 mm/mempolicy.c:2271
alloc_slab_page mm/slub.c:1799 [inline]
allocate_slab mm/slub.c:1944 [inline]
new_slab+0x28d/0x3a0 mm/slub.c:2004
___slab_alloc+0x6be/0xd60 mm/slub.c:3019
__slab_alloc.constprop.0+0x4d/0xa0 mm/slub.c:3106
slab_alloc_node mm/slub.c:3197 [inline]
slab_alloc mm/slub.c:3239 [inline]
kmem_cache_alloc_trace+0x289/0x2c0 mm/slub.c:3256
kmalloc include/linux/slab.h:581 [inline]
kzalloc include/linux/slab.h:715 [inline]
alloc_bprm+0x51/0x8f0 fs/exec.c:1505
kernel_execve+0x55/0x460 fs/exec.c:1945
call_usermodehelper_exec_async+0x2e3/0x580 kernel/umh.c:112
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
page_owner free stack trace missing
Memory state around the buggy address:
ffff88801e977c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88801e977c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88801e977d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88801e977d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88801e977e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
Warning: Permanently added '10.128.0.106' (ECDSA) to the list of known hosts.
2021/12/03 15:55:10 fuzzer started
2021/12/03 15:55:10 connecting to host at 10.128.0.169:42897
2021/12/03 15:55:10 checking machine...
2021/12/03 15:55:10 checking revisions...
2021/12/03 15:55:10 testing simple program...
syzkaller login: [ 75.158181][ T6596] cgroup: Unknown subsys name 'net'
[ 75.165476][ T6596]
[ 75.167904][ T6596] =========================
[ 75.172425][ T6596] WARNING: held lock freed!
[ 75.176900][ T6596] 5.16.0-rc3-next-20211203-syzkaller #0 Not tainted
[ 75.183461][ T6596] -------------------------
[ 75.188020][ T6596] syz-executor/6596 is freeing memory ffff88801e977c00-ffff88801e977dff, with a lock still held there!
[ 75.199019][ T6596] ffff88801e977d48 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_destroy_root+0x81/0xb0
[ 75.208754][ T6596] 2 locks held by syz-executor/6596:
[ 75.214023][ T6596] #0: ffffffff8bbc4e08 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock_and_drain_offline+0xa5/0x900
[ 75.224548][ T6596] #1: ffff88801e977d48 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_destroy_root+0x81/0xb0
[ 75.234699][ T6596]
[ 75.234699][ T6596] stack backtrace:
[ 75.240564][ T6596] CPU: 0 PID: 6596 Comm: syz-executor Not tainted 5.16.0-rc3-next-20211203-syzkaller #0
[ 75.250264][ T6596] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[ 75.260309][ T6596] Call Trace:
[ 75.263587][ T6596]
[ 75.266507][ T6596] dump_stack_lvl+0xcd/0x134
[ 75.271087][ T6596] debug_check_no_locks_freed.cold+0x9d/0xa9
[ 75.277052][ T6596] ? lockdep_hardirqs_on+0x79/0x100
[ 75.282256][ T6596] slab_free_freelist_hook+0x73/0x1c0
[ 75.287613][ T6596] ? kernfs_put.part.0+0x331/0x540
[ 75.292718][ T6596] kfree+0xd0/0x4b0
[ 75.296522][ T6596] ? kmem_cache_free+0xdd/0x580
[ 75.301352][ T6596] ? __sanitizer_cov_trace_const_cmp8+0x1d/0x70
[ 75.307581][ T6596] kernfs_put.part.0+0x331/0x540
[ 75.312515][ T6596] kernfs_put+0x42/0x50
[ 75.316651][ T6596] __kernfs_remove+0x7a3/0xb20
[ 75.321403][ T6596] ? kernfs_next_descendant_post+0x2f0/0x2f0
[ 75.327453][ T6596] ? down_write+0xde/0x150
[ 75.331870][ T6596] ? down_write_killable_nested+0x180/0x180
[ 75.337749][ T6596] kernfs_destroy_root+0x89/0xb0
[ 75.342675][ T6596] cgroup_setup_root+0x3a6/0xad0
[ 75.347596][ T6596] ? rebind_subsystems+0x10e0/0x10e0
[ 75.352899][ T6596] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80
[ 75.359141][ T6596] cgroup1_get_tree+0xd33/0x1390
[ 75.364070][ T6596] vfs_get_tree+0x89/0x2f0
[ 75.368474][ T6596] path_mount+0x1320/0x1fa0
[ 75.373136][ T6596] ? kmem_cache_free+0xdd/0x580
[ 75.377970][ T6596] ? finish_automount+0xaf0/0xaf0
[ 75.382978][ T6596] ? putname+0xfe/0x140
[ 75.387294][ T6596] __x64_sys_mount+0x27f/0x300
[ 75.392042][ T6596] ? copy_mnt_ns+0xae0/0xae0
[ 75.396630][ T6596] ? syscall_enter_from_user_mode+0x21/0x70
[ 75.402507][ T6596] do_syscall_64+0x35/0xb0
[ 75.406910][ T6596] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 75.412879][ T6596] RIP: 0033:0x7f0f25eb5f6a
[ 75.417281][ T6596] Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
[ 75.436882][ T6596] RSP: 002b:00007fffe62ffb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 75.445279][ T6596] RAX: ffffffffffffffda RBX: 00007fffe62ffcd8 RCX: 00007f0f25eb5f6a
[ 75.453238][ T6596] RDX: 00007f0f25f18e6c RSI: 00007f0f25f0f1b1 RDI: 00007f0f25f0dca1
[ 75.461210][ T6596] RBP: 00007f0f25f0f1b1 R08: 00007f0f25f0f30e R09: 0000000000000026
[ 75.469175][ T6596] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffe62ffb50
[ 75.477219][ T6596] R13: 00007fffe62ffcf8 R14: 00007fffe62ffc20 R15: 00007f0f25f0f308
[ 75.485195][ T6596]
[ 75.489523][ T6596] ==================================================================
[ 75.497594][ T6596] BUG: KASAN: use-after-free in up_write+0x3ac/0x470
[ 75.504378][ T6596] Read of size 8 at addr ffff88801e977d40 by task syz-executor/6596
[ 75.512456][ T6596]
[ 75.514766][ T6596] CPU: 0 PID: 6596 Comm: syz-executor Not tainted 5.16.0-rc3-next-20211203-syzkaller #0
[ 75.524468][ T6596] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[ 75.534507][ T6596] Call Trace:
[ 75.537770][ T6596]
[ 75.540686][ T6596] dump_stack_lvl+0xcd/0x134
[ 75.545283][ T6596] print_address_description.constprop.0.cold+0xa5/0x3ed
[ 75.552304][ T6596] ? up_write+0x3ac/0x470
[ 75.556626][ T6596] ? up_write+0x3ac/0x470
[ 75.561028][ T6596] kasan_report.cold+0x83/0xdf
[ 75.565786][ T6596] ? up_write+0x3ac/0x470
[ 75.570138][ T6596] up_write+0x3ac/0x470
[ 75.574392][ T6596] cgroup_setup_root+0x3a6/0xad0
[ 75.579345][ T6596] ? rebind_subsystems+0x10e0/0x10e0
[ 75.584666][ T6596] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80
[ 75.590931][ T6596] cgroup1_get_tree+0xd33/0x1390
[ 75.595865][ T6596] vfs_get_tree+0x89/0x2f0
[ 75.600274][ T6596] path_mount+0x1320/0x1fa0
[ 75.604860][ T6596] ? kmem_cache_free+0xdd/0x580
[ 75.609931][ T6596] ? finish_automount+0xaf0/0xaf0
[ 75.614960][ T6596] ? putname+0xfe/0x140
[ 75.619474][ T6596] __x64_sys_mount+0x27f/0x300
[ 75.624241][ T6596] ? copy_mnt_ns+0xae0/0xae0
[ 75.628835][ T6596] ? syscall_enter_from_user_mode+0x21/0x70
[ 75.634726][ T6596] do_syscall_64+0x35/0xb0
[ 75.639159][ T6596] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 75.645109][ T6596] RIP: 0033:0x7f0f25eb5f6a
[ 75.649657][ T6596] Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
[ 75.669258][ T6596] RSP: 002b:00007fffe62ffb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 75.677706][ T6596] RAX: ffffffffffffffda RBX: 00007fffe62ffcd8 RCX: 00007f0f25eb5f6a
[ 75.685677][ T6596] RDX: 00007f0f25f18e6c RSI: 00007f0f25f0f1b1 RDI: 00007f0f25f0dca1
[ 75.693639][ T6596] RBP: 00007f0f25f0f1b1 R08: 00007f0f25f0f30e R09: 0000000000000026
[ 75.701601][ T6596] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffe62ffb50
[ 75.709559][ T6596] R13: 00007fffe62ffcf8 R14: 00007fffe62ffc20 R15: 00007f0f25f0f308
[ 75.717668][ T6596]
[ 75.720816][ T6596]
[ 75.723126][ T6596] Allocated by task 6596:
[ 75.727615][ T6596] kasan_save_stack+0x1e/0x40
[ 75.732302][ T6596] __kasan_kmalloc+0xa9/0xd0
[ 75.736881][ T6596] kernfs_create_root+0x4c/0x410
[ 75.741819][ T6596] cgroup_setup_root+0x243/0xad0
[ 75.746750][ T6596] cgroup1_get_tree+0xd33/0x1390
[ 75.751682][ T6596] vfs_get_tree+0x89/0x2f0
[ 75.756200][ T6596] path_mount+0x1320/0x1fa0
[ 75.760689][ T6596] __x64_sys_mount+0x27f/0x300
[ 75.765872][ T6596] do_syscall_64+0x35/0xb0
[ 75.770288][ T6596] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 75.776171][ T6596]
[ 75.778497][ T6596] Freed by task 6596:
[ 75.782465][ T6596] kasan_save_stack+0x1e/0x40
[ 75.787154][ T6596] kasan_set_track+0x21/0x30
[ 75.791749][ T6596] kasan_set_free_info+0x20/0x30
[ 75.796762][ T6596] ____kasan_slab_free+0x166/0x1a0
[ 75.801886][ T6596] slab_free_freelist_hook+0x8b/0x1c0
[ 75.807341][ T6596] kfree+0xd0/0x4b0
[ 75.811139][ T6596] kernfs_put.part.0+0x331/0x540
[ 75.816070][ T6596] kernfs_put+0x42/0x50
[ 75.820221][ T6596] __kernfs_remove+0x7a3/0xb20
[ 75.824975][ T6596] kernfs_destroy_root+0x89/0xb0
[ 75.829903][ T6596] cgroup_setup_root+0x3a6/0xad0
[ 75.835023][ T6596] cgroup1_get_tree+0xd33/0x1390
[ 75.839946][ T6596] vfs_get_tree+0x89/0x2f0
[ 75.844439][ T6596] path_mount+0x1320/0x1fa0
[ 75.848930][ T6596] __x64_sys_mount+0x27f/0x300
[ 75.853852][ T6596] do_syscall_64+0x35/0xb0
[ 75.858339][ T6596] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 75.864221][ T6596]
[ 75.866563][ T6596] The buggy address belongs to the object at ffff88801e977c00
[ 75.866563][ T6596] which belongs to the cache kmalloc-512 of size 512
[ 75.880597][ T6596] The buggy address is located 320 bytes inside of
[ 75.880597][ T6596] 512-byte region [ffff88801e977c00, ffff88801e977e00)
[ 75.893872][ T6596] The buggy address belongs to the page:
[ 75.899576][ T6596] page:ffffea00007a5d00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1e974
[ 75.909711][ T6596] head:ffffea00007a5d00 order:2 compound_mapcount:0 compound_pincount:0
[ 75.918023][ T6596] flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
[ 75.925988][ T6596] raw: 00fff00000010200 0000000000000000 dead000000000001 ffff888010c41c80
[ 75.934551][ T6596] raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
[ 75.943104][ T6596] page dumped because: kasan: bad access detected
[ 75.949489][ T6596] page_owner tracks the page as allocated
[ 75.955187][ T6596] page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 2111, ts 13871398788, free_ts 0
[ 75.973493][ T6596] get_page_from_freelist+0xa72/0x2f40
[ 75.978965][ T6596] __alloc_pages+0x1b2/0x500
[ 75.983541][ T6596] alloc_pages+0x1aa/0x310
[ 75.988045][ T6596] new_slab+0x28d/0x3a0
[ 75.992180][ T6596] ___slab_alloc+0x6be/0xd60
[ 75.996748][ T6596] __slab_alloc.constprop.0+0x4d/0xa0
[ 76.002274][ T6596] kmem_cache_alloc_trace+0x289/0x2c0
[ 76.007626][ T6596] alloc_bprm+0x51/0x8f0
[ 76.011853][ T6596] kernel_execve+0x55/0x460
[ 76.016334][ T6596] call_usermodehelper_exec_async+0x2e3/0x580
[ 76.022391][ T6596] ret_from_fork+0x1f/0x30
[ 76.026787][ T6596] page_owner free stack trace missing
[ 76.032131][ T6596]
[ 76.034432][ T6596] Memory state around the buggy address:
[ 76.040045][ T6596] ffff88801e977c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 76.048428][ T6596] ffff88801e977c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 76.056465][ T6596] >ffff88801e977d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 76.064503][ T6596] ^
[ 76.070633][ T6596] ffff88801e977d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
[ 76.078688][ T6596] ffff88801e977e00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
[ 76.086723][ T6596] ==================================================================
[ 76.096561][ T6596] Kernel panic - not syncing: panic_on_warn set ...
[ 76.103177][ T6596] CPU: 0 PID: 6596 Comm: syz-executor Tainted: G B 5.16.0-rc3-next-20211203-syzkaller #0
[ 76.114299][ T6596] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[ 76.124371][ T6596] Call Trace:
[ 76.127645][ T6596]
[ 76.130567][ T6596] dump_stack_lvl+0xcd/0x134
[ 76.135165][ T6596] panic+0x2b0/0x6dd
[ 76.139052][ T6596] ? __warn_printk+0xf3/0xf3
[ 76.143640][ T6596] ? preempt_schedule_common+0x59/0xc0
[ 76.149094][ T6596] ? up_write+0x3ac/0x470
[ 76.153415][ T6596] ? preempt_schedule_thunk+0x16/0x18
[ 76.158787][ T6596] ? trace_hardirqs_on+0x38/0x1c0
[ 76.163800][ T6596] ? trace_hardirqs_on+0x51/0x1c0
[ 76.168814][ T6596] ? up_write+0x3ac/0x470
[ 76.173132][ T6596] ? up_write+0x3ac/0x470
[ 76.177451][ T6596] end_report.cold+0x63/0x6f
[ 76.182035][ T6596] kasan_report.cold+0x71/0xdf
[ 76.186788][ T6596] ? up_write+0x3ac/0x470
[ 76.191109][ T6596] up_write+0x3ac/0x470
[ 76.195273][ T6596] cgroup_setup_root+0x3a6/0xad0
[ 76.200205][ T6596] ? rebind_subsystems+0x10e0/0x10e0
[ 76.205486][ T6596] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80
[ 76.211723][ T6596] cgroup1_get_tree+0xd33/0x1390
[ 76.216661][ T6596] vfs_get_tree+0x89/0x2f0
[ 76.221073][ T6596] path_mount+0x1320/0x1fa0
[ 76.225586][ T6596] ? kmem_cache_free+0xdd/0x580
[ 76.230434][ T6596] ? finish_automount+0xaf0/0xaf0
[ 76.235462][ T6596] ? putname+0xfe/0x140
[ 76.239630][ T6596] __x64_sys_mount+0x27f/0x300
[ 76.244398][ T6596] ? copy_mnt_ns+0xae0/0xae0
[ 76.248999][ T6596] ? syscall_enter_from_user_mode+0x21/0x70
[ 76.254888][ T6596] do_syscall_64+0x35/0xb0
[ 76.259294][ T6596] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 76.265176][ T6596] RIP: 0033:0x7f0f25eb5f6a
[ 76.269594][ T6596] Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
[ 76.289548][ T6596] RSP: 002b:00007fffe62ffb48 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
[ 76.297951][ T6596] RAX: ffffffffffffffda RBX: 00007fffe62ffcd8 RCX: 00007f0f25eb5f6a
[ 76.305909][ T6596] RDX: 00007f0f25f18e6c RSI: 00007f0f25f0f1b1 RDI: 00007f0f25f0dca1
[ 76.313884][ T6596] RBP: 00007f0f25f0f1b1 R08: 00007f0f25f0f30e R09: 0000000000000026
[ 76.321848][ T6596] R10: 0000000000000000 R11: 0000000000000246 R12: 00007fffe62ffb50
[ 76.329804][ T6596] R13: 00007fffe62ffcf8 R14: 00007fffe62ffc20 R15: 00007f0f25f0f308
[ 76.337768][ T6596]
[ 76.340837][ T6596] Kernel Offset: disabled
[ 76.345146][ T6596] Rebooting in 86400 seconds..