EXT4-fs error (device loop0): ext4_orphan_get:1405: comm syz.0.1931: couldn't read orphan inode 12 (err -117) EXT4-fs (loop0): Remounting filesystem read-only EXT4-fs (loop0): mounted filesystem without journal. Quota mode: writeback. general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f] CPU: 1 PID: 7613 Comm: syz.0.1931 Not tainted 6.1.129-syzkaller-00014-gbc3d1d352ab6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 RIP: 0010:__ext4_journal_get_write_access+0xb0/0x690 fs/ext4/ext4_jbd2.c:231 Code: 88 ff 49 8d 5e 30 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 7e 0d d0 ff 48 8b 1b 48 83 c3 38 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 61 0d d0 ff 4c 8b 23 4d 85 e4 4c RSP: 0018:ffffc9000767f6e0 EFLAGS: 00010202 RAX: 0000000000000007 RBX: 0000000000000038 RCX: 0000000000080000 RDX: ffffc900077a2000 RSI: 000000000000d5f7 RDI: 000000000000d5f8 RBP: ffffc9000767f7b0 R08: ffff888133938888 R09: 0000000000000001 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff888133938888 R15: 0000000000000001 FS: 00007fc9440646c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f129a5b7bac CR3: 000000012e224000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_update_primary_sb fs/ext4/ioctl.c:67 [inline] ext4_update_superblocks_fn+0x2dc/0x1300 fs/ext4/ioctl.c:221 ext4_update_overhead+0x143/0x170 fs/ext4/ioctl.c:1709 ext4_fill_super+0x3095/0x8450 fs/ext4/super.c:5660 get_tree_bdev+0x440/0x680 fs/super.c:1368 ext4_get_tree+0x1c/0x20 fs/ext4/super.c:5671 vfs_get_tree+0x88/0x290 fs/super.c:1575 do_new_mount+0x2ba/0xb30 fs/namespace.c:3056 path_mount+0x671/0x1070 fs/namespace.c:3386 do_mount fs/namespace.c:3399 [inline] __do_sys_mount fs/namespace.c:3607 [inline] __se_sys_mount+0x2c4/0x3b0 fs/namespace.c:3584 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3584 x64_sys_call+0x49d/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:166 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0x80 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fc94318f90a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007fc944063e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc944063ef0 RCX: 00007fc94318f90a RDX: 0000200000000740 RSI: 0000200000000040 RDI: 00007fc944063eb0 RBP: 0000200000000740 R08: 00007fc944063ef0 R09: 0000000001810714 R10: 0000000001810714 R11: 0000000000000246 R12: 0000200000000040 R13: 00007fc944063eb0 R14: 0000000000000468 R15: 000000000000002c Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__ext4_journal_get_write_access+0xb0/0x690 fs/ext4/ext4_jbd2.c:231 Code: 88 ff 49 8d 5e 30 48 89 d8 48 c1 e8 03 42 80 3c 28 00 74 08 48 89 df e8 7e 0d d0 ff 48 8b 1b 48 83 c3 38 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 61 0d d0 ff 4c 8b 23 4d 85 e4 4c RSP: 0018:ffffc9000767f6e0 EFLAGS: 00010202 RAX: 0000000000000007 RBX: 0000000000000038 RCX: 0000000000080000 RDX: ffffc900077a2000 RSI: 000000000000d5f7 RDI: 000000000000d5f8 RBP: ffffc9000767f7b0 R08: ffff888133938888 R09: 0000000000000001 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: dffffc0000000000 R14: ffff888133938888 R15: 0000000000000001 FS: 00007fc9440646c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000001a700000000 CR3: 000000012e224000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 88 ff mov %bh,%bh 2: 49 8d 5e 30 lea 0x30(%r14),%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 7e 0d d0 ff call 0xffd00d9a 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 83 c3 38 add $0x38,%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 61 0d d0 ff call 0xffd00d9a 39: 4c 8b 23 mov (%rbx),%r12 3c: 4d 85 e4 test %r12,%r12 3f: 4c rex.WR