bisecting fixing commit since 6b7b0056defc6eb5c87bbe4690ccda547b2891aa building syzkaller on 858ea628800647d5e5b68b11441e42b8ef5652c1 testing commit 6b7b0056defc6eb5c87bbe4690ccda547b2891aa compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: 67c2f9249ec81f238322504aeae3ef70d627fb4ddbb81cedbf86318611996314 all runs: crashed: kernel BUG in inline_xattr_iter_begin testing current HEAD e23d55af0e1fca9be5c99f0c37d48b289f4d6489 testing commit e23d55af0e1fca9be5c99f0c37d48b289f4d6489 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: a07f7e5ad8ae4c6689f0b35d5ef14c7e6a67056d56ed411c67bf0452f119fee4 all runs: crashed: kernel BUG in inline_xattr_iter_begin revisions tested: 2, total time: 26m29.775545351s (build: 19m28.386907552s, test: 6m38.599645573s) the crash still happens on HEAD commit msg: Linux 4.19.205 crash: kernel BUG in inline_xattr_iter_begin IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready erofs: root inode @ nid 36 erofs: mounted on /dev/loop2 with opts: . wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 ------------[ cut here ]------------ kernel BUG at drivers/staging/erofs/xattr.c:186! IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 9826 Comm: syz-executor.2 Not tainted 4.19.205-syzkaller #0 wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 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 6b 49 aa fb 48 8b 45 d0 e9 0a fd ff ff 4c 89 RSP: 0018:ffff888098cffc40 EFLAGS: 00010283 RAX: 00000000ffffffc3 RBX: ffff8880808e64c0 RCX: 0000000000000000 RDX: 0000000000000048 RSI: ffff8880808e64c0 RDI: ffff8880808e64ac RBP: ffff888098cffc80 R08: fffff940004cf43f R09: fffff940004cf43e R10: fffff940004cf43e R11: ffffea000267a1f7 R12: ffff8880808e6498 R13: 0000000000000280 R14: ffff888098cffd40 R15: ffff8880808e64aa FS: 00007fec275da700(0000) GS:ffff8880ba200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555e8ab2868 CR3: 0000000098f27000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 Call Trace: inline_listxattr drivers/staging/erofs/xattr.c:584 [inline] erofs_listxattr+0x125/0xd30 drivers/staging/erofs/xattr.c:653 ieee80211 phy8: Selected rate control algorithm 'minstrel_ht' vfs_listxattr+0xd4/0x140 fs/xattr.c:392 IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready listxattr+0xcb/0xe0 fs/xattr.c:687 path_listxattr+0xba/0x120 fs/xattr.c:711 wlan0: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 __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:00007fec275da188 EFLAGS: 00000246 ORIG_RAX: 00000000000000c2 wlan0: Creating new IBSS network, BSSID 50:50:50:50:50:50 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: 00007fff9c48762f R14: 00007fec275da300 R15: 0000000000022000 Modules linked in: ieee80211 phy9: Selected rate control algorithm 'minstrel_ht' ---[ end trace 4cedb447b071fe79 ]--- RIP: 0010:inline_xattr_iter_begin+0x37a/0x4a0 drivers/staging/erofs/xattr.c:186 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready 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 6b 49 aa fb 48 8b 45 d0 e9 0a fd ff ff 4c 89 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready RSP: 0018:ffff888098cffc40 EFLAGS: 00010283 IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready RAX: 00000000ffffffc3 RBX: ffff8880808e64c0 RCX: 0000000000000000 IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready RDX: 0000000000000048 RSI: ffff8880808e64c0 RDI: ffff8880808e64ac ieee80211 phy10: Selected rate control algorithm 'minstrel_ht' RBP: ffff888098cffc80 R08: fffff940004cf43f R09: fffff940004cf43e erofs: read_super, device -> /dev/loop3 ieee80211 phy11: Selected rate control algorithm 'minstrel_ht' erofs: options -> Bluetooth: hci0: command 0x0419 tx timeout Bluetooth: hci3: command 0x0419 tx timeout R10: fffff940004cf43e R11: ffffea000267a1f7 R12: ffff8880808e6498 Bluetooth: hci2: command 0x0419 tx timeout erofs: root inode @ nid 36 erofs: mounted on /dev/loop3 with opts: . wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50 ieee80211 phy12: Selected rate control algorithm 'minstrel_ht' wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50 R13: 0000000000000280 R14: ffff888098cffd40 R15: ffff8880808e64aa ------------[ cut here ]------------ kernel BUG at drivers/staging/erofs/xattr.c:186! FS: 00007fec275da700(0000) GS:ffff8880ba200000(0000) knlGS:0000000000000000 Bluetooth: hci1: command 0x0419 tx timeout CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Bluetooth: hci4: command 0x0419 tx timeout IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready invalid opcode: 0000 [#2] PREEMPT SMP KASAN CR2: 00005555e8abc8b0 CR3: 0000000098f27000 CR4: 00000000001406f0 CPU: 1 PID: 9889 Comm: syz-executor.3 Tainted: G D 4.19.205-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 6b 49 aa fb 48 8b 45 d0 e9 0a fd ff ff 4c 89 RSP: 0018:ffff8880978c7c40 EFLAGS: 00010283 RAX: 00000000ffffffc3 RBX: ffff888080987500 RCX: 0000000000000000 RDX: 0000000000000048 RSI: ffff888080987500 RDI: ffff8880809874ec RBP: ffff8880978c7c80 R08: fffff940005a77d7 R09: fffff940005a77d6 R10: fffff940005a77d6 R11: ffffea0002d3beb7 R12: ffff8880809874d8 R13: 0000000000000280 R14: ffff8880978c7d40 R15: ffff8880809874ea FS: 00007fe51b520700(0000) GS:ffff8880ba300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555e8aac160 CR3: 000000009b0c3000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready Call Trace: inline_listxattr drivers/staging/erofs/xattr.c:584 [inline] erofs_listxattr+0x125/0xd30 drivers/staging/erofs/xattr.c:653 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 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:00007fe51b520188 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: 00007ffc328d311f R14: 00007fe51b520300 R15: 0000000000022000 Modules linked in: Bluetooth: hci5: command 0x0419 tx timeout DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready