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! Oops: general protection fault, probably for non-canonical address 0xdffffc0000000104: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000820-0x0000000000000827] CPU: 0 UID: 0 PID: 5113 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:diIAGRead fs/jfs/jfs_imap.c:2665 [inline] RIP: 0010:diRead+0x154/0xbc0 fs/jfs/jfs_imap.c:316 Code: 8d 5d 80 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 0d f9 d3 fe 4c 8b 33 49 8d 9e 20 08 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 ed f8 d3 fe 4c 8b 2b 49 8d 6d 28 RSP: 0018:ffffc9000b517778 EFLAGS: 00010202 RAX: 0000000000000104 RBX: 0000000000000820 RCX: 0000000000000001 RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffff888041672910 R08: ffff8880416725b7 R09: 1ffff110082ce4b6 R10: dffffc0000000000 R11: ffffed10082ce4b7 R12: 0000000000000004 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880416725a8 FS: 00007f8b7f3d96c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f0abb73000 CR3: 000000003e718000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: jfs_iget+0x86/0x3e0 fs/jfs/inode.c:35 jfs_lookup+0x226/0x410 fs/jfs/namei.c:1469 __lookup_slow+0x28c/0x3f0 fs/namei.c:1732 lookup_slow+0x53/0x70 fs/namei.c:1749 walk_component+0x2e1/0x410 fs/namei.c:2053 lookup_last fs/namei.c:2556 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2580 filename_lookup+0x256/0x610 fs/namei.c:2609 user_path_at+0x3a/0x60 fs/namei.c:3016 do_sys_truncate+0xa4/0x190 fs/open.c:132 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:0x7f8b7e57dff9 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:00007f8b7f3d9038 EFLAGS: 00000246 ORIG_RAX: 000000000000004c RAX: ffffffffffffffda RBX: 00007f8b7e735f80 RCX: 00007f8b7e57dff9 RDX: 0000000000000000 RSI: 00000000000000ec RDI: 0000000020000200 RBP: 00007f8b7e5f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8b7e735f80 R15: 00007ffddf595b48 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:diIAGRead fs/jfs/jfs_imap.c:2665 [inline] RIP: 0010:diRead+0x154/0xbc0 fs/jfs/jfs_imap.c:316 Code: 8d 5d 80 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 0d f9 d3 fe 4c 8b 33 49 8d 9e 20 08 00 00 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 ed f8 d3 fe 4c 8b 2b 49 8d 6d 28 RSP: 0018:ffffc9000b517778 EFLAGS: 00010202 RAX: 0000000000000104 RBX: 0000000000000820 RCX: 0000000000000001 RDX: 0000000000000001 RSI: 0000000000000008 RDI: 0000000000000001 RBP: ffff888041672910 R08: ffff8880416725b7 R09: 1ffff110082ce4b6 R10: dffffc0000000000 R11: ffffed10082ce4b7 R12: 0000000000000004 R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8880416725a8 FS: 00007f8b7f3d96c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055f0abb73000 CR3: 000000003e718000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 8d 5d 80 lea -0x80(%rbp),%ebx 3: 48 89 d8 mov %rbx,%rax 6: 48 c1 e8 03 shr $0x3,%rax a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) f: 74 08 je 0x19 11: 48 89 df mov %rbx,%rdi 14: e8 0d f9 d3 fe call 0xfed3f926 19: 4c 8b 33 mov (%rbx),%r14 1c: 49 8d 9e 20 08 00 00 lea 0x820(%r14),%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 ed f8 d3 fe call 0xfed3f926 39: 4c 8b 2b mov (%rbx),%r13 3c: 49 8d 6d 28 lea 0x28(%r13),%rbp