erofs: (device loop5): erofs_read_inode: bogus i_mode (0) @ nid 36 ------------[ cut here ]------------ kernel BUG at fs/erofs/inode.c:182! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 17999 Comm: syz-executor.5 Not tainted 5.9.0-rc6-next-20200924-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:erofs_read_inode fs/erofs/inode.c:182 [inline] RIP: 0010:erofs_fill_inode fs/erofs/inode.c:235 [inline] RIP: 0010:erofs_iget+0xfd8/0x2390 fs/erofs/inode.c:322 Code: 00 0f 85 aa 10 00 00 49 8b 7c 24 28 49 89 d8 44 89 e9 48 c7 c2 a0 9c ef 88 48 c7 c6 40 9f ef 88 e8 b5 df b0 04 e8 88 5a 07 fe <0f> 0b e8 81 5a 07 fe 4c 89 e7 4c 63 e3 e8 b6 61 5b fe e9 ed f0 ff RSP: 0018:ffffc9001427fc10 EFLAGS: 00010216 RAX: 000000000000cb8f RBX: 0000000000000024 RCX: ffffc90014613000 RDX: 0000000000040000 RSI: ffffffff836dd6e8 RDI: fffff5200284ff72 RBP: ffff888085bb9480 R08: 0000000000000042 R09: ffff8880ae5319a7 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88804478dab8 R13: 0000000000000000 R14: ffffea000216ee40 R15: 0000000000000000 FS: 00007f35ff5ec700(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c022b99000 CR3: 0000000053530000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: erofs_fc_fill_super+0xaa3/0x1010 fs/erofs/super.c:382 get_tree_bdev+0x421/0x740 fs/super.c:1342 vfs_get_tree+0x89/0x2f0 fs/super.c:1547 do_new_mount fs/namespace.c:2896 [inline] path_mount+0x12ae/0x1e70 fs/namespace.c:3227 __do_sys_mount fs/namespace.c:3438 [inline] __se_sys_mount fs/namespace.c:3411 [inline] __x64_sys_mount+0x278/0x2f0 fs/namespace.c:3411 do_syscall_64+0x2d/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:00007f35ff5eba88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f35ff5ebb20 RCX: 0000000000460bca RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f35ff5ebae0 RBP: 00007f35ff5ebae0 R08: 00007f35ff5ebb20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 00000000200000c0 Modules linked in: ---[ end trace 908353b42117d538 ]--- RIP: 0010:erofs_read_inode fs/erofs/inode.c:182 [inline] RIP: 0010:erofs_fill_inode fs/erofs/inode.c:235 [inline] RIP: 0010:erofs_iget+0xfd8/0x2390 fs/erofs/inode.c:322 Code: 00 0f 85 aa 10 00 00 49 8b 7c 24 28 49 89 d8 44 89 e9 48 c7 c2 a0 9c ef 88 48 c7 c6 40 9f ef 88 e8 b5 df b0 04 e8 88 5a 07 fe <0f> 0b e8 81 5a 07 fe 4c 89 e7 4c 63 e3 e8 b6 61 5b fe e9 ed f0 ff RSP: 0018:ffffc9001427fc10 EFLAGS: 00010216 RAX: 000000000000cb8f RBX: 0000000000000024 RCX: ffffc90014613000 RDX: 0000000000040000 RSI: ffffffff836dd6e8 RDI: fffff5200284ff72 RBP: ffff888085bb9480 R08: 0000000000000042 R09: ffff8880ae5319a7 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88804478dab8 R13: 0000000000000000 R14: ffffea000216ee40 R15: 0000000000000000 FS: 00007f35ff5ec700(0000) GS:ffff8880ae400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c024087000 CR3: 0000000053530000 CR4: 00000000001526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400