erofs: (device loop2): erofs_read_inode: bogus i_mode (300) @ nid 36 ------------[ cut here ]------------ kernel BUG at fs/erofs/inode.c:182! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 18752 Comm: syz-executor.2 Not tainted 5.9.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:erofs_read_inode+0x1537/0x1560 fs/erofs/inode.c:178 Code: 7c 24 08 e8 eb b2 46 fe 48 8b 44 24 08 4c 8b 00 4c 89 f7 48 c7 c6 06 ce 36 89 48 c7 c2 a4 ce 36 89 89 d9 31 c0 e8 a9 ac ff ff <0f> 0b e8 b2 e4 06 fe 0f 0b e8 ab e4 06 fe 4c 89 ef 48 c7 c6 72 b5 RSP: 0018:ffffc9001641fbf8 EFLAGS: 00010246 RAX: 9a006be589513100 RBX: 00000000000000c0 RCX: 9a006be589513100 RDX: ffffc9000d9b2000 RSI: 0000000000003f23 RDI: 0000000000003f24 RBP: 0000000000000000 R08: ffffffff815e37c0 R09: ffffed1015d262c0 R10: ffffed1015d262c0 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffea00029f5f00 R14: ffff88804313c000 R15: ffff8880a7d7c480 FS: 00007f6601c43700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000400200 CR3: 00000000a181e000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: erofs_fill_inode+0x40/0x7e0 fs/erofs/inode.c:235 erofs_iget+0xe4/0x140 fs/erofs/inode.c:322 erofs_fc_fill_super+0x922/0xe30 fs/erofs/super.c:382 get_tree_bdev+0x3e9/0x5f0 fs/super.c:1342 vfs_get_tree+0x88/0x270 fs/super.c:1547 do_new_mount fs/namespace.c:2875 [inline] path_mount+0x179d/0x29e0 fs/namespace.c:3192 do_mount fs/namespace.c:3205 [inline] __do_sys_mount fs/namespace.c:3413 [inline] __se_sys_mount+0x126/0x180 fs/namespace.c:3390 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x460bca Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 dd 87 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 ba 87 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007f6601c42a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f6601c42b20 RCX: 0000000000460bca RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f6601c42ae0 RBP: 00007f6601c42ae0 R08: 00007f6601c42b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020010a00 Modules linked in: ---[ end trace a164f6065de02bff ]--- RIP: 0010:erofs_read_inode+0x1537/0x1560 fs/erofs/inode.c:178 Code: 7c 24 08 e8 eb b2 46 fe 48 8b 44 24 08 4c 8b 00 4c 89 f7 48 c7 c6 06 ce 36 89 48 c7 c2 a4 ce 36 89 89 d9 31 c0 e8 a9 ac ff ff <0f> 0b e8 b2 e4 06 fe 0f 0b e8 ab e4 06 fe 4c 89 ef 48 c7 c6 72 b5 RSP: 0018:ffffc9001641fbf8 EFLAGS: 00010246 RAX: 9a006be589513100 RBX: 00000000000000c0 RCX: 9a006be589513100 RDX: ffffc9000d9b2000 RSI: 0000000000003f23 RDI: 0000000000003f24 RBP: 0000000000000000 R08: ffffffff815e37c0 R09: ffffed1015d262c0 R10: ffffed1015d262c0 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffea00029f5f00 R14: ffff88804313c000 R15: ffff8880a7d7c480 FS: 00007f6601c43700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6d2c335000 CR3: 00000000a181e000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400