netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/7] wifi: cfg80211: Annotate with __counted_by
@ 2023-08-17 21:15 Kees Cook
  2023-08-17 21:15 ` [PATCH 1/7] wifi: cfg80211: Annotate struct cfg80211_acl_data " Kees Cook
                   ` (6 more replies)
  0 siblings, 7 replies; 23+ messages in thread
From: Kees Cook @ 2023-08-17 21:15 UTC (permalink / raw)
  To: Johannes Berg
  Cc: Kees Cook, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Nathan Chancellor, Nick Desaulniers, Tom Rix,
	linux-kernel, linux-wireless, netdev, llvm, linux-hardening

Hi,

This annotates several structures with the coming __counted_by attribute
for bounds checking of flexible arrays at run-time. As a note toward
applicability, had this mitigation been available already, the flaw
fixed in commit 6311071a0562 ("wifi: nl80211: fix integer overflow in
nl80211_parse_mbssid_elems()") would have already been unexploitable
(i.e. writes through an out-of-bounds index would have been blocked).

Thanks!

-Kees

Kees Cook (7):
  wifi: cfg80211: Annotate struct cfg80211_acl_data with __counted_by
  wifi: cfg80211: Annotate struct cfg80211_cqm_config with __counted_by
  wifi: cfg80211: Annotate struct cfg80211_mbssid_elems with
    __counted_by
  wifi: cfg80211: Annotate struct cfg80211_pmsr_request with
    __counted_by
  wifi: cfg80211: Annotate struct cfg80211_rnr_elems with __counted_by
  wifi: cfg80211: Annotate struct cfg80211_scan_request with
    __counted_by
  wifi: cfg80211: Annotate struct cfg80211_tid_config with __counted_by

 include/net/cfg80211.h | 12 ++++++------
 net/wireless/core.h    |  2 +-
 net/wireless/nl80211.c |  7 +++----
 net/wireless/pmsr.c    |  3 +--
 4 files changed, 11 insertions(+), 13 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2023-08-17 22:39 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-17 21:15 [PATCH 0/7] wifi: cfg80211: Annotate with __counted_by Kees Cook
2023-08-17 21:15 ` [PATCH 1/7] wifi: cfg80211: Annotate struct cfg80211_acl_data " Kees Cook
2023-08-17 21:21   ` Justin Stitt
2023-08-17 21:23   ` Gustavo A. R. Silva
2023-08-17 22:03   ` Jeff Johnson
2023-08-17 21:15 ` [PATCH 2/7] wifi: cfg80211: Annotate struct cfg80211_cqm_config " Kees Cook
2023-08-17 21:23   ` Gustavo A. R. Silva
2023-08-17 22:03   ` Jeff Johnson
2023-08-17 21:15 ` [PATCH 3/7] wifi: cfg80211: Annotate struct cfg80211_mbssid_elems " Kees Cook
2023-08-17 21:24   ` Gustavo A. R. Silva
2023-08-17 22:03   ` Jeff Johnson
2023-08-17 21:15 ` [PATCH 4/7] wifi: cfg80211: Annotate struct cfg80211_pmsr_request " Kees Cook
2023-08-17 21:24   ` Gustavo A. R. Silva
2023-08-17 22:03   ` Jeff Johnson
2023-08-17 21:15 ` [PATCH 5/7] wifi: cfg80211: Annotate struct cfg80211_rnr_elems " Kees Cook
2023-08-17 21:24   ` Gustavo A. R. Silva
2023-08-17 22:03   ` Jeff Johnson
2023-08-17 21:15 ` [PATCH 6/7] wifi: cfg80211: Annotate struct cfg80211_scan_request " Kees Cook
2023-08-17 21:24   ` Gustavo A. R. Silva
2023-08-17 22:03   ` Jeff Johnson
2023-08-17 21:15 ` [PATCH 7/7] wifi: cfg80211: Annotate struct cfg80211_tid_config " Kees Cook
2023-08-17 21:24   ` Gustavo A. R. Silva
2023-08-17 22:03   ` Jeff Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).