================================================================== BUG: KASAN: use-after-free in rt_spin_lock+0x83/0x400 kernel/locking/spinlock_rt.c:56 Read of size 1 at addr ffff8880378be2c0 by task jffs2_gcd_mtd0/6337 CPU: 1 UID: 0 PID: 6337 Comm: jffs2_gcd_mtd0 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_address_description+0x55/0x1e0 mm/kasan/report.c:378 print_report+0x58/0x70 mm/kasan/report.c:482 kasan_report+0x117/0x150 mm/kasan/report.c:595 __kasan_check_byte+0x2a/0x40 mm/kasan/common.c:585 kasan_check_byte include/linux/kasan.h:402 [inline] lock_acquire+0x7d/0x350 kernel/locking/lockdep.c:5916 rt_spin_lock+0x83/0x400 kernel/locking/spinlock_rt.c:56 spin_lock include/linux/spinlock_rt.h:45 [inline] jffs2_garbage_collect_thread+0x6c7/0x720 fs/jffs2/background.c:161 kthread+0x38b/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x378be flags: 0x80000000000000(node=0|zone=1) raw: 0080000000000000 0000000000000000 ffffea0000de2f88 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as freed page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 14582, tgid 14582 (sh), ts 811896708510 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x2591/0x2600 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x230/0x5c0 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab+0x7d/0x620 mm/slub.c:3462 new_slab mm/slub.c:3513 [inline] refill_objects+0x2d8/0x350 mm/slub.c:7418 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x339/0x690 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __kmalloc_cache_noprof+0x46a/0x670 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] tomoyo_print_bprm security/tomoyo/audit.c:26 [inline] tomoyo_init_log+0x10f0/0x1f60 security/tomoyo/audit.c:262 tomoyo_supervisor+0x35f/0x1550 security/tomoyo/common.c:2232 tomoyo_find_next_domain+0x486/0x1a90 security/tomoyo/domain.c:763 tomoyo_bprm_check_security+0x11c/0x180 security/tomoyo/tomoyo.c:102 security_bprm_check+0x85/0x240 security/security.c:834 search_binary_handler fs/exec.c:1764 [inline] exec_binprm fs/exec.c:1806 [inline] bprm_execve+0x881/0x1590 fs/exec.c:1862 do_execveat_common+0x99f/0xbd0 fs/exec.c:1960 __do_sys_execve fs/exec.c:2033 [inline] __se_sys_execve fs/exec.c:2027 [inline] __x64_sys_execve+0x97/0xc0 fs/exec.c:2027 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 page last free pid 5579 tgid 5579 ts 822783423746 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0xf8e/0x1070 mm/page_alloc.c:2962 __slab_free+0x250/0x2a0 mm/slub.c:5823 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:361 kasan_slab_alloc include/linux/kasan.h:253 [inline] slab_post_alloc_hook mm/slub.c:4683 [inline] slab_alloc_node mm/slub.c:4996 [inline] __kmalloc_cache_noprof+0x34e/0x670 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] poll_get_entry fs/select.c:168 [inline] __pollwait+0x27f/0x430 fs/select.c:223 poll_wait include/linux/poll.h:45 [inline] pipe_poll+0x186/0x5a0 fs/pipe.c:759 vfs_poll include/linux/poll.h:82 [inline] select_poll_one fs/select.c:480 [inline] do_select+0x1016/0x1630 fs/select.c:536 core_sys_select+0x86f/0xb40 fs/select.c:677 do_pselect fs/select.c:770 [inline] __do_sys_pselect6 fs/select.c:809 [inline] __se_sys_pselect6+0x267/0x320 fs/select.c:800 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f Memory state around the buggy address: ffff8880378be180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880378be200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8880378be280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8880378be300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8880378be380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ==================================================================