================================================================== BUG: KASAN: use-after-free in dbJoin+0x295/0x2b0 fs/jfs/jfs_dmap.c:2894 Read of size 1 at addr ffff8881709af061 by task jfsCommit/122 Read of size 1 at addr ffff8881709af061 by task jfsCommit/122 CPU: 1 UID: 0 PID: 122 Comm: jfsCommit Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 dbJoin+0x295/0x2b0 fs/jfs/jfs_dmap.c:2894 dbFreeBits+0x170/0x8d0 fs/jfs/jfs_dmap.c:2427 dbFreeDmap+0x62/0x1c0 fs/jfs/jfs_dmap.c:2176 dbFree+0x266/0x550 fs/jfs/jfs_dmap.c:485 txFreeMap+0x2d3/0xe10 fs/jfs/jfs_txnmgr.c:2517 xtTruncate+0x24fe/0x2e20 fs/jfs/jfs_xtree.c:2481 jfs_free_zero_link+0x262/0x4c0 fs/jfs/namei.c:760 jfs_evict_inode+0x40a/0x4a0 fs/jfs/inode.c:159 evict+0x3c2/0xad0 fs/inode.c:822 iput_final fs/inode.c:2014 [inline] iput.part.0+0x989/0x1050 fs/inode.c:2063 iput+0x30/0x40 fs/inode.c:2029 txUpdateMap+0x8bc/0xb00 fs/jfs/jfs_txnmgr.c:2369 txLazyCommit fs/jfs/jfs_txnmgr.c:2666 [inline] jfs_lazycommit+0x5be/0xab0 fs/jfs/jfs_txnmgr.c:2735 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 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:0x1709af flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea0005c26bc8 ffffea0005c26bc8 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: ffff8881709aef00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881709aef80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881709af000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881709af080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881709af100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== dmapctl: invalid nleafs 4294967295 (max 1024) ERROR: (device loop0): dbAdjCtl: Corrupt dmapctl page ================================================================== BUG: KASAN: use-after-free in dbBackSplit+0x421/0x460 fs/jfs/jfs_dmap.c:2787 Read of size 1 at addr ffff8881709af021 by task jfsCommit/122 CPU: 0 UID: 0 PID: 122 Comm: jfsCommit Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 dbBackSplit+0x421/0x460 fs/jfs/jfs_dmap.c:2787 dbFreeDmap+0x18c/0x1c0 fs/jfs/jfs_dmap.c:2195 dbFree+0x266/0x550 fs/jfs/jfs_dmap.c:485 txFreeMap+0x2d3/0xe10 fs/jfs/jfs_txnmgr.c:2517 xtTruncate+0x24fe/0x2e20 fs/jfs/jfs_xtree.c:2481 jfs_free_zero_link+0x262/0x4c0 fs/jfs/namei.c:760 jfs_evict_inode+0x40a/0x4a0 fs/jfs/inode.c:159 evict+0x3c2/0xad0 fs/inode.c:822 iput_final fs/inode.c:2014 [inline] iput.part.0+0x989/0x1050 fs/inode.c:2063 iput+0x30/0x40 fs/inode.c:2029 txUpdateMap+0x8bc/0xb00 fs/jfs/jfs_txnmgr.c:2369 txLazyCommit fs/jfs/jfs_txnmgr.c:2666 [inline] jfs_lazycommit+0x5be/0xab0 fs/jfs/jfs_txnmgr.c:2735 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 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:0x1709af flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff) raw: 057ff00000000000 ffffea0005c26bc8 ffffea0005c26bc8 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: ffff8881709aef00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881709aef80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff >ffff8881709af000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ^ ffff8881709af080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ffff8881709af100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ================================================================== BUG at fs/jfs/jfs_dmap.c:2787 assert(leaf[leafno] == NOFREE) ------------[ cut here ]------------ kernel BUG at fs/jfs/jfs_dmap.c:2787! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 0 UID: 0 PID: 122 Comm: jfsCommit Tainted: G B syzkaller #0 PREEMPT(full) Tainted: [B]=BAD_PAGE Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/15/2026 RIP: 0010:dbBackSplit.cold+0xbd/0xcb fs/jfs/jfs_dmap.c:2787 Code: e9 ff e1 92 02 e8 ca 4c e2 00 48 c7 c1 a0 73 5a 8c ba e3 0a 00 00 48 c7 c6 e0 6e 5a 8c 48 c7 c7 a0 72 5a 8c e8 eb ca f6 ff 90 <0f> 0b 48 8b 7c 24 08 e8 de 67 5a 01 eb 9f e8 97 4c e2 00 48 0f be RSP: 0018:ffffc90002daf620 EFLAGS: 00010282 RAX: 000000000000003c RBX: 0000000000000000 RCX: 0000000000000000 RDX: 000000000000003c RSI: ffffffff81ebc219 RDI: fffff520005b5eb5 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000002b R13: ffff88802aeda000 R14: ffff8881709af020 R15: 00000000000000ff FS: 0000000000000000(0000) GS:ffff8881224b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd4326a43fc CR3: 0000000014316000 CR4: 0000000000350ef0 Call Trace: dbFreeDmap+0x18c/0x1c0 fs/jfs/jfs_dmap.c:2195 dbFree+0x266/0x550 fs/jfs/jfs_dmap.c:485 txFreeMap+0x2d3/0xe10 fs/jfs/jfs_txnmgr.c:2517 xtTruncate+0x24fe/0x2e20 fs/jfs/jfs_xtree.c:2481 jfs_free_zero_link+0x262/0x4c0 fs/jfs/namei.c:760 jfs_evict_inode+0x40a/0x4a0 fs/jfs/inode.c:159 evict+0x3c2/0xad0 fs/inode.c:822 iput_final fs/inode.c:2014 [inline] iput.part.0+0x989/0x1050 fs/inode.c:2063 iput+0x30/0x40 fs/inode.c:2029 txUpdateMap+0x8bc/0xb00 fs/jfs/jfs_txnmgr.c:2369 txLazyCommit fs/jfs/jfs_txnmgr.c:2666 [inline] jfs_lazycommit+0x5be/0xab0 fs/jfs/jfs_txnmgr.c:2735 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:dbBackSplit.cold+0xbd/0xcb fs/jfs/jfs_dmap.c:2787 Code: e9 ff e1 92 02 e8 ca 4c e2 00 48 c7 c1 a0 73 5a 8c ba e3 0a 00 00 48 c7 c6 e0 6e 5a 8c 48 c7 c7 a0 72 5a 8c e8 eb ca f6 ff 90 <0f> 0b 48 8b 7c 24 08 e8 de 67 5a 01 eb 9f e8 97 4c e2 00 48 0f be RSP: 0018:ffffc90002daf620 EFLAGS: 00010282 RAX: 000000000000003c RBX: 0000000000000000 RCX: 0000000000000000 RDX: 000000000000003c RSI: ffffffff81ebc219 RDI: fffff520005b5eb5 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 000000000000002b R13: ffff88802aeda000 R14: ffff8881709af020 R15: 00000000000000ff FS: 0000000000000000(0000) GS:ffff8881224b8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd4326a43fc CR3: 0000000014316000 CR4: 0000000000350ef0