bisecting fixing commit since b94de4d19498b454645b72d08a05d32fa9074fb5 building syzkaller on cba33199be220cbf61f7c0c8223d88a25a913d6f testing commit b94de4d19498b454645b72d08a05d32fa9074fb5 compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: a1e311d68416c02f9a841b91c01b9fd89e5042a2cf8f702fae1eb99e3d1f47ea all runs: crashed: WARNING in drv_remove_interface testing current HEAD b172b44fcb1771e083aad806fa96f3f60e2ddfac testing commit b172b44fcb1771e083aad806fa96f3f60e2ddfac compiler: gcc version 8.4.1 20210217 (GCC) kernel signature: e5e368587f12c2418100cc5ac414419f8d9db59c03e71dcf8d697dc8e46bbf71 all runs: crashed: WARNING in drv_remove_interface revisions tested: 2, total time: 25m15.387296716s (build: 17m40.737792882s, test: 7m10.730317438s) the crash still happens on HEAD commit msg: Linux 4.19.206 crash: WARNING in drv_remove_interface IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready ------------[ cut here ]------------ wlan0: Failed check-sdata-in-driver check, flags: 0x4 WARNING: CPU: 1 PID: 12881 at net/mac80211/driver-ops.h:19 check_sdata_in_driver net/mac80211/driver-ops.h:17 [inline] WARNING: CPU: 1 PID: 12881 at net/mac80211/driver-ops.h:19 drv_remove_interface+0x3e9/0x530 net/mac80211/driver-ops.c:100 Modules linked in: CPU: 1 PID: 12881 Comm: syz-executor.1 Not tainted 4.19.206-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_sdata_in_driver net/mac80211/driver-ops.h:17 [inline] RIP: 0010:drv_remove_interface+0x3e9/0x530 net/mac80211/driver-ops.c:100 Code: 01 00 0f 85 4d 01 00 00 49 8b b4 24 28 05 00 00 49 81 c4 48 05 00 00 48 c7 c7 e0 7a f6 88 48 85 f6 49 0f 44 f4 e8 fc 7f 57 00 <0f> 0b e9 3e fd ff ff 0f 0b e9 82 fc ff ff 0f 0b e9 20 fd ff ff 4c RSP: 0018:ffff8881c88774e8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8881d2e3ac40 RCX: 0000000000000000 RDX: 0000000000000004 RSI: 0000000000000008 RDI: ffffffff8bad8720 RBP: ffff8881c8877518 R08: ffffed103eca3d0b R09: ffffed103eca3d0a R10: ffffed103eca3d0a R11: ffff8881f651e857 R12: ffff8881dc12e848 R13: ffff8881d2e39c40 R14: dffffc0000000000 R15: ffff8881dc12e838 FS: 00007fec63e5b700(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fffcbe1dff8 CR3: 00000001d4718001 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ieee80211_do_stop+0xf9c/0x1d90 net/mac80211/iface.c:1053 ieee80211_stop+0x15/0x20 net/mac80211/iface.c:1080 __dev_close_many+0x196/0x2b0 net/core/dev.c:1485 __dev_close net/core/dev.c:1497 [inline] __dev_change_flags+0x214/0x590 net/core/dev.c:7677 dev_change_flags+0x7b/0x150 net/core/dev.c:7748 devinet_ioctl+0xfed/0x1610 net/ipv4/devinet.c:1106 inet_ioctl+0x14f/0x2b0 net/ipv4/af_inet.c:954 packet_ioctl+0xdc/0x280 net/packet/af_packet.c:4151 sock_do_ioctl+0xd9/0x240 net/socket.c:1015 sock_ioctl+0x281/0x500 net/socket.c:1135 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x196/0x10c0 fs/ioctl.c:688 ksys_ioctl+0x62/0x90 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:710 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465889 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:00007fec63e5b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000055bf00 RCX: 0000000000465889 RDX: 0000000020001000 RSI: 0000000000008914 RDI: 0000000000000003 RBP: 00000000004af68d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf00 R13: 00007fff944ae02f R14: 00007fec63e5b300 R15: 0000000000022000 irq event stamp: 798 hardirqs last enabled at (797): [] __free_pages_ok+0x616/0xd60 mm/page_alloc.c:1286 hardirqs last disabled at (798): [] trace_hardirqs_off_thunk+0x1a/0x1c softirqs last enabled at (756): [] __do_softirq+0x62d/0x919 kernel/softirq.c:318 softirqs last disabled at (651): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (651): [] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 ---[ end trace 2502d955d2a1430e ]--- IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready ------------[ cut here ]------------ wlan0: Failed check-sdata-in-driver check, flags: 0x4 WARNING: CPU: 0 PID: 12942 at net/mac80211/driver-ops.h:19 check_sdata_in_driver net/mac80211/driver-ops.h:17 [inline] WARNING: CPU: 0 PID: 12942 at net/mac80211/driver-ops.h:19 drv_remove_interface+0x3e9/0x530 net/mac80211/driver-ops.c:100 Modules linked in: CPU: 0 PID: 12942 Comm: syz-executor.1 Tainted: G W 4.19.206-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_sdata_in_driver net/mac80211/driver-ops.h:17 [inline] RIP: 0010:drv_remove_interface+0x3e9/0x530 net/mac80211/driver-ops.c:100 Code: 01 00 0f 85 4d 01 00 00 49 8b b4 24 28 05 00 00 49 81 c4 48 05 00 00 48 c7 c7 e0 7a f6 88 48 85 f6 49 0f 44 f4 e8 fc 7f 57 00 <0f> 0b e9 3e fd ff ff 0f 0b e9 82 fc ff ff 0f 0b e9 20 fd ff ff 4c RSP: 0018:ffff8881ccacf4e8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8881d2e3ac40 RCX: 0000000000000000 RDX: 0000000000000004 RSI: 0000000000000008 RDI: ffffffff8bad8720 RBP: ffff8881ccacf518 R08: ffffed103ec83d0b R09: ffffed103ec83d0a R10: ffffed103ec83d0a R11: ffff8881f641e857 R12: ffff8881dc12e848 R13: ffff8881d2e39c40 R14: dffffc0000000000 R15: ffff8881dc12e838 FS: 00007fec63e5b700(0000) GS:ffff8881f6400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff71e0bc2c CR3: 00000001f4f73001 CR4: 00000000001606f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ieee80211_do_stop+0xf9c/0x1d90 net/mac80211/iface.c:1053 ieee80211_stop+0x15/0x20 net/mac80211/iface.c:1080 __dev_close_many+0x196/0x2b0 net/core/dev.c:1485 __dev_close net/core/dev.c:1497 [inline] __dev_change_flags+0x214/0x590 net/core/dev.c:7677 dev_change_flags+0x7b/0x150 net/core/dev.c:7748 devinet_ioctl+0xfed/0x1610 net/ipv4/devinet.c:1106 inet_ioctl+0x14f/0x2b0 net/ipv4/af_inet.c:954 packet_ioctl+0xdc/0x280 net/packet/af_packet.c:4151 sock_do_ioctl+0xd9/0x240 net/socket.c:1015 sock_ioctl+0x281/0x500 net/socket.c:1135 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x196/0x10c0 fs/ioctl.c:688 ksys_ioctl+0x62/0x90 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:710 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465889 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:00007fec63e5b188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000055bf00 RCX: 0000000000465889 RDX: 0000000020001000 RSI: 0000000000008914 RDI: 0000000000000003 RBP: 00000000004af68d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf00 R13: 00007fff944ae02f R14: 00007fec63e5b300 R15: 0000000000022000 irq event stamp: 694 hardirqs last enabled at (693): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (693): [] _raw_spin_unlock_irq+0x27/0x90 kernel/locking/spinlock.c:192 hardirqs last disabled at (694): [] trace_hardirqs_off_thunk+0x1a/0x1c softirqs last enabled at (612): [] spin_unlock_bh include/linux/spinlock.h:374 [inline] softirqs last enabled at (612): [] netif_addr_unlock_bh include/linux/netdevice.h:4022 [inline] softirqs last enabled at (612): [] ieee80211_do_stop+0x483/0x1d90 net/mac80211/iface.c:879 softirqs last disabled at (608): [] spin_lock_bh include/linux/spinlock.h:334 [inline] softirqs last disabled at (608): [] netif_addr_lock_bh include/linux/netdevice.h:4012 [inline] softirqs last disabled at (608): [] ieee80211_do_stop+0x3cc/0x1d90 net/mac80211/iface.c:874 ---[ end trace 2502d955d2a1430f ]--- IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready ------------[ cut here ]------------ wlan0: Failed check-sdata-in-driver check, flags: 0x4 WARNING: CPU: 1 PID: 15298 at net/mac80211/driver-ops.h:19 check_sdata_in_driver net/mac80211/driver-ops.h:17 [inline] WARNING: CPU: 1 PID: 15298 at net/mac80211/driver-ops.h:19 drv_remove_interface+0x3e9/0x530 net/mac80211/driver-ops.c:100 Modules linked in: CPU: 1 PID: 15298 Comm: syz-executor.0 Tainted: G W 4.19.206-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:check_sdata_in_driver net/mac80211/driver-ops.h:17 [inline] RIP: 0010:drv_remove_interface+0x3e9/0x530 net/mac80211/driver-ops.c:100 Code: 01 00 0f 85 4d 01 00 00 49 8b b4 24 28 05 00 00 49 81 c4 48 05 00 00 48 c7 c7 e0 7a f6 88 48 85 f6 49 0f 44 f4 e8 fc 7f 57 00 <0f> 0b e9 3e fd ff ff 0f 0b e9 82 fc ff ff 0f 0b e9 20 fd ff ff 4c RSP: 0018:ffff8881c462f4e8 EFLAGS: 00010282 RAX: 0000000000000000 RBX: ffff8881d4262e40 RCX: 0000000000000000 RDX: 0000000000000004 RSI: ffffffff885021e0 RDI: ffffffff8bad8720 RBP: ffff8881c462f518 R08: ffffed103eca4ea9 R09: ffffed103eca4ea8 R10: ffffed103eca4ea8 R11: ffff8881f6527547 R12: ffff8881d0481d48 R13: ffff8881d4261e40 R14: dffffc0000000000 R15: ffff8881d0481d38 FS: 00007f2c61340700(0000) GS:ffff8881f6500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff36a05fd0 CR3: 00000001d29c0006 CR4: 00000000001606e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ieee80211_do_stop+0xf9c/0x1d90 net/mac80211/iface.c:1053 ieee80211_stop+0x15/0x20 net/mac80211/iface.c:1080 __dev_close_many+0x196/0x2b0 net/core/dev.c:1485 __dev_close net/core/dev.c:1497 [inline] __dev_change_flags+0x214/0x590 net/core/dev.c:7677 dev_change_flags+0x7b/0x150 net/core/dev.c:7748 devinet_ioctl+0xfed/0x1610 net/ipv4/devinet.c:1106 inet_ioctl+0x14f/0x2b0 net/ipv4/af_inet.c:954 packet_ioctl+0xdc/0x280 net/packet/af_packet.c:4151 sock_do_ioctl+0xd9/0x240 net/socket.c:1015 sock_ioctl+0x281/0x500 net/socket.c:1135 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x196/0x10c0 fs/ioctl.c:688 ksys_ioctl+0x62/0x90 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6e/0xb0 fs/ioctl.c:710 do_syscall_64+0xd0/0x4e0 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x465889 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:00007f2c61340188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000055bf00 RCX: 0000000000465889 RDX: 0000000020001000 RSI: 0000000000008914 RDI: 0000000000000003 RBP: 00000000004af68d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000055bf00 R13: 00007fff402a0fdf R14: 00007f2c61340300 R15: 0000000000022000 irq event stamp: 812 hardirqs last enabled at (811): [] __raw_spin_unlock_irq include/linux/spinlock_api_smp.h:168 [inline] hardirqs last enabled at (811): [] _raw_spin_unlock_irq+0x27/0x90 kernel/locking/spinlock.c:192 hardirqs last disabled at (812): [] trace_hardirqs_off_thunk+0x1a/0x1c softirqs last enabled at (806): [] __do_softirq+0x62d/0x919 kernel/softirq.c:318 softirqs last disabled at (795): [] invoke_softirq kernel/softirq.c:372 [inline] softirqs last disabled at (795): [] irq_exit+0x17f/0x1c0 kernel/softirq.c:412 ---[ end trace 2502d955d2a14310 ]---