EXT4-fs error (device loop2): ext4_get_journal_inode:5254: inode #13: comm syz-executor.2: casefold flag without casefold feature general protection fault, probably for non-canonical address 0xdffffc0000000002: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 1 PID: 4143 Comm: syz-executor.2 Not tainted 5.10.160-syzkaller-01321-g003c389455eb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:__fscrypt_inode_uses_inline_crypto fs/crypto/inline_crypt.c:233 [inline] RIP: 0010:fscrypt_inode_uses_inline_crypto include/linux/fscrypt.h:700 [inline] RIP: 0010:fscrypt_limit_io_blocks+0xce/0x2b0 fs/crypto/inline_crypt.c:460 Code: 5d 00 81 e3 00 f0 00 00 bf 00 80 00 00 89 de e8 18 3e a7 ff 81 fb 00 80 00 00 75 7b 4c 89 f9 49 8d 5e 11 48 89 d8 48 c1 e8 03 <42> 8a 04 38 84 c0 0f 85 58 01 00 00 0f b6 1b 31 ff 89 de e8 3a 3d RSP: 0018:ffffc9000876f2e0 EFLAGS: 00010202 RAX: 0000000000000002 RBX: 0000000000000011 RCX: dffffc0000000000 RDX: ffff888114a5e2c0 RSI: 0000000000008000 RDI: 0000000000008000 RBP: ffffc9000876f310 R08: ffffffff81c5e758 R09: ffffed102df0ebf4 R10: ffffed102df0ebf4 R11: 1ffff1102df0ebf3 R12: 0000000000000001 R13: ffff88816f876018 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f6f98505700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd74c32898 CR3: 0000000111f1d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_iomap_begin+0x933/0xc00 fs/ext4/inode.c:3571 iomap_apply+0xf9/0x7f0 fs/iomap/apply.c:46 iomap_bmap+0x168/0x1f0 fs/iomap/fiemap.c:134 ext4_bmap+0x3a7/0x420 fs/ext4/inode.c:3310 bmap+0xa5/0xe0 fs/inode.c:1706 jbd2_journal_init_inode+0x9d/0x390 fs/jbd2/journal.c:1443 ext4_get_journal fs/ext4/super.c:5289 [inline] ext4_load_journal+0x30b/0x1440 fs/ext4/super.c:5423 ext4_fill_super+0x60b3/0x9150 fs/ext4/super.c:4799 mount_bdev+0x25f/0x370 fs/super.c:1420 ext4_mount+0x34/0x40 fs/ext4/super.c:6606 legacy_get_tree+0xf0/0x190 fs/fs_context.c:592 vfs_get_tree+0x88/0x290 fs/super.c:1550 do_new_mount+0x289/0xad0 fs/namespace.c:2899 path_mount+0x58d/0xce0 fs/namespace.c:3229 do_mount fs/namespace.c:3242 [inline] __do_sys_mount fs/namespace.c:3450 [inline] __se_sys_mount+0x2d2/0x3c0 fs/namespace.c:3427 __x64_sys_mount+0xbf/0xd0 fs/namespace.c:3427 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f6f997935da Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6f98504f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00000000000005a2 RCX: 00007f6f997935da RDX: 00000000200000c0 RSI: 0000000020000040 RDI: 00007f6f98504fe0 RBP: 00007f6f98505020 R08: 00007f6f98505020 R09: 0000000000000008 R10: 0000000000000008 R11: 0000000000000202 R12: 00000000200000c0 R13: 0000000020000040 R14: 00007f6f98504fe0 R15: 0000000020000100 Modules linked in: ---[ end trace 11595fd61026f985 ]--- RIP: 0010:__fscrypt_inode_uses_inline_crypto fs/crypto/inline_crypt.c:233 [inline] RIP: 0010:fscrypt_inode_uses_inline_crypto include/linux/fscrypt.h:700 [inline] RIP: 0010:fscrypt_limit_io_blocks+0xce/0x2b0 fs/crypto/inline_crypt.c:460 Code: 5d 00 81 e3 00 f0 00 00 bf 00 80 00 00 89 de e8 18 3e a7 ff 81 fb 00 80 00 00 75 7b 4c 89 f9 49 8d 5e 11 48 89 d8 48 c1 e8 03 <42> 8a 04 38 84 c0 0f 85 58 01 00 00 0f b6 1b 31 ff 89 de e8 3a 3d RSP: 0018:ffffc9000876f2e0 EFLAGS: 00010202 RAX: 0000000000000002 RBX: 0000000000000011 RCX: dffffc0000000000 RDX: ffff888114a5e2c0 RSI: 0000000000008000 RDI: 0000000000008000 RBP: ffffc9000876f310 R08: ffffffff81c5e758 R09: ffffed102df0ebf4 R10: ffffed102df0ebf4 R11: 1ffff1102df0ebf3 R12: 0000000000000001 R13: ffff88816f876018 R14: 0000000000000000 R15: dffffc0000000000 FS: 00007f6f98505700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd74c30fe8 CR3: 0000000111f1d000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 5d pop %rbp 1: 00 81 e3 00 f0 00 add %al,0xf000e3(%rcx) 7: 00 bf 00 80 00 00 add %bh,0x8000(%rdi) d: 89 de mov %ebx,%esi f: e8 18 3e a7 ff callq 0xffa73e2c 14: 81 fb 00 80 00 00 cmp $0x8000,%ebx 1a: 75 7b jne 0x97 1c: 4c 89 f9 mov %r15,%rcx 1f: 49 8d 5e 11 lea 0x11(%r14),%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 8a 04 38 mov (%rax,%r15,1),%al <-- trapping instruction 2e: 84 c0 test %al,%al 30: 0f 85 58 01 00 00 jne 0x18e 36: 0f b6 1b movzbl (%rbx),%ebx 39: 31 ff xor %edi,%edi 3b: 89 de mov %ebx,%esi 3d: e8 .byte 0xe8 3e: 3a .byte 0x3a 3f: 3d .byte 0x3d