==================================================================
BUG: KASAN: use-after-free in dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline]
BUG: KASAN: use-after-free in dtSplitPage+0x1aba/0x31d0 fs/jfs/jfs_dtree.c:1561
Write of size 1 at addr ffff888045b31000 by task syz.0.1539/10710

CPU: 1 PID: 10710 Comm: syz.0.1539 Not tainted 6.1.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/19/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106
 print_address_description mm/kasan/report.c:316 [inline]
 print_report+0xa8/0x220 mm/kasan/report.c:427
 kasan_report+0x10b/0x140 mm/kasan/report.c:531
 dtMoveEntry fs/jfs/jfs_dtree.c:3922 [inline]
 dtSplitPage+0x1aba/0x31d0 fs/jfs/jfs_dtree.c:1561
 dtSplitUp fs/jfs/jfs_dtree.c:1092 [inline]
 dtInsert+0xfbd/0x58a0 fs/jfs/jfs_dtree.c:871
 jfs_create+0x69d/0xa50 fs/jfs/namei.c:137
 lookup_open fs/namei.c:3482 [inline]
 open_last_lookups fs/namei.c:3550 [inline]
 path_openat+0x1187/0x2e70 fs/namei.c:3780
 do_filp_open+0x1c1/0x3c0 fs/namei.c:3810
 do_sys_openat2+0x142/0x490 fs/open.c:1318
 do_sys_open fs/open.c:1334 [inline]
 __do_sys_creat fs/open.c:1412 [inline]
 __se_sys_creat fs/open.c:1406 [inline]
 __x64_sys_creat+0x8c/0xb0 fs/open.c:1406
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0b3b58e969
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0b3c360038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055
RAX: ffffffffffffffda RBX: 00007f0b3b7b6080 RCX: 00007f0b3b58e969
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000006c0
RBP: 00007f0b3b610ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0b3b7b6080 R15: 00007fff69f90c38
 </TASK>

The buggy address belongs to the physical page:
page:ffffea000116cc40 refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x45b31
flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000000 ffffea000116cc88 ffff8880b8f41210 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 9, migratetype Unmovable, gfp_mask 0x542dc0(GFP_USER|__GFP_NOWARN|__GFP_COMP|__GFP_ZERO|__GFP_ACCOUNT), pid 10380, tgid 10378 (syz.5.1456), ts 439591040746, free_ts 439783402821
 set_page_owner include/linux/page_owner.h:31 [inline]
 post_alloc_hook+0x173/0x1a0 mm/page_alloc.c:2532
 prep_new_page mm/page_alloc.c:2539 [inline]
 get_page_from_freelist+0x1a26/0x1ac0 mm/page_alloc.c:4328
 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5606
 io_mem_alloc_compound io_uring/io_uring.c:2567 [inline]
 io_pages_map+0xd8/0x4d0 io_uring/io_uring.c:2611
 io_allocate_scq_urings+0xeb/0x446 io_uring/io_uring.c:3550
 io_uring_create+0x56b/0xd5a io_uring/io_uring.c:3710
 io_uring_setup io_uring/io_uring.c:3808 [inline]
 __do_sys_io_uring_setup io_uring/io_uring.c:3814 [inline]
 __se_sys_io_uring_setup io_uring/io_uring.c:3811 [inline]
 __x64_sys_io_uring_setup+0x1be/0x1d0 io_uring/io_uring.c:3811
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
page last free stack trace:
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1459 [inline]
 free_pcp_prepare mm/page_alloc.c:1509 [inline]
 free_unref_page_prepare+0x8b4/0x9a0 mm/page_alloc.c:3384
 free_unref_page+0x2e/0x3f0 mm/page_alloc.c:3479
 io_pages_unmap+0x1b4/0x2e0 io_uring/io_uring.c:2538
 io_rings_free+0x4e/0xd0 io_uring/io_uring.c:2549
 io_ring_ctx_free+0x753/0x996 io_uring/io_uring.c:2779
 io_ring_exit_work+0x6bc/0x704 io_uring/io_uring.c:2953
 process_one_work+0x898/0x1160 kernel/workqueue.c:2292
 worker_thread+0xaa2/0x1250 kernel/workqueue.c:2439
 kthread+0x29d/0x330 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Memory state around the buggy address:
 ffff888045b30f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888045b30f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888045b31000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                   ^
 ffff888045b31080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff888045b31100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================