metapage_write_end_io: I/O error ERROR: (device loop0): release_metapage: metapage_write_one() failed ERROR: (device loop0): remounting filesystem as read-only Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 UID: 0 PID: 5367 Comm: syz.0.0 Not tainted 6.16.0-syzkaller-11895-gcca7a0aae895 #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:metapage_write_folio+0xa8/0xca0 fs/jfs/jfs_metapage.c:428 Code: e8 bd cb 7d fe 4d 8d 74 24 18 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 d2 b4 e2 fe 4d 8b 36 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 b9 b4 e2 fe 49 8b 1e 4d 8d 74 24 RSP: 0018:ffffc9000d217320 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 1ffffd4000001da6 RCX: 0000000000100000 RDX: ffffc9000edb4000 RSI: 0000000000002447 RDI: 0000000000002448 RBP: ffffc9000d217430 R08: ffffea000000ed37 R09: 1ffffd4000001da6 R10: dffffc0000000000 R11: fffff94000001da7 R12: ffffea000000ed00 R13: 0000000000000082 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f7db15626c0(0000) GS:ffff88808d218000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000016000 CR3: 000000003f74f000 CR4: 0000000000352ef0 Call Trace: metapage_write_one+0x24c/0x450 fs/jfs/jfs_metapage.c:818 force_metapage+0x1a7/0x360 fs/jfs/jfs_metapage.c:840 txForce fs/jfs/jfs_txnmgr.c:2215 [inline] txCommit+0x4c05/0x5430 fs/jfs/jfs_txnmgr.c:1315 diNewIAG fs/jfs/jfs_imap.c:2592 [inline] diAllocExt fs/jfs/jfs_imap.c:1905 [inline] diAllocAG+0x1770/0x1df0 fs/jfs/jfs_imap.c:1669 diAlloc+0x1d5/0x1680 fs/jfs/jfs_imap.c:1590 ialloc+0x8c/0x8f0 fs/jfs/jfs_inode.c:56 jfs_mkdir+0x193/0xa70 fs/jfs/namei.c:225 vfs_mkdir+0x303/0x510 fs/namei.c:4366 do_mkdirat+0x247/0x590 fs/namei.c:4399 __do_sys_mkdirat fs/namei.c:4416 [inline] __se_sys_mkdirat fs/namei.c:4414 [inline] __x64_sys_mkdirat+0x87/0xa0 fs/namei.c:4414 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0x3b0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f7db078ebe9 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:00007f7db1562038 EFLAGS: 00000246 ORIG_RAX: 0000000000000102 RAX: ffffffffffffffda RBX: 00007f7db09b6180 RCX: 00007f7db078ebe9 RDX: 0000000000000089 RSI: 0000200000000280 RDI: ffffffffffffff9c RBP: 00007f7db0811e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f7db09b6218 R14: 00007f7db09b6180 R15: 00007ffddf49e5c8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:metapage_write_folio+0xa8/0xca0 fs/jfs/jfs_metapage.c:428 Code: e8 bd cb 7d fe 4d 8d 74 24 18 4c 89 f0 48 c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 d2 b4 e2 fe 4d 8b 36 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 b9 b4 e2 fe 49 8b 1e 4d 8d 74 24 RSP: 0018:ffffc9000d217320 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 1ffffd4000001da6 RCX: 0000000000100000 RDX: ffffc9000edb4000 RSI: 0000000000002447 RDI: 0000000000002448 RBP: ffffc9000d217430 R08: ffffea000000ed37 R09: 1ffffd4000001da6 R10: dffffc0000000000 R11: fffff94000001da7 R12: ffffea000000ed00 R13: 0000000000000082 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f7db15626c0(0000) GS:ffff88808d218000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000200000020000 CR3: 000000003f74f000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: e8 bd cb 7d fe call 0xfe7dcbc2 5: 4d 8d 74 24 18 lea 0x18(%r12),%r14 a: 4c 89 f0 mov %r14,%rax d: 48 c1 e8 03 shr $0x3,%rax 11: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 16: 74 08 je 0x20 18: 4c 89 f7 mov %r14,%rdi 1b: e8 d2 b4 e2 fe call 0xfee2b4f2 20: 4d 8b 36 mov (%r14),%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 b9 b4 e2 fe call 0xfee2b4f2 39: 49 8b 1e mov (%r14),%rbx 3c: 4d rex.WRB 3d: 8d .byte 0x8d 3e: 74 24 je 0x64