bisecting cause commit starting from d635a69dd4981cc51f90293f5f64268620ed1565 building syzkaller on f213e07ead587b07a84e60c356520bce7277166c testing commit d635a69dd4981cc51f90293f5f64268620ed1565 with gcc (GCC) 8.1.0 kernel signature: e95d12a52dab29787d20f8cfad11da8971923e6bdee5066b72a3397085ca326f all runs: crashed: WARNING: suspicious RCU usage in get_wiphy_regdom testing release v5.10 testing commit 2c85ebc57b3e1817b6ce1a6b703928e113a90442 with gcc (GCC) 8.1.0 kernel signature: 8486ed71d5bfacc25ea1c59ea31894ed74515607229f0dd9b075ab0597b638cf all runs: OK # git bisect start d635a69dd4981cc51f90293f5f64268620ed1565 2c85ebc57b3e1817b6ce1a6b703928e113a90442 Bisecting: 2735 revisions left to test after this (roughly 12 steps) [0ca2ce81eb8ee30f3ba8ac7967fef9cfbb44dbdb] Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux testing commit 0ca2ce81eb8ee30f3ba8ac7967fef9cfbb44dbdb with gcc (GCC) 8.1.0 kernel signature: e7baafaa6a147b645002dc22225416ba18a054503f6f61fed7d6e0543fb7e4f1 all runs: OK # git bisect good 0ca2ce81eb8ee30f3ba8ac7967fef9cfbb44dbdb Bisecting: 1288 revisions left to test after this (roughly 11 steps) [846c3c9cfe8a74021b246bc77a848507be225719] Merge tag 'wireless-drivers-next-2020-12-03' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next testing commit 846c3c9cfe8a74021b246bc77a848507be225719 with gcc (GCC) 8.1.0 kernel signature: ab03b70eaae22e072753d2909ab67eca38ffaa3b8a2d04f5eae9f750434f4fa3 all runs: OK # git bisect good 846c3c9cfe8a74021b246bc77a848507be225719 Bisecting: 644 revisions left to test after this (roughly 9 steps) [cada7ccd9dc75fc73de9342ae1dd0374e8fb1056] vsock_addr: Check for supported flag values testing commit cada7ccd9dc75fc73de9342ae1dd0374e8fb1056 with gcc (GCC) 8.1.0 kernel signature: 3e73f4727486ca35636ebf2d4bc1c7689e32606c975b8520598a08eff856a6eb all runs: crashed: WARNING: suspicious RCU usage in get_wiphy_regdom # git bisect bad cada7ccd9dc75fc73de9342ae1dd0374e8fb1056 Bisecting: 321 revisions left to test after this (roughly 8 steps) [189a164d0fc6c59a22c4486d641d0a0a0d33387a] mac80211: don't filter out beacons once we start CSA testing commit 189a164d0fc6c59a22c4486d641d0a0a0d33387a with gcc (GCC) 8.1.0 kernel signature: 8c04c4e7e4074aa8fc2850dec6ace06dfec6e061801d4dfb7e1bc123a4c8bac1 all runs: crashed: WARNING: suspicious RCU usage in get_wiphy_regdom # git bisect bad 189a164d0fc6c59a22c4486d641d0a0a0d33387a Bisecting: 155 revisions left to test after this (roughly 7 steps) [e1be4b5990c697f41a9e600a2b4ad228b7a71769] Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next testing commit e1be4b5990c697f41a9e600a2b4ad228b7a71769 with gcc (GCC) 8.1.0 kernel signature: e7756c195ff9bf70c639db8a740c65418ce7e1892a4352dc5b0617d11cba0b09 all runs: OK # git bisect good e1be4b5990c697f41a9e600a2b4ad228b7a71769 Bisecting: 77 revisions left to test after this (roughly 6 steps) [fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf] mptcp: send out dedicated packet for ADD_ADDR using port testing commit fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf with gcc (GCC) 8.1.0 kernel signature: 2a49e0fe7daf1b6ae63542826d65cbc806a39dcb0cf3030d6330ede622f39552 all runs: OK # git bisect good fbe0f87ac7710de31f9c37280b08e0d0d43aa6bf Bisecting: 38 revisions left to test after this (roughly 5 steps) [a76b6b1fe8312905e3f91279f93a4c0cf3b1707c] net: mediatek: simplify the return expression of mtk_gmac_sgmii_path_setup() testing commit a76b6b1fe8312905e3f91279f93a4c0cf3b1707c with gcc (GCC) 8.1.0 kernel signature: 3857941b8ed0a22a94a991e08bad63ad4dba3108a8a2c90a81e19872e0056c26 all runs: OK # git bisect good a76b6b1fe8312905e3f91279f93a4c0cf3b1707c Bisecting: 19 revisions left to test after this (roughly 4 steps) [4271d4bde0a23edc53097339fc185d0c09c75819] mac80211: support MIC error/replay detected counters driver update testing commit 4271d4bde0a23edc53097339fc185d0c09c75819 with gcc (GCC) 8.1.0 kernel signature: 9afc7692ff350d05338805c06cba67a7c264390ce237f09ff787e5a740d862f6 all runs: OK # git bisect good 4271d4bde0a23edc53097339fc185d0c09c75819 Bisecting: 9 revisions left to test after this (roughly 3 steps) [2d9463083ce92636a1bdd3e30d1236e3e95d859e] nl80211: validate key indexes for cfg80211_registered_device testing commit 2d9463083ce92636a1bdd3e30d1236e3e95d859e with gcc (GCC) 8.1.0 kernel signature: dee47b3c3e41de58acfd1cbbe468de65be63e7f2d36e270304455686961e597d all runs: crashed: WARNING: suspicious RCU usage in get_wiphy_regdom # git bisect bad 2d9463083ce92636a1bdd3e30d1236e3e95d859e Bisecting: 4 revisions left to test after this (roughly 2 steps) [c837cbad40d949feaff86734d637c7602ae0b56b] nl80211: always accept scan request with the duration set testing commit c837cbad40d949feaff86734d637c7602ae0b56b with gcc (GCC) 8.1.0 kernel signature: debc227a78eddaa6ec5fb624d9e00696c80dc7076fbdeb0be2aa3bce14573675 all runs: OK # git bisect good c837cbad40d949feaff86734d637c7602ae0b56b Bisecting: 2 revisions left to test after this (roughly 1 step) [9850742470804b2cc6a6543bd8f5822eeb5fdbc0] ieee80211: update reduced neighbor report TBTT info length testing commit 9850742470804b2cc6a6543bd8f5822eeb5fdbc0 with gcc (GCC) 8.1.0 kernel signature: f25e69450df02976793397a2079800154b7672b6bd6e3efd019730ad76128a45 all runs: crashed: WARNING: suspicious RCU usage in get_wiphy_regdom # git bisect bad 9850742470804b2cc6a6543bd8f5822eeb5fdbc0 Bisecting: 0 revisions left to test after this (roughly 0 steps) [beee246951571cc5452176f3dbfe9aa5a10ba2b9] cfg80211: Save the regulatory domain when setting custom regulatory testing commit beee246951571cc5452176f3dbfe9aa5a10ba2b9 with gcc (GCC) 8.1.0 kernel signature: f605a9821f9d75218a8817eaa30444f8a7f2bb3859300ed8e7a644f9517ae483 all runs: crashed: WARNING: suspicious RCU usage in get_wiphy_regdom # git bisect bad beee246951571cc5452176f3dbfe9aa5a10ba2b9 beee246951571cc5452176f3dbfe9aa5a10ba2b9 is the first bad commit commit beee246951571cc5452176f3dbfe9aa5a10ba2b9 Author: Ilan Peer Date: Sun Nov 29 17:30:51 2020 +0200 cfg80211: Save the regulatory domain when setting custom regulatory When custom regulatory was set, only the channels setting was updated, but the regulatory domain was not saved. Fix it by saving it. Signed-off-by: Ilan Peer Signed-off-by: Luca Coelho Link: https://lore.kernel.org/r/iwlwifi.20201129172929.290fa5c5568a.Ic5732aa64de6ee97ae3578bd5779fc723ba489d1@changeid Signed-off-by: Johannes Berg net/wireless/reg.c | 8 ++++++++ 1 file changed, 8 insertions(+) culprit signature: f605a9821f9d75218a8817eaa30444f8a7f2bb3859300ed8e7a644f9517ae483 parent signature: debc227a78eddaa6ec5fb624d9e00696c80dc7076fbdeb0be2aa3bce14573675 revisions tested: 14, total time: 2h37m47.929589503s (build: 1h3m29.214846857s, test: 1h33m0.763061989s) first bad commit: beee246951571cc5452176f3dbfe9aa5a10ba2b9 cfg80211: Save the regulatory domain when setting custom regulatory recipients (to): ["ilan.peer@intel.com" "johannes.berg@intel.com" "luciano.coelho@intel.com"] recipients (cc): [] crash: WARNING: suspicious RCU usage in get_wiphy_regdom ============================= WARNING: suspicious RCU usage 5.10.0-rc6-syzkaller #0 Not tainted ----------------------------- net/wireless/reg.c:144 suspicious rcu_dereference_check() usage! other info that might help us debug this: rcu_scheduler_active = 2, debug_locks = 1 2 locks held by syz-executor.2/10216: #0: ffffffff8503b0f0 (cb_lock){++++}-{3:3} , at: genl_rcv+0x10/0x30 net/netlink/genetlink.c:810 #1: ffffffff8503b188 ( genl_mutex ){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] ){+.+.}-{3:3}, at: genl_rcv_msg+0x114/0x1e0 net/netlink/genetlink.c:798 stack backtrace: CPU: 0 PID: 10216 Comm: syz-executor.2 Not tainted 5.10.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x77/0x97 lib/dump_stack.c:118 get_wiphy_regdom+0x50/0x60 net/wireless/reg.c:144 wiphy_apply_custom_regulatory+0xaf/0x110 net/wireless/reg.c:2574 mac80211_hwsim_new_radio+0x9b9/0x1640 drivers/net/wireless/mac80211_hwsim.c:3247 hwsim_new_radio_nl+0x29c/0x3f0 drivers/net/wireless/mac80211_hwsim.c:3822 genl_family_rcv_msg_doit.isra.18+0x102/0x140 net/netlink/genetlink.c:739 genl_family_rcv_msg net/netlink/genetlink.c:783 [inline] genl_rcv_msg+0xd8/0x1e0 net/netlink/genetlink.c:800 netlink_rcv_skb+0x49/0xf0 net/netlink/af_netlink.c:2494 genl_rcv+0x1f/0x30 net/netlink/genetlink.c:811 netlink_unicast_kernel net/netlink/af_netlink.c:1304 [inline] netlink_unicast+0x19a/0x270 net/netlink/af_netlink.c:1330 netlink_sendmsg+0x248/0x480 net/netlink/af_netlink.c:1919 sock_sendmsg_nosec net/socket.c:651 [inline] sock_sendmsg+0x2b/0x40 net/socket.c:671 ____sys_sendmsg+0x1ed/0x230 net/socket.c:2331 ___sys_sendmsg+0x77/0xb0 net/socket.c:2385 __sys_sendmsg+0x52/0xa0 net/socket.c:2418 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45e159 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f8c7bc14c68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e159 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 000000000119bfc0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119bf8c R13: 00007ffd6b8bbddf R14: 00007f8c7bc159c0 R15: 000000000119bf8c