aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorIlan Peer <[email protected]>2021-06-18 13:41:37 +0300
committerJohannes Berg <[email protected]>2021-06-23 11:29:14 +0200
commit45daaa1318410794de956fb8e9d06aed2dbb23d0 (patch)
treefc22b2a47304fdd7e0577d5b7f4a59de6a3c356f /tools/perf/scripts/python/bin/stackcollapse-record
parentdd3e4fc75b4ab8186a133cfe9d49666a2f8186e0 (diff)
mac80211: Properly WARN on HW scan before restart
The following race was possible: 1. The device driver requests HW restart. 2. A scan is requested from user space and is propagated to the driver. During this flow HW_SCANNING flag is set. 3. The thread that handles the HW restart is scheduled, and before starting the actual reconfiguration it checks that HW_SCANNING is not set. The flow does so without acquiring any lock, and thus the WARN fires. Fix this by checking that HW_SCANNING is on only after RTNL is acquired, i.e., user space scan request handling is no longer in transit. Signed-off-by: Ilan Peer <[email protected]> Signed-off-by: Luca Coelho <[email protected]> Link: https://lore.kernel.org/r/iwlwifi.20210618133832.8238ab3e19ab.I2693c581c70251472b4f9089e37e06fb2c18268f@changeid Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions