================================================================== BUG: KASAN: use-after-free in dbJoin+0x295/0x2b0 fs/jfs/jfs_dmap.c:2807 Read of size 1 at addr ffff88815454f061 by task jfsCommit/110 CPU: 0 UID: 0 PID: 110 Comm: jfsCommit Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:377 [inline] print_report+0xc3/0x620 mm/kasan/report.c:488 kasan_report+0xd9/0x110 mm/kasan/report.c:601 dbJoin+0x295/0x2b0 fs/jfs/jfs_dmap.c:2807 dbFreeBits+0x15c/0x8f0 fs/jfs/jfs_dmap.c:2340 dbFreeDmap+0x62/0x1b0 fs/jfs/jfs_dmap.c:2089 dbFree+0x266/0x550 fs/jfs/jfs_dmap.c:409 txFreeMap+0x788/0xe60 fs/jfs/jfs_txnmgr.c:2515 xtTruncate+0x1e57/0x2c80 fs/jfs/jfs_xtree.c:2467 jfs_free_zero_link+0x372/0x4f0 fs/jfs/namei.c:759 jfs_evict_inode+0x423/0x4b0 fs/jfs/inode.c:153 evict+0x40c/0x970 fs/inode.c:725 iput_final fs/inode.c:1877 [inline] iput fs/inode.c:1903 [inline] iput+0x530/0x890 fs/inode.c:1889 txUpdateMap+0x99d/0xb80 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x5e6/0xb20 fs/jfs/jfs_txnmgr.c:2733 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x15454f flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea00055153c8 ffffea00055153c8 0000000000000000 raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffff88815454ef00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88815454ef80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff88815454f000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff88815454f080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff88815454f100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== ------------[ cut here ]------------ WARNING: CPU: 0 PID: 110 at fs/jfs/jfs_dmap.c:2875 dbAdjTree+0x2d9/0x3d0 fs/jfs/jfs_dmap.c:2875 Modules linked in: CPU: 0 UID: 0 PID: 110 Comm: jfsCommit Tainted: G B 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:dbAdjTree+0x2d9/0x3d0 fs/jfs/jfs_dmap.c:2875 Code: e8 bc 3b 7f fe 0f b6 14 24 38 da 0f 85 a1 fe ff ff 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f e9 7d 3a 7f fe e8 78 3a 7f fe 90 <0f> 0b 90 eb e2 e8 7d e1 df fe e9 52 fe ff ff e8 73 e1 df fe e9 79 RSP: 0018:ffffc9000264f620 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000155 RCX: ffffffff830e4131 RDX: ffff88801ebfda00 RSI: ffffffff830e4378 RDI: 0000000000000005 RBP: ffff88805549f010 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000ff0b0000 R11: 6e696c6261736944 R12: 0000000000000005 R13: 00000000ff0b0000 R14: ffff88805549f010 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffc33ffe28 CR3: 0000000032212000 CR4: 0000000000350ef0 Call Trace: dbJoin+0x24b/0x2b0 fs/jfs/jfs_dmap.c:2843 dbFreeBits+0x15c/0x8f0 fs/jfs/jfs_dmap.c:2340 dbFreeDmap+0x62/0x1b0 fs/jfs/jfs_dmap.c:2089 dbFree+0x266/0x550 fs/jfs/jfs_dmap.c:409 txFreeMap+0x788/0xe60 fs/jfs/jfs_txnmgr.c:2515 xtTruncate+0x1e57/0x2c80 fs/jfs/jfs_xtree.c:2467 jfs_free_zero_link+0x372/0x4f0 fs/jfs/namei.c:759 jfs_evict_inode+0x423/0x4b0 fs/jfs/inode.c:153 evict+0x40c/0x970 fs/inode.c:725 iput_final fs/inode.c:1877 [inline] iput fs/inode.c:1903 [inline] iput+0x530/0x890 fs/inode.c:1889 txUpdateMap+0x99d/0xb80 fs/jfs/jfs_txnmgr.c:2367 txLazyCommit fs/jfs/jfs_txnmgr.c:2664 [inline] jfs_lazycommit+0x5e6/0xb20 fs/jfs/jfs_txnmgr.c:2733 kthread+0x2c4/0x3a0 kernel/kthread.c:389 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244