deepin-kernel/net/mac80211
Johannes Berg 2878d3ee9d wifi: mac80211: drop invalid source address OCB frames
[ Upstream commit d1b1a5eb27c4948e8811cf4dbb05aaf3eb10700c ]

In OCB, don't accept frames from invalid source addresses
(and in particular don't try to create stations for them),
drop the frames instead.

Reported-by: syzbot+8b512026a7ec10dcbdd9@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/r/6788d2d9.050a0220.20d369.0028.GAE@google.com/
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Tested-by: syzbot+8b512026a7ec10dcbdd9@syzkaller.appspotmail.com
Link: https://patch.msgid.link/20250616171838.7433379cab5d.I47444d63c72a0bd58d2e2b67bb99e1fea37eec6f@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 5aebb9aa538a7a241a4db84a41540703c62bec11)
2025-07-14 10:42:17 +08:00
..
Kconfig mac80211: MAC80211_MESSAGE_TRACING should depend on TRACING 2024-12-10 20:43:28 +08:00
Makefile wifi: mac80211: move link code to a new file 2022-09-03 17:02:25 +02:00
aead_api.c
aead_api.h
aes_ccm.h
aes_cmac.c
aes_cmac.h
aes_gcm.h
aes_gmac.c
aes_gmac.h
agg-rx.c wifi: mac80211: remove support for AddBA with fragmentation 2022-10-07 15:24:31 +02:00
agg-tx.c wifi: mac80211: fix NULL dereference at band check in starting tx ba session 2024-12-10 20:43:37 +08:00
airtime.c wifi: mac8021: fix possible oob access in ieee80211_get_rate_duration 2022-11-25 12:45:53 +01:00
cfg.c wifi: mac80211: Fix SMPS handling in the context of MLO 2025-04-16 17:13:53 +08:00
chan.c wifi: mac80211: chan: chandef is non-NULL for reserved 2025-07-14 10:42:15 +08:00
debug.h wifi: mac80211: Add getter functions for vif MLD state 2023-06-14 12:20:08 +02:00
debugfs.c wifi: mac80211: remove return value check of debugfs_create_dir() 2023-04-20 11:46:07 +02:00
debugfs.h
debugfs_key.c wifi: mac80211: reorg some iface data structs for MLD 2022-06-20 12:55:06 +02:00
debugfs_key.h
debugfs_netdev.c wifi: mac80211: add/remove driver debugfs entries as appropriate 2025-02-21 15:55:05 +08:00
debugfs_netdev.h wifi: mac80211: handle debugfs when switching to/from MLO 2025-02-21 15:55:05 +08:00
debugfs_sta.c wifi: mac80211: add eht_capa debugfs field 2023-06-19 17:34:55 +02:00
debugfs_sta.h wifi: mac80211: add API to show the link STAs in debugfs 2022-10-07 15:23:41 +02:00
driver-ops.c wifi: mac80211: add/remove driver debugfs entries as appropriate 2025-02-21 15:55:05 +08:00
driver-ops.h wifi: mac80211: don't flush non-uploaded STAs 2025-02-10 01:59:56 +08:00
drop.h wifi: mac80211: split ieee80211_drop_unencrypted_mgmt() return value 2025-02-21 15:55:05 +08:00
eht.c wifi: mac80211: add helpers to access sband iftype data 2023-06-14 11:57:29 +02:00
ethtool.c wifi: mac80211: read ethtool's sta_stats from sinfo 2022-08-26 09:56:54 +02:00
fils_aead.c wifi: mac80211: Do not include crypto/algapi.h 2023-08-24 08:42:36 +02:00
fils_aead.h
he.c wifi: mac80211: correctly parse Spatial Reuse Parameter Set element 2024-12-10 20:26:32 +08:00
ht.c wifi: mac80211: fix SMPS status handling 2025-04-16 17:13:53 +08:00
ibss.c wifi: mac80211: work around Cisco AP 9115 VHT MPDU length 2023-09-25 08:41:27 +02:00
ieee80211_i.h wifi: mac80211: Add link iteration macro for link data 2025-07-14 10:42:15 +08:00
iface.c wifi: mac80211: Purge vif txq in ieee80211_do_stop() 2025-05-09 18:47:30 +08:00
key.c wifi: mac80211: skip non-uploaded keys in ieee80211_iter_keys 2024-12-10 20:43:28 +08:00
key.h wifi: mac80211: implement link switching 2022-09-06 10:17:20 +02:00
led.c leds: Change led_trigger_blink[_oneshot]() delay parameters to pass-by-value 2023-05-25 12:16:27 +01:00
led.h leds: Change led_trigger_blink[_oneshot]() delay parameters to pass-by-value 2023-05-25 12:16:27 +01:00
link.c wifi: mac80211: finish link init before RCU publish 2025-07-14 10:42:15 +08:00
main.c wifi: mac80211: Set n_channels after allocating struct cfg80211_scan_request 2025-05-26 10:36:11 +08:00
mesh.c wifi: mac80211: mesh: fix some kdoc warnings 2025-02-21 15:55:05 +08:00
mesh.h wifi: mac80211: split mesh fast tx cache into local/proxied/forwarded 2024-05-05 17:12:09 +08:00
mesh_hwmp.c wifi: mac80211: do not offer a mesh path if forwarding is disabled 2025-07-03 11:32:03 +08:00
mesh_pathtbl.c wifi: mac80211: mesh: fix some kdoc warnings 2025-02-21 15:55:05 +08:00
mesh_plink.c wifi: mac80211: mesh: fix some kdoc warnings 2025-02-21 15:55:05 +08:00
mesh_ps.c wifi: mac80211: mesh: fix some kdoc warnings 2025-02-21 15:55:05 +08:00
mesh_sync.c wifi: mac80211: mesh: fix some kdoc warnings 2025-02-21 15:55:05 +08:00
michael.c
michael.h
mlme.c wifi: mac80211: remove misplaced drv_mgd_complete_tx() call 2025-06-10 16:17:56 +08:00
ocb.c wifi: mac80211: use wiphy work for sdata->work 2023-06-07 19:53:18 +02:00
offchannel.c wifi: mac80211: fix a expired vs. cancel race in roc 2025-02-21 15:55:05 +08:00
pm.c
rate.c wifi: mac80211: don't use rate mask for offchannel TX either 2024-12-10 20:41:42 +08:00
rate.h wifi: mac80211: make ieee80211_check_rate_mask() link-aware 2022-07-15 11:43:21 +02:00
rc80211_minstrel_ht.c mac80211: minstrel_ht: remove unused n_supported variable 2023-03-30 11:21:17 +02:00
rc80211_minstrel_ht.h wifi: mac80211: minstrel_ht: remove unused has_mrr member from struct minstrel_priv 2022-10-07 15:25:05 +02:00
rc80211_minstrel_ht_debugfs.c
rx.c wifi: mac80211: drop invalid source address OCB frames 2025-07-14 10:42:17 +08:00
s1g.c wifi: mac80211: Set TWT Information Frame Disabled bit as 1 2022-11-02 09:50:40 +01:00
scan.c Revert "wifi: mac80211: fix RCU list iterations" 2024-12-10 20:43:45 +08:00
spectmgmt.c wifi: mac80211: separate out connection downgrade flags 2022-07-15 11:43:14 +02:00
sta_info.c wifi: mac80211: flush the station before moving it to UN-AUTHORIZED state 2025-04-14 15:50:59 +08:00
sta_info.h wifi: mac80211: track capability/opmode NSS separately 2024-12-10 20:40:05 +08:00
status.c wifi: mac80211: fix SMPS status handling 2025-04-16 17:13:53 +08:00
tdls.c wifi: mac80211: make mgd_protect_tdls_discover MLO-aware 2024-04-26 20:46:38 +08:00
tkip.c
tkip.h
trace.c
trace.h wifi: mac80211: add support for mld in ieee80211_chswitch_done 2024-04-26 20:46:36 +08:00
trace_msg.h mac80211: tracing: Use the new __vstring() helper 2022-07-24 19:11:17 -04:00
tx.c wifi: mac80211: VLAN traffic in multicast path 2025-07-03 11:32:03 +08:00
util.c wifi: mac80211: fix beacon interval calculation overflow 2025-07-09 09:50:00 +08:00
vht.c wifi: mac80211: track capability/opmode NSS separately 2024-12-10 20:40:05 +08:00
wep.c wifi: mac80211: remove RX_DROP_UNUSABLE 2025-02-21 15:55:05 +08:00
wep.h
wme.c wifi: mac80211: fix qos on mesh interfaces 2023-03-22 13:46:38 +01:00
wme.h wifi: mac80211: Drop support for TX push path 2022-10-10 11:06:14 +02:00
wpa.c wifi: mac80211: remove RX_DROP_UNUSABLE 2025-02-21 15:55:05 +08:00
wpa.h wifi: mac80211: remove cipher scheme support 2022-06-10 15:35:53 +02:00