syz-executor288: attempt to access beyond end of device loop0: rw=1, sector=4680032, nr_sectors = 8 limit=32768 metapage_write_end_io: I/O error ERROR: (device loop0): release_metapage: metapage_write_one() failed ERROR: (device loop0): remounting filesystem as read-only blkno = 8ed2c, nblocks = 1 ERROR: (device loop0): dbUpdatePMap: blocks are outside the map Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 UID: 0 PID: 5828 Comm: syz-executor288 Not tainted 6.13.0-syzkaller-09793-g69b8923f5003 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024 RIP: 0010:metapage_write_folio+0xab/0xf20 fs/jfs/jfs_metapage.c:346 Code: 5f 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 17 bd d2 fe 4c 8d b4 24 b0 00 00 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 f6 bc d2 fe 48 8b 03 48 89 44 24 RSP: 0018:ffffc90003f471a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88807c383c00 RDX: 0000000000000000 RSI: ffffc90003f47300 RDI: ffffea0000d43280 RBP: ffffc90003f472b0 R08: ffffea0000d432b7 R09: 1ffffd40001a8656 R10: dffffc0000000000 R11: fffff940001a8657 R12: 1ffff920007e8e40 R13: dffffc0000000000 R14: ffffc90003f47250 R15: ffffea0000d43280 FS: 00007f0b6b16b6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0b63bff000 CR3: 0000000027e0e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: metapage_write_one+0x292/0x4b0 fs/jfs/jfs_metapage.c:710 force_metapage+0x1ae/0x370 fs/jfs/jfs_metapage.c:732 txForce fs/jfs/jfs_txnmgr.c:2215 [inline] txCommit+0x6250/0x6b90 fs/jfs/jfs_txnmgr.c:1315 duplicateIXtree+0x33f/0x550 fs/jfs/jfs_imap.c:3019 diNewIAG fs/jfs/jfs_imap.c:2597 [inline] diAllocExt fs/jfs/jfs_imap.c:1905 [inline] diAllocAG+0x17dc/0x1e50 fs/jfs/jfs_imap.c:1669 diAlloc+0x1d2/0x1630 fs/jfs/jfs_imap.c:1590 ialloc+0x8f/0x900 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x1c5/0xba0 fs/jfs/namei.c:225 vfs_mkdir+0x2f9/0x4f0 fs/namei.c:4313 do_mkdirat+0x264/0x3a0 fs/namei.c:4336 __do_sys_mkdir fs/namei.c:4356 [inline] __se_sys_mkdir fs/namei.c:4354 [inline] __x64_sys_mkdir+0x6c/0x80 fs/namei.c:4354 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f0b6b1b4b19 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0b6b16b218 EFLAGS: 00000246 ORIG_RAX: 0000000000000053 RAX: ffffffffffffffda RBX: 00007f0b6b2426c8 RCX: 00007f0b6b1b4b19 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 00000000200003c0 RBP: 00007f0b6b2426c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0b6b20f194 R13: 00007f0b6b20f090 R14: 00007f0b6b2090c0 R15: 0031656c69662f2e Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:metapage_write_folio+0xab/0xf20 fs/jfs/jfs_metapage.c:346 Code: 5f 18 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 17 bd d2 fe 4c 8d b4 24 b0 00 00 00 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 f6 bc d2 fe 48 8b 03 48 89 44 24 RSP: 0018:ffffc90003f471a0 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88807c383c00 RDX: 0000000000000000 RSI: ffffc90003f47300 RDI: ffffea0000d43280 RBP: ffffc90003f472b0 R08: ffffea0000d432b7 R09: 1ffffd40001a8656 R10: dffffc0000000000 R11: fffff940001a8657 R12: 1ffff920007e8e40 R13: dffffc0000000000 R14: ffffc90003f47250 R15: ffffea0000d43280 FS: 00007f0b6b16b6c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0b6b208618 CR3: 0000000027e0e000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 5f pop %rdi 1: 18 48 89 sbb %cl,-0x77(%rax) 4: d8 48 c1 fmuls -0x3f(%rax) 7: e8 03 42 80 3c call 0x3c80420f c: 28 00 sub %al,(%rax) e: 74 08 je 0x18 10: 48 89 df mov %rbx,%rdi 13: e8 17 bd d2 fe call 0xfed2bd2f 18: 4c 8d b4 24 b0 00 00 lea 0xb0(%rsp),%r14 1f: 00 20: 48 8b 1b mov (%rbx),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 f6 bc d2 fe call 0xfed2bd2f 39: 48 8b 03 mov (%rbx),%rax 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 44 rex.R 3f: 24 .byte 0x24