loop0: detected capacity change from 0 to 32768 loop0: detected capacity change from 32768 to 0 syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=232, nr_sectors = 8 limit=0 Read error 10 at 0x1d000 read_mapping_page failed! ERROR: (device loop0): txCommit: syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=64, nr_sectors = 8 limit=0 Buffer I/O error on dev loop0, logical block 8, lost sync page write ERROR: (device loop0): remounting filesystem as read-only syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=64, nr_sectors = 8 limit=0 syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=256, nr_sectors = 8 limit=0 Read error 10 at 0x0 read_mapping_page failed! jfs_mount_rw: diMount failed! syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=272, nr_sectors = 8 limit=0 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 0 UID: 0 PID: 5110 Comm: syz.0.0 Not tainted 6.12.0-rc3-syzkaller-00420-g715ca9dd687f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:diWrite+0x159/0x19b0 fs/jfs/jfs_imap.c:609 Code: 08 00 74 08 48 89 df e8 55 c8 d3 fe 81 e5 ff ff ff 00 48 8b 1b 48 83 c3 10 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 7d 13 00 00 8b 1b 89 ef 89 de e8 50 05 6a RSP: 0018:ffffc9000b30f7d8 EFLAGS: 00010202 RAX: 0000000000000002 RBX: 0000000000000010 RCX: dffffc0000000000 RDX: ffffc9000b969000 RSI: 000000000000001c RDI: 0000000000000000 RBP: 0000000000000004 R08: ffffffff832ae40f R09: 1ffff110082e06f5 R10: dffffc0000000000 R11: ffffed10082e06f6 R12: ffff88804097c000 R13: dffffc0000000000 R14: ffff888041702910 R15: 000000000000001c FS: 00007ffaf03e26c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffda26c1b88 CR3: 00000000412c8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: txCommit+0xa1a/0x6b90 fs/jfs/jfs_txnmgr.c:1255 jfs_truncate_nolock+0x250/0x390 fs/jfs/inode.c:399 jfs_truncate+0xcb/0x140 fs/jfs/inode.c:412 jfs_setattr+0x526/0x780 fs/jfs/file.c:119 notify_change+0xbca/0xe90 fs/attr.c:503 do_truncate+0x220/0x310 fs/open.c:65 vfs_truncate+0x2e1/0x3b0 fs/open.c:111 do_sys_truncate+0xdb/0x190 fs/open.c:134 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:0x7ffaef57dff9 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:00007ffaf03e2038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007ffaef735f80 RCX: 00007ffaef57dff9 RDX: 0000000000000000 RSI: 00000000000000ec RDI: 0000000020000200 RBP: 00007ffaef5f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffaef735f80 R15: 00007ffcb5eb08e8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:diWrite+0x159/0x19b0 fs/jfs/jfs_imap.c:609 Code: 08 00 74 08 48 89 df e8 55 c8 d3 fe 81 e5 ff ff ff 00 48 8b 1b 48 83 c3 10 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <0f> b6 04 08 84 c0 0f 85 7d 13 00 00 8b 1b 89 ef 89 de e8 50 05 6a RSP: 0018:ffffc9000b30f7d8 EFLAGS: 00010202 RAX: 0000000000000002 RBX: 0000000000000010 RCX: dffffc0000000000 RDX: ffffc9000b969000 RSI: 000000000000001c RDI: 0000000000000000 RBP: 0000000000000004 R08: ffffffff832ae40f R09: 1ffff110082e06f5 R10: dffffc0000000000 R11: ffffed10082e06f6 R12: ffff88804097c000 R13: dffffc0000000000 R14: ffff888041702910 R15: 000000000000001c FS: 00007ffaf03e26c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffda26c1b88 CR3: 00000000412c8000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 08 00 or %al,(%rax) 2: 74 08 je 0xc 4: 48 89 df mov %rbx,%rdi 7: e8 55 c8 d3 fe call 0xfed3c861 c: 81 e5 ff ff ff 00 and $0xffffff,%ebp 12: 48 8b 1b mov (%rbx),%rbx 15: 48 83 c3 10 add $0x10,%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 0f b6 04 08 movzbl (%rax,%rcx,1),%eax <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 7d 13 00 00 jne 0x13b3 36: 8b 1b mov (%rbx),%ebx 38: 89 ef mov %ebp,%edi 3a: 89 de mov %ebx,%esi 3c: e8 .byte 0xe8 3d: 50 push %rax 3e: 05 .byte 0x5 3f: 6a .byte 0x6a