linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] wifi: Fix struct ieee80211_tim_ie::virtual_map
@ 2023-08-31 18:22 Jeff Johnson
  2023-08-31 18:22 ` [PATCH v3 1/2] wifi: cw1200: Avoid processing an invalid TIM IE Jeff Johnson
  2023-08-31 18:22 ` [PATCH v3 2/2] mac80211: Use flexible array in struct ieee80211_tim_ie Jeff Johnson
  0 siblings, 2 replies; 5+ messages in thread
From: Jeff Johnson @ 2023-08-31 18:22 UTC (permalink / raw)
  To: kernel, Kalle Valo, Toke Høiland-Jørgensen,
	Christian Lamparter, Stanislaw Gruszka, Helmut Schaa,
	Ping-Ke Shih, Johannes Berg, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Kees Cook
  Cc: linux-wireless, linux-kernel, netdev, Jeff Johnson

To align with [1] change struct ieee80211_tim_ie::virtual_map to be a
flexible array.

As a precursor, add a size check in a place where one is currently
missing.

[1] https://docs.kernel.org/process/deprecated.html#zero-length-and-one-element-arrays

Signed-off-by: Jeff Johnson <quic_jjohnson@quicinc.com>
---
Changes in v3:
- [PATCH 2/2] mac80211: Use flexible array in struct ieee80211_tim_ie
-     Complete rewrite based upon v2 discussion. As a result no driver changes are required
- Link to v2: https://lore.kernel.org/r/20230829-ieee80211_tim_ie-v2-0-fdaf19fb1c0e@quicinc.com

Changes in v2:
- Cover Letter
-     removed internal note
- [PATCH 2/2] mac80211: Use flexible array in struct ieee80211_tim_ie
-     Fixed typo: s/no/now/
- Link to v1: https://lore.kernel.org/r/20230828-ieee80211_tim_ie-v1-0-6d7a4bab70ef@quicinc.com

---
Jeff Johnson (2):
      wifi: cw1200: Avoid processing an invalid TIM IE
      mac80211: Use flexible array in struct ieee80211_tim_ie

 drivers/net/wireless/st/cw1200/txrx.c |  2 +-
 include/linux/ieee80211.h             | 13 ++++++++++---
 2 files changed, 11 insertions(+), 4 deletions(-)
---
base-commit: b32add2d20ea6e62f30a3c0a7c2fb306ec5ceb3d
change-id: 20230825-ieee80211_tim_ie-0391430af36d


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

end of thread, other threads:[~2023-09-18 17:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-31 18:22 [PATCH v3 0/2] wifi: Fix struct ieee80211_tim_ie::virtual_map Jeff Johnson
2023-08-31 18:22 ` [PATCH v3 1/2] wifi: cw1200: Avoid processing an invalid TIM IE Jeff Johnson
2023-09-18 14:28   ` Kalle Valo
2023-08-31 18:22 ` [PATCH v3 2/2] mac80211: Use flexible array in struct ieee80211_tim_ie Jeff Johnson
2023-08-31 19:18   ` Kees Cook

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).