bisecting fixing commit since 2034d6f0838e465dd8f120c4e946d8444b4bb5df building syzkaller on 6a81331a1d4c744da9204d02ec88d558f7eea9c9 testing commit 2034d6f0838e465dd8f120c4e946d8444b4bb5df with gcc (GCC) 8.4.1 20210217 kernel signature: 327d2cf5db019b9a60929e1b74dd8bcce50ac80dd36f50b0cab95e613cbc80cd all runs: crashed: kernel BUG in vle_get_logical_extent_head testing current HEAD 97a8651cadce7c2b7c4d8f108b392eff31fe2c08 testing commit 97a8651cadce7c2b7c4d8f108b392eff31fe2c08 with gcc (GCC) 8.4.1 20210217 kernel signature: 0bc545d60979ec11b8d7f99bcd82bac51deebdd2443192b24b3cd1fec2d72a2c all runs: crashed: kernel BUG in vle_get_logical_extent_head revisions tested: 2, total time: 23m42.567972691s (build: 16m16.946252221s, test: 6m43.0273774s) the crash still happens on HEAD commit msg: Linux 4.19.189 crash: kernel BUG in vle_get_logical_extent_head erofs: options -> erofs: root inode @ nid 36 erofs: mounted on /dev/loop3 with opts: . ------------[ cut here ]------------ IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready kernel BUG at drivers/staging/erofs/unzip_vle.c:1562! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9882 Comm: syz-executor.3 Not tainted 4.19.189-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:vle_get_logical_extent_head+0x93e/0xb20 drivers/staging/erofs/unzip_vle.c:1562 Code: be 02 00 00 00 e8 92 2c aa fb e9 fb f9 ff ff e8 a2 fd 1e fb e9 cb fb ff ff 48 c7 c6 40 bd d2 88 4c 89 f7 e8 c4 b4 9d fb 0f 0b <0f> 0b 48 89 55 80 89 45 88 e8 84 2b aa fb 48 8b 55 80 8b 45 88 e9 RSP: 0018:ffff88809773f020 EFLAGS: 00010202 RAX: 0000000000000003 RBX: ffff888098401778 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffffea0002610060 RBP: ffff88809773f0a8 R08: ffff88809773f160 R09: 0000000000000005 R10: ffff88809773f4b0 R11: ffff8880ba322a93 R12: ffff888080da6498 R13: ffff888080da64c0 R14: ffffea0002610040 R15: 000000000000000c FS: 00007fec51faa700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fec51fab000 CR3: 0000000097977000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: z_erofs_map_blocks_iter+0x768/0x13f0 drivers/staging/erofs/unzip_vle.c:1666 erofs_map_blocks_iter+0x49/0x2f0 drivers/staging/erofs/data.c:168 z_erofs_do_read_page+0x83a/0x24d0 drivers/staging/erofs/unzip_vle.c:644 z_erofs_vle_normalaccess_readpage+0x13c/0x3c0 drivers/staging/erofs/unzip_vle.c:1353 Bluetooth: hci5: command 0x0419 tx timeout Bluetooth: hci3: command 0x0419 tx timeout do_read_cache_page.part.5+0x45d/0xc90 mm/filemap.c:2828 do_read_cache_page include/linux/pagemap.h:102 [inline] read_cache_page+0x40/0x70 mm/filemap.c:2924 read_mapping_page include/linux/pagemap.h:402 [inline] find_target_block_classic drivers/staging/erofs/namei.c:112 [inline] erofs_namei+0x162/0x1430 drivers/staging/erofs/namei.c:189 erofs_lookup+0x108/0x3a0 drivers/staging/erofs/namei.c:232 __lookup_slow+0x20d/0x3f0 fs/namei.c:1672 lookup_slow+0x51/0x70 fs/namei.c:1689 walk_component+0x6e9/0xf10 fs/namei.c:1811 lookup_last fs/namei.c:2274 [inline] path_lookupat.isra.13+0x180/0x840 fs/namei.c:2319 filename_lookup.part.21+0x160/0x360 fs/namei.c:2349 filename_lookup fs/namei.c:2342 [inline] user_path_at_empty+0x39/0x40 fs/namei.c:2609 user_path include/linux/namei.h:62 [inline] do_mount+0x115/0x2710 fs/namespace.c:2739 ksys_mount+0xb1/0xd0 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xb9/0x150 fs/namespace.c:3026 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x466459 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fec51faa188 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000466459 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000000 RBP: 00000000004bf9fb R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60 R13: 00007ffff5afb98f R14: 00007fec51faa300 R15: 0000000000022000 Modules linked in: ---[ end trace 27cbef723fad54a2 ]--- RIP: 0010:vle_get_logical_extent_head+0x93e/0xb20 drivers/staging/erofs/unzip_vle.c:1562 Code: be 02 00 00 00 e8 92 2c aa fb e9 fb f9 ff ff e8 a2 fd 1e fb e9 cb fb ff ff 48 c7 c6 40 bd d2 88 4c 89 f7 e8 c4 b4 9d fb 0f 0b <0f> 0b 48 89 55 80 89 45 88 e8 84 2b aa fb 48 8b 55 80 8b 45 88 e9 RSP: 0018:ffff88809773f020 EFLAGS: 00010202 RAX: 0000000000000003 RBX: ffff888098401778 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 0000000000000001 RDI: ffffea0002610060 RBP: ffff88809773f0a8 R08: ffff88809773f160 R09: 0000000000000005 R10: ffff88809773f4b0 R11: ffff8880ba322a93 R12: ffff888080da6498 R13: ffff888080da64c0 R14: ffffea0002610040 R15: 000000000000000c FS: 00007fec51faa700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fec51fab000 CR3: 0000000097977000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400