linux/drivers/net/wireless
Martin Willi e8fa86b0bd wifi: mac80211_hwsim: Limit destroy_on_close radio removal to netgroup
[ Upstream commit c74619e760 ]

hwsim radios marked destroy_on_close are removed when the Netlink socket
that created them is closed. As the portid is not unique across network
namespaces, closing a socket in one namespace may remove radios in another
if it has the destroy_on_close flag set.

Instead of matching the network namespace, match the netgroup of the radio
to limit radio removal to those that have been created by the closing
Netlink socket. The netgroup of a radio identifies the network namespace
it was created in, and matching on it removes a destroy_on_close radio
even if it has been moved to another namespace.

Fixes: 100cb9ff40 ("mac80211_hwsim: Allow managing radios from non-initial namespaces")
Signed-off-by: Martin Willi <martin@strongswan.org>
Link: https://patch.msgid.link/20251103082436.30483-1-martin@strongswan.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-11-13 15:34:38 -05:00
..
admtek wifi: mac80211: inform the low level if drv_stop() is a suspend 2024-06-26 10:25:46 +02:00
ath Revert "wifi: ath10k: avoid unnecessary wait for service ready message" 2025-11-13 15:34:36 -05:00
atmel wifi: at76c50x: fix use after free access in at76_disconnect 2025-04-25 10:47:37 +02:00
broadcom wifi: brcmfmac: fix crash while sending Action Frames in standalone AP Mode 2025-11-13 15:33:55 -05:00
intel wifi: iwlwifi: fw: Add ASUS to PPAG and TAS list 2025-11-13 15:34:21 -05:00
intersil wifi: p54: prevent buffer-overflow in p54_rx_eeprom_readback() 2025-06-27 11:11:14 +01:00
marvell wifi: mwifiex: send world regulatory domain to driver 2025-10-15 12:00:08 +02:00
mediatek wifi: mt76: mt7996: fix memory leak on mt7996_mcu_sta_key_tlv error 2025-11-13 15:34:24 -05:00
microchip wifi: wilc1000: avoid buffer overflow in WID string configuration 2025-09-25 11:13:41 +02:00
purelifi wifi: plfxlc: Fix error handling in usb driver probe 2025-08-15 12:13:45 +02:00
quantenna wifi: cfg80211: handle DFS per link 2024-09-06 13:01:05 +02:00
ralink wifi: rt2x00: fix remove callback type mismatch 2025-07-17 18:37:17 +02:00
realtek wifi: rtw89: renew a completion for each H2C command waiting C2H event 2025-11-13 15:34:26 -05:00
rsi wifi: rsi: Remove an unused field in struct rsi_debugfs 2024-09-09 15:30:49 +03:00
silabs wifi: wfx: Fix error handling in wfx_core_init() 2024-12-05 14:01:51 +01:00
st wifi: cw1200: cap SSID length in cw1200_do_join() 2025-09-09 18:58:12 +02:00
ti wifi: wl1251: fix memory leak in wl1251_tx_work 2025-04-25 10:47:37 +02:00
virtual wifi: mac80211_hwsim: Limit destroy_on_close radio removal to netgroup 2025-11-13 15:34:38 -05:00
zydas wifi: zd1211rw: Fix potential NULL pointer dereference in zd_mac_tx_to_dev() 2025-07-17 18:37:16 +02:00
Kconfig wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00
Makefile wifi: remove orphaned rndis_wlan driver 2023-10-30 19:30:33 +02:00