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=1, sector=128, nr_sectors = 8 limit=0 metapage_write_end_io: I/O error syz.0.0: attempt to access beyond end of device loop0: rw=1, sector=256, nr_sectors = 8 limit=0 metapage_write_end_io: I/O error syz.0.0: attempt to access beyond end of device loop0: rw=1, sector=88, nr_sectors = 8 limit=0 metapage_write_end_io: I/O error syz.0.0: attempt to access beyond end of device loop0: rw=1, sector=104, nr_sectors = 8 limit=0 metapage_write_end_io: I/O error 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=120, nr_sectors = 8 limit=0 syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=30744, nr_sectors = 8 limit=0 lbmIODone: I/O error in JFS log syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=30728, nr_sectors = 8 limit=0 lbmIODone: I/O error in JFS log syz.0.0: attempt to access beyond end of device loop0: rw=2049, sector=30728, nr_sectors = 8 limit=0 lbmIODone: I/O error in JFS log lmLogShutdown: exit(-5) ERROR: (device loop0): txBegin: read-only filesystem syz.0.0: attempt to access beyond end of device loop0: rw=0, sector=64, nr_sectors = 8 limit=0 ERROR: (device loop0): remounting filesystem as read-only Read error 10 at 0x4000 read_mapping_page failed! jfs_create: dtInsert returned -EIO ERROR: (device (efault)): jfs_create: Oops: general protection fault, probably for non-canonical address 0xdffffc000000000a: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000050-0x0000000000000057] CPU: 0 UID: 0 PID: 5330 Comm: syz.0.0 Not tainted 6.12.0-rc7-syzkaller-00125-gcfaaa7d010d1 #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:sb_rdonly include/linux/fs.h:2292 [inline] RIP: 0010:jfs_handle_error fs/jfs/super.c:66 [inline] RIP: 0010:jfs_error+0x159/0x2e0 fs/jfs/super.c:98 Code: 08 48 c7 c7 00 ea 42 8c 48 89 74 24 08 4c 89 f9 e8 bc 60 9c 08 4d 8d 65 50 4d 89 e7 49 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 07 00 74 08 4c 89 e7 e8 a8 5e d6 fe 49 8b 1c 24 48 89 de RSP: 0018:ffffc9000cfbf5c0 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 75967f59c617c300 RDX: ffffc9000d41a000 RSI: 0000000000003fcf RDI: 0000000000003fd0 RBP: ffffc9000cfbf6d0 R08: ffffffff8174b13c R09: 1ffff11003f8519a R10: dffffc0000000000 R11: ffffed1003f8519b R12: 0000000000000050 R13: 0000000000000000 R14: 1ffff920019f7ec0 R15: 000000000000000a FS: 00007fe220ffe6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe2173ff000 CR3: 00000000433d6000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: jfs_create+0x81d/0xbb0 fs/jfs/namei.c:140 lookup_open fs/namei.c:3595 [inline] open_last_lookups fs/namei.c:3694 [inline] path_openat+0x1c03/0x3590 fs/namei.c:3930 do_filp_open+0x235/0x490 fs/namei.c:3960 do_sys_openat2+0x13e/0x1d0 fs/open.c:1415 do_sys_open fs/open.c:1430 [inline] __do_sys_creat fs/open.c:1508 [inline] __se_sys_creat fs/open.c:1502 [inline] __x64_sys_creat+0x123/0x170 fs/open.c:1502 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:0x7fe22157e719 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:00007fe220ffe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007fe221735f80 RCX: 00007fe22157e719 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000580 RBP: 00007fe2215f175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe221735f80 R15: 00007ffe5723edd8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:sb_rdonly include/linux/fs.h:2292 [inline] RIP: 0010:jfs_handle_error fs/jfs/super.c:66 [inline] RIP: 0010:jfs_error+0x159/0x2e0 fs/jfs/super.c:98 Code: 08 48 c7 c7 00 ea 42 8c 48 89 74 24 08 4c 89 f9 e8 bc 60 9c 08 4d 8d 65 50 4d 89 e7 49 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <41> 80 3c 07 00 74 08 4c 89 e7 e8 a8 5e d6 fe 49 8b 1c 24 48 89 de RSP: 0018:ffffc9000cfbf5c0 EFLAGS: 00010206 RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 75967f59c617c300 RDX: ffffc9000d41a000 RSI: 0000000000003fcf RDI: 0000000000003fd0 RBP: ffffc9000cfbf6d0 R08: ffffffff8174b13c R09: 1ffff11003f8519a R10: dffffc0000000000 R11: ffffed1003f8519b R12: 0000000000000050 R13: 0000000000000000 R14: 1ffff920019f7ec0 R15: 000000000000000a FS: 00007fe220ffe6c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe220fdcf98 CR3: 00000000433d6000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 08 48 c7 or %cl,-0x39(%rax) 3: c7 00 ea 42 8c 48 movl $0x488c42ea,(%rax) 9: 89 74 24 08 mov %esi,0x8(%rsp) d: 4c 89 f9 mov %r15,%rcx 10: e8 bc 60 9c 08 call 0x89c60d1 15: 4d 8d 65 50 lea 0x50(%r13),%r12 19: 4d 89 e7 mov %r12,%r15 1c: 49 c1 ef 03 shr $0x3,%r15 20: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 27: fc ff df * 2a: 41 80 3c 07 00 cmpb $0x0,(%r15,%rax,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 e7 mov %r12,%rdi 34: e8 a8 5e d6 fe call 0xfed65ee1 39: 49 8b 1c 24 mov (%r12),%rbx 3d: 48 89 de mov %rbx,%rsi