bisecting fixing commit since 6b7b0056defc6eb5c87bbe4690ccda547b2891aa building syzkaller on 858ea628800647d5e5b68b11441e42b8ef5652c1 testing commit 6b7b0056defc6eb5c87bbe4690ccda547b2891aa with gcc (GCC) 8.4.1 20210217 kernel signature: 66a7e10b883ecf99ebd97205a7145d70d57afed8bc011ce73bcf00c508f810f6 all runs: crashed: kernel BUG in inline_xattr_iter_begin testing current HEAD eb575cd5d7f60241d016fdd13a9e86d962093c9b testing commit eb575cd5d7f60241d016fdd13a9e86d962093c9b with gcc (GCC) 8.4.1 20210217 kernel signature: 72a2e1fe43f6d6e8867dbc28b55f9ae4cc8b9048f10db1d0654d284d2ad62a1a all runs: crashed: kernel BUG in inline_xattr_iter_begin revisions tested: 2, total time: 23m35.931576524s (build: 16m40.955701985s, test: 6m32.585654527s) the crash still happens on HEAD commit msg: Linux 4.19.195 crash: kernel BUG in inline_xattr_iter_begin erofs: root inode @ nid 36 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready erofs: mounted on /dev/loop2 with opts: . IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready ------------[ cut here ]------------ kernel BUG at drivers/staging/erofs/xattr.c:186! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9878 Comm: syz-executor.2 Not tainted 4.19.195-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:inline_xattr_iter_begin+0x37a/0x4a0 drivers/staging/erofs/xattr.c:186 Code: 08 84 d2 0f 85 30 01 00 00 0f b7 43 ea 48 83 c4 18 5b 41 5c 44 29 e8 41 5d 41 5e 41 5f 5d c3 b8 c3 ff ff ff 0f 83 1e ff ff ff <0f> 0b 48 89 45 d0 e8 2b 77 aa fb 48 8b 45 d0 e9 0a fd ff ff 4c 89 RSP: 0018:ffff88808dae7c40 EFLAGS: 00010283 RAX: 00000000ffffffc3 RBX: ffff888080e5a4c0 RCX: 0000000000000000 RDX: 0000000000000048 RSI: ffff888080e5a4c0 RDI: ffff888080e5a4ac RBP: ffff88808dae7c80 R08: fffff940004c4677 R09: fffff940004c4676 R10: fffff940004c4676 R11: ffffea00026233b7 R12: ffff888080e5a498 R13: 0000000000000280 R14: ffff88808dae7d40 R15: ffff888080e5a4aa FS: 00007faf9db92700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000005216b0 CR3: 000000008edc5000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: inline_listxattr drivers/staging/erofs/xattr.c:584 [inline] erofs_listxattr+0x125/0xd30 drivers/staging/erofs/xattr.c:653 vfs_listxattr+0xd4/0x140 fs/xattr.c:392 listxattr+0xcb/0xe0 fs/xattr.c:687 path_listxattr+0xba/0x120 fs/xattr.c:711 __do_sys_listxattr fs/xattr.c:723 [inline] __se_sys_listxattr fs/xattr.c:720 [inline] __x64_sys_listxattr+0x73/0xb0 fs/xattr.c:720 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4665d9 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:00007faf9db92188 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007fff0ffb3b4f R14: 00007faf9db92300 R15: 0000000000022000 Modules linked in: IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready ---[ end trace 504e4533e5dea231 ]--- RIP: 0010:inline_xattr_iter_begin+0x37a/0x4a0 drivers/staging/erofs/xattr.c:186 Code: 08 84 d2 0f 85 30 01 00 00 0f b7 43 ea 48 83 c4 18 5b 41 5c 44 29 e8 41 5d 41 5e 41 5f 5d c3 b8 c3 ff ff ff 0f 83 1e ff ff ff <0f> 0b 48 89 45 d0 e8 2b 77 aa fb 48 8b 45 d0 e9 0a fd ff ff 4c 89 RSP: 0018:ffff88808dae7c40 EFLAGS: 00010283 ieee80211 phy11: Selected rate control algorithm 'minstrel_ht' RAX: 00000000ffffffc3 RBX: ffff888080e5a4c0 RCX: 0000000000000000 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 RDX: 0000000000000048 RSI: ffff888080e5a4c0 RDI: ffff888080e5a4ac wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 RBP: ffff88808dae7c80 R08: fffff940004c4677 R09: fffff940004c4676 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 R10: fffff940004c4676 R11: ffffea00026233b7 R12: ffff888080e5a498 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 R13: 0000000000000280 R14: ffff88808dae7d40 R15: ffff888080e5a4aa IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready FS: 00007faf9db92700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready CR2: 00007ffd56f6de8c CR3: 000000008edc5000 CR4: 00000000001406e0 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 erofs: read_super, device -> /dev/loop1 erofs: read_super, device -> /dev/loop5 erofs: options ->