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/6589 is freeing memory ffff8880213e8800-ffff8880213e89ff, with a lock still held there! ffff8880213e8948 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove fs/kernfs/dir.c:1396 [inline] ffff8880213e8948 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_destroy_root+0x81/0xb0 fs/kernfs/dir.c:964 2 locks held by syz-executor/6589: #0: ffffffff8bbc2288 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock_and_drain_offline+0xa5/0x900 kernel/cgroup/cgroup.c:2998 #1: ffff8880213e8948 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_remove fs/kernfs/dir.c:1396 [inline] #1: ffff8880213e8948 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_destroy_root+0x81/0xb0 fs/kernfs/dir.c:964 stack backtrace: CPU: 1 PID: 6589 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 kfree+0xb6/0x2c0 mm/slab.c:3792 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:0x7fb65d6f0f6a 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:00007ffd44484348 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffd444844d8 RCX: 00007fb65d6f0f6a RDX: 00007fb65d753e6c RSI: 00007fb65d74a1b1 RDI: 00007fb65d748ca1 RBP: 00007fb65d74a1b1 R08: 00007fb65d74a30e R09: 0000000000000026 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd44484350 R13: 00007ffd444844f8 R14: 00007ffd44484420 R15: 00007fb65d74a308 ================================================================== 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 ffff8880213e8940 by task syz-executor/6589 CPU: 1 PID: 6589 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/0x3be 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:0x7fb65d6f0f6a 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:00007ffd44484348 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007ffd444844d8 RCX: 00007fb65d6f0f6a RDX: 00007fb65d753e6c RSI: 00007fb65d74a1b1 RDI: 00007fb65d748ca1 RBP: 00007fb65d74a1b1 R08: 00007fb65d74a30e R09: 0000000000000026 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd44484350 R13: 00007ffd444844f8 R14: 00007ffd44484420 R15: 00007fb65d74a308 Allocated by task 6589: 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+0xa6/0xd0 mm/kasan/common.c:524 kasan_kmalloc include/linux/kasan.h:270 [inline] kmem_cache_alloc_trace+0x1ea/0x4a0 mm/slab.c:3568 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 6589: 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+0x13d/0x180 mm/kasan/common.c:328 kasan_slab_free include/linux/kasan.h:236 [inline] __cache_free mm/slab.c:3438 [inline] kfree+0xfb/0x2c0 mm/slab.c:3795 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 ffff8880213e8800 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 320 bytes inside of 512-byte region [ffff8880213e8800, ffff8880213e8a00) The buggy address belongs to the page: page:ffffea000084fa00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x213e8 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffffea0001fc3348 ffffea00005ea308 ffff888010c40600 raw: 0000000000000000 ffff8880213e8000 0000000100000004 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x242040(__GFP_IO|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 6589, ts 91118144523, free_ts 91107502019 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_node include/linux/gfp.h:566 [inline] kmem_getpages mm/slab.c:1378 [inline] cache_grow_begin+0x75/0x350 mm/slab.c:2585 cache_alloc_refill+0x27f/0x380 mm/slab.c:2958 ____cache_alloc mm/slab.c:3041 [inline] ____cache_alloc mm/slab.c:3024 [inline] __do_cache_alloc mm/slab.c:3268 [inline] slab_alloc mm/slab.c:3309 [inline] __do_kmalloc mm/slab.c:3693 [inline] __kmalloc+0x3b3/0x4d0 mm/slab.c:3704 kmalloc include/linux/slab.h:586 [inline] kzalloc include/linux/slab.h:715 [inline] tomoyo_init_log+0x126e/0x1ee0 security/tomoyo/audit.c:275 tomoyo_supervisor+0x34d/0xf00 security/tomoyo/common.c:2097 tomoyo_audit_mount_log security/tomoyo/mount.c:32 [inline] tomoyo_mount_acl+0x524/0x840 security/tomoyo/mount.c:166 tomoyo_mount_permission+0x151/0x3f0 security/tomoyo/mount.c:237 security_sb_mount+0x66/0xc0 security/security.c:963 path_mount+0x12f/0x1fa0 fs/namespace.c:3276 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 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1351 [inline] free_pcp_prepare+0x414/0xb60 mm/page_alloc.c:1403 free_unref_page_prepare mm/page_alloc.c:3324 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3403 slab_destroy mm/slab.c:1631 [inline] slabs_destroy+0x89/0xc0 mm/slab.c:1651 cache_flusharray mm/slab.c:3411 [inline] ___cache_free+0x489/0x680 mm/slab.c:3473 qlink_free mm/kasan/quarantine.c:146 [inline] qlist_free_all+0x4e/0x150 mm/kasan/quarantine.c:165 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:272 __kasan_slab_alloc+0x97/0xb0 mm/kasan/common.c:446 kasan_slab_alloc include/linux/kasan.h:260 [inline] slab_post_alloc_hook mm/slab.h:766 [inline] slab_alloc mm/slab.c:3316 [inline] kmem_cache_alloc_trace+0x258/0x4a0 mm/slab.c:3566 kmalloc include/linux/slab.h:581 [inline] tomoyo_print_header security/tomoyo/audit.c:156 [inline] tomoyo_init_log+0x18a/0x1ee0 security/tomoyo/audit.c:255 tomoyo_supervisor+0x34d/0xf00 security/tomoyo/common.c:2097 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x270/0x3a0 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x30f/0x380 security/tomoyo/file.c:780 tomoyo_file_open security/tomoyo/tomoyo.c:311 [inline] tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:306 security_file_open+0x45/0xb0 security/security.c:1635 do_dentry_open+0x353/0x1250 fs/open.c:809 do_open fs/namei.c:3476 [inline] path_openat+0x1cad/0x2750 fs/namei.c:3609 Memory state around the buggy address: ffff8880213e8800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880213e8880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880213e8900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880213e8980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880213e8a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Load/Save RF Kill Switch Status. [ OK ] Started Update UTMP about System Runlevel Changes. Debian GNU/Linux 9 syzkaller ttyS0 Warning: Permanently added '10.128.1.81' (ECDSA) to the list of known hosts. 2021/12/03 15:43:27 fuzzer started 2021/12/03 15:43:27 connecting to host at 10.128.0.169:38591 2021/12/03 15:43:27 checking machine... 2021/12/03 15:43:27 checking revisions... 2021/12/03 15:43:27 testing simple program... syzkaller login: [ 91.118308][ T6589] cgroup: Unknown subsys name 'net' [ 91.124819][ T6589] [ 91.127162][ T6589] ========================= [ 91.131658][ T6589] WARNING: held lock freed! [ 91.136159][ T6589] 5.16.0-rc3-next-20211203-syzkaller #0 Not tainted [ 91.142743][ T6589] ------------------------- [ 91.147221][ T6589] syz-executor/6589 is freeing memory ffff8880213e8800-ffff8880213e89ff, with a lock still held there! [ 91.158215][ T6589] ffff8880213e8948 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_destroy_root+0x81/0xb0 [ 91.168030][ T6589] 2 locks held by syz-executor/6589: [ 91.173302][ T6589] #0: ffffffff8bbc2288 (cgroup_mutex){+.+.}-{3:3}, at: cgroup_lock_and_drain_offline+0xa5/0x900 [ 91.184006][ T6589] #1: ffff8880213e8948 (&root->kernfs_rwsem){++++}-{3:3}, at: kernfs_destroy_root+0x81/0xb0 [ 91.194184][ T6589] [ 91.194184][ T6589] stack backtrace: [ 91.200098][ T6589] CPU: 1 PID: 6589 Comm: syz-executor Not tainted 5.16.0-rc3-next-20211203-syzkaller #0 [ 91.209997][ T6589] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 91.220030][ T6589] Call Trace: [ 91.223298][ T6589] [ 91.226210][ T6589] dump_stack_lvl+0xcd/0x134 [ 91.230789][ T6589] debug_check_no_locks_freed.cold+0x9d/0xa9 [ 91.236753][ T6589] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80 [ 91.243030][ T6589] kfree+0xb6/0x2c0 [ 91.246825][ T6589] kernfs_put.part.0+0x331/0x540 [ 91.251750][ T6589] kernfs_put+0x42/0x50 [ 91.255897][ T6589] __kernfs_remove+0x7a3/0xb20 [ 91.260647][ T6589] ? kernfs_next_descendant_post+0x2f0/0x2f0 [ 91.266609][ T6589] ? down_write+0xde/0x150 [ 91.271023][ T6589] ? down_write_killable_nested+0x180/0x180 [ 91.277175][ T6589] kernfs_destroy_root+0x89/0xb0 [ 91.282101][ T6589] cgroup_setup_root+0x3a6/0xad0 [ 91.287024][ T6589] ? rebind_subsystems+0x10e0/0x10e0 [ 91.292314][ T6589] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80 [ 91.298541][ T6589] cgroup1_get_tree+0xd33/0x1390 [ 91.303471][ T6589] vfs_get_tree+0x89/0x2f0 [ 91.307872][ T6589] path_mount+0x1320/0x1fa0 [ 91.312357][ T6589] ? kmem_cache_free.part.0+0xe1/0x200 [ 91.317801][ T6589] ? finish_automount+0xaf0/0xaf0 [ 91.322806][ T6589] ? lockdep_hardirqs_on+0x79/0x100 [ 91.328267][ T6589] ? putname+0xfe/0x140 [ 91.332409][ T6589] __x64_sys_mount+0x27f/0x300 [ 91.337244][ T6589] ? copy_mnt_ns+0xae0/0xae0 [ 91.341923][ T6589] ? syscall_enter_from_user_mode+0x21/0x70 [ 91.347817][ T6589] do_syscall_64+0x35/0xb0 [ 91.352738][ T6589] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 91.358636][ T6589] RIP: 0033:0x7fb65d6f0f6a [ 91.363047][ T6589] 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 [ 91.382637][ T6589] RSP: 002b:00007ffd44484348 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 91.391032][ T6589] RAX: ffffffffffffffda RBX: 00007ffd444844d8 RCX: 00007fb65d6f0f6a [ 91.398989][ T6589] RDX: 00007fb65d753e6c RSI: 00007fb65d74a1b1 RDI: 00007fb65d748ca1 [ 91.406951][ T6589] RBP: 00007fb65d74a1b1 R08: 00007fb65d74a30e R09: 0000000000000026 [ 91.415398][ T6589] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd44484350 [ 91.423558][ T6589] R13: 00007ffd444844f8 R14: 00007ffd44484420 R15: 00007fb65d74a308 [ 91.431709][ T6589] [ 91.436876][ T6589] ================================================================== [ 91.445216][ T6589] BUG: KASAN: use-after-free in up_write+0x3ac/0x470 [ 91.451994][ T6589] Read of size 8 at addr ffff8880213e8940 by task syz-executor/6589 [ 91.460003][ T6589] [ 91.462331][ T6589] CPU: 1 PID: 6589 Comm: syz-executor Not tainted 5.16.0-rc3-next-20211203-syzkaller #0 [ 91.472146][ T6589] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 91.482303][ T6589] Call Trace: [ 91.485658][ T6589] [ 91.488672][ T6589] dump_stack_lvl+0xcd/0x134 [ 91.493263][ T6589] print_address_description.constprop.0.cold+0xa5/0x3be [ 91.500302][ T6589] ? up_write+0x3ac/0x470 [ 91.504619][ T6589] ? up_write+0x3ac/0x470 [ 91.508943][ T6589] kasan_report.cold+0x83/0xdf [ 91.513703][ T6589] ? up_write+0x3ac/0x470 [ 91.518040][ T6589] up_write+0x3ac/0x470 [ 91.522196][ T6589] cgroup_setup_root+0x3a6/0xad0 [ 91.527131][ T6589] ? rebind_subsystems+0x10e0/0x10e0 [ 91.532420][ T6589] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80 [ 91.538666][ T6589] cgroup1_get_tree+0xd33/0x1390 [ 91.543598][ T6589] vfs_get_tree+0x89/0x2f0 [ 91.548088][ T6589] path_mount+0x1320/0x1fa0 [ 91.552681][ T6589] ? kmem_cache_free.part.0+0xe1/0x200 [ 91.558126][ T6589] ? finish_automount+0xaf0/0xaf0 [ 91.563179][ T6589] ? lockdep_hardirqs_on+0x79/0x100 [ 91.568381][ T6589] ? putname+0xfe/0x140 [ 91.572620][ T6589] __x64_sys_mount+0x27f/0x300 [ 91.577393][ T6589] ? copy_mnt_ns+0xae0/0xae0 [ 91.581979][ T6589] ? syscall_enter_from_user_mode+0x21/0x70 [ 91.587863][ T6589] do_syscall_64+0x35/0xb0 [ 91.592441][ T6589] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 91.598328][ T6589] RIP: 0033:0x7fb65d6f0f6a [ 91.602737][ T6589] 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 [ 91.622344][ T6589] RSP: 002b:00007ffd44484348 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 91.630924][ T6589] RAX: ffffffffffffffda RBX: 00007ffd444844d8 RCX: 00007fb65d6f0f6a [ 91.638892][ T6589] RDX: 00007fb65d753e6c RSI: 00007fb65d74a1b1 RDI: 00007fb65d748ca1 [ 91.646848][ T6589] RBP: 00007fb65d74a1b1 R08: 00007fb65d74a30e R09: 0000000000000026 [ 91.654911][ T6589] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd44484350 [ 91.662867][ T6589] R13: 00007ffd444844f8 R14: 00007ffd44484420 R15: 00007fb65d74a308 [ 91.670826][ T6589] [ 91.673825][ T6589] [ 91.676127][ T6589] Allocated by task 6589: [ 91.680431][ T6589] kasan_save_stack+0x1e/0x40 [ 91.685096][ T6589] __kasan_kmalloc+0xa6/0xd0 [ 91.689664][ T6589] kmem_cache_alloc_trace+0x1ea/0x4a0 [ 91.695016][ T6589] kernfs_create_root+0x4c/0x410 [ 91.700110][ T6589] cgroup_setup_root+0x243/0xad0 [ 91.705034][ T6589] cgroup1_get_tree+0xd33/0x1390 [ 91.709959][ T6589] vfs_get_tree+0x89/0x2f0 [ 91.714454][ T6589] path_mount+0x1320/0x1fa0 [ 91.718936][ T6589] __x64_sys_mount+0x27f/0x300 [ 91.723773][ T6589] do_syscall_64+0x35/0xb0 [ 91.728349][ T6589] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 91.734222][ T6589] [ 91.736527][ T6589] Freed by task 6589: [ 91.740502][ T6589] kasan_save_stack+0x1e/0x40 [ 91.745173][ T6589] kasan_set_track+0x21/0x30 [ 91.749746][ T6589] kasan_set_free_info+0x20/0x30 [ 91.754697][ T6589] ____kasan_slab_free+0x13d/0x180 [ 91.759835][ T6589] kfree+0xfb/0x2c0 [ 91.763721][ T6589] kernfs_put.part.0+0x331/0x540 [ 91.768678][ T6589] kernfs_put+0x42/0x50 [ 91.773172][ T6589] __kernfs_remove+0x7a3/0xb20 [ 91.777949][ T6589] kernfs_destroy_root+0x89/0xb0 [ 91.782962][ T6589] cgroup_setup_root+0x3a6/0xad0 [ 91.787941][ T6589] cgroup1_get_tree+0xd33/0x1390 [ 91.792881][ T6589] vfs_get_tree+0x89/0x2f0 [ 91.797289][ T6589] path_mount+0x1320/0x1fa0 [ 91.801778][ T6589] __x64_sys_mount+0x27f/0x300 [ 91.806531][ T6589] do_syscall_64+0x35/0xb0 [ 91.811022][ T6589] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 91.816905][ T6589] [ 91.819208][ T6589] The buggy address belongs to the object at ffff8880213e8800 [ 91.819208][ T6589] which belongs to the cache kmalloc-512 of size 512 [ 91.833337][ T6589] The buggy address is located 320 bytes inside of [ 91.833337][ T6589] 512-byte region [ffff8880213e8800, ffff8880213e8a00) [ 91.846592][ T6589] The buggy address belongs to the page: [ 91.852290][ T6589] page:ffffea000084fa00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x213e8 [ 91.862434][ T6589] flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) [ 91.869970][ T6589] raw: 00fff00000000200 ffffea0001fc3348 ffffea00005ea308 ffff888010c40600 [ 91.878725][ T6589] raw: 0000000000000000 ffff8880213e8000 0000000100000004 0000000000000000 [ 91.887378][ T6589] page dumped because: kasan: bad access detected [ 91.893784][ T6589] page_owner tracks the page as allocated [ 91.899488][ T6589] page last allocated via order 0, migratetype Unmovable, gfp_mask 0x242040(__GFP_IO|__GFP_NOWARN|__GFP_COMP|__GFP_THISNODE), pid 6589, ts 91118144523, free_ts 91107502019 [ 91.916495][ T6589] get_page_from_freelist+0xa72/0x2f40 [ 91.921968][ T6589] __alloc_pages+0x1b2/0x500 [ 91.926545][ T6589] cache_grow_begin+0x75/0x350 [ 91.931299][ T6589] cache_alloc_refill+0x27f/0x380 [ 91.936417][ T6589] __kmalloc+0x3b3/0x4d0 [ 91.940657][ T6589] tomoyo_init_log+0x126e/0x1ee0 [ 91.945848][ T6589] tomoyo_supervisor+0x34d/0xf00 [ 91.950790][ T6589] tomoyo_mount_acl+0x524/0x840 [ 91.955624][ T6589] tomoyo_mount_permission+0x151/0x3f0 [ 91.961070][ T6589] security_sb_mount+0x66/0xc0 [ 91.965822][ T6589] path_mount+0x12f/0x1fa0 [ 91.970223][ T6589] __x64_sys_mount+0x27f/0x300 [ 91.974972][ T6589] do_syscall_64+0x35/0xb0 [ 91.979398][ T6589] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 91.985387][ T6589] page last free stack trace: [ 91.990058][ T6589] free_pcp_prepare+0x414/0xb60 [ 91.994922][ T6589] free_unref_page+0x19/0x690 [ 91.999596][ T6589] slabs_destroy+0x89/0xc0 [ 92.003993][ T6589] ___cache_free+0x489/0x680 [ 92.008575][ T6589] qlist_free_all+0x4e/0x150 [ 92.013147][ T6589] kasan_quarantine_reduce+0x180/0x200 [ 92.018604][ T6589] __kasan_slab_alloc+0x97/0xb0 [ 92.023436][ T6589] kmem_cache_alloc_trace+0x258/0x4a0 [ 92.028876][ T6589] tomoyo_init_log+0x18a/0x1ee0 [ 92.033711][ T6589] tomoyo_supervisor+0x34d/0xf00 [ 92.038643][ T6589] tomoyo_path_permission+0x270/0x3a0 [ 92.044008][ T6589] tomoyo_check_open_permission+0x30f/0x380 [ 92.049904][ T6589] tomoyo_file_open+0xa3/0xd0 [ 92.054653][ T6589] security_file_open+0x45/0xb0 [ 92.059586][ T6589] do_dentry_open+0x353/0x1250 [ 92.064360][ T6589] path_openat+0x1cad/0x2750 [ 92.068951][ T6589] [ 92.071297][ T6589] Memory state around the buggy address: [ 92.077091][ T6589] ffff8880213e8800: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 92.085183][ T6589] ffff8880213e8880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 92.093232][ T6589] >ffff8880213e8900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 92.101279][ T6589] ^ [ 92.107506][ T6589] ffff8880213e8980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb [ 92.115570][ T6589] ffff8880213e8a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 92.123623][ T6589] ================================================================== [ 92.134700][ T6589] Kernel panic - not syncing: panic_on_warn set ... [ 92.141348][ T6589] CPU: 1 PID: 6589 Comm: syz-executor Tainted: G B 5.16.0-rc3-next-20211203-syzkaller #0 [ 92.152471][ T6589] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 [ 92.162617][ T6589] Call Trace: [ 92.165907][ T6589] [ 92.168833][ T6589] dump_stack_lvl+0xcd/0x134 [ 92.173525][ T6589] panic+0x2b0/0x6dd [ 92.177406][ T6589] ? __warn_printk+0xf3/0xf3 [ 92.181976][ T6589] ? preempt_schedule_common+0x59/0xc0 [ 92.187593][ T6589] ? up_write+0x3ac/0x470 [ 92.191907][ T6589] ? preempt_schedule_thunk+0x16/0x18 [ 92.197282][ T6589] ? trace_hardirqs_on+0x38/0x1c0 [ 92.202290][ T6589] ? trace_hardirqs_on+0x51/0x1c0 [ 92.207395][ T6589] ? up_write+0x3ac/0x470 [ 92.211878][ T6589] ? up_write+0x3ac/0x470 [ 92.216187][ T6589] end_report.cold+0x63/0x6f [ 92.220767][ T6589] kasan_report.cold+0x71/0xdf [ 92.225531][ T6589] ? up_write+0x3ac/0x470 [ 92.229851][ T6589] up_write+0x3ac/0x470 [ 92.233987][ T6589] cgroup_setup_root+0x3a6/0xad0 [ 92.238911][ T6589] ? rebind_subsystems+0x10e0/0x10e0 [ 92.244179][ T6589] ? __sanitizer_cov_trace_const_cmp1+0x22/0x80 [ 92.250404][ T6589] cgroup1_get_tree+0xd33/0x1390 [ 92.255346][ T6589] vfs_get_tree+0x89/0x2f0 [ 92.259745][ T6589] path_mount+0x1320/0x1fa0 [ 92.264235][ T6589] ? kmem_cache_free.part.0+0xe1/0x200 [ 92.269677][ T6589] ? finish_automount+0xaf0/0xaf0 [ 92.274766][ T6589] ? lockdep_hardirqs_on+0x79/0x100 [ 92.279962][ T6589] ? putname+0xfe/0x140 [ 92.284099][ T6589] __x64_sys_mount+0x27f/0x300 [ 92.288843][ T6589] ? copy_mnt_ns+0xae0/0xae0 [ 92.293412][ T6589] ? syscall_enter_from_user_mode+0x21/0x70 [ 92.299297][ T6589] do_syscall_64+0x35/0xb0 [ 92.303851][ T6589] entry_SYSCALL_64_after_hwframe+0x44/0xae [ 92.309878][ T6589] RIP: 0033:0x7fb65d6f0f6a [ 92.314289][ T6589] 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 [ 92.334839][ T6589] RSP: 002b:00007ffd44484348 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 [ 92.343254][ T6589] RAX: ffffffffffffffda RBX: 00007ffd444844d8 RCX: 00007fb65d6f0f6a [ 92.351220][ T6589] RDX: 00007fb65d753e6c RSI: 00007fb65d74a1b1 RDI: 00007fb65d748ca1 [ 92.359184][ T6589] RBP: 00007fb65d74a1b1 R08: 00007fb65d74a30e R09: 0000000000000026 [ 92.367142][ T6589] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd44484350 [ 92.375099][ T6589] R13: 00007ffd444844f8 R14: 00007ffd44484420 R15: 00007fb65d74a308 [ 92.383150][ T6589] [ 92.386234][ T6589] Kernel Offset: disabled [ 92.390566][ T6589] Rebooting in 86400 seconds..