All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2][next] wifi: brcmfmac: Replace one-element array with flexible-array member
@ 2022-11-14 23:00 Gustavo A. R. Silva
  2022-11-14 23:01 ` [PATCH 1/2][next] " Gustavo A. R. Silva
  2022-11-14 23:02 ` [PATCH 2/2][next] wifi: brcmfmac: Use struct_size() and array_size() in code ralated to struct brcmf_gscan_config Gustavo A. R. Silva
  0 siblings, 2 replies; 6+ messages in thread
From: Gustavo A. R. Silva @ 2022-11-14 23:00 UTC (permalink / raw)
  To: Arend van Spriel, Franky Lin, Hante Meuleman, Kalle Valo,
	David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni
  Cc: brcm80211-dev-list.pdl, SHA-cyfmac-dev-list, netdev,
	linux-wireless, linux-kernel, Gustavo A. R. Silva,
	linux-hardening

Hi!

This series aims to replace a one-element array with flexible-array
member in drivers/net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h

This helps with the ongoing efforts to tighten the FORTIFY_SOURCE
routines on memcpy() and help us make progress towards globally
enabling -fstrict-flex-arrays=3 [1].

Link: https://www.kernel.org/doc/html/v5.10/process/deprecated.html#zero-length-and-one-element-arrays
Link: https://github.com/KSPP/linux/issues/79
Link: https://gcc.gnu.org/pipermail/gcc-patches/2022-October/602902.html [1]

Gustavo A. R. Silva (2):
  wifi: brcmfmac: Replace one-element array with flexible-array member
  wifi: brcmfmac: Use struct_size() and array_size() in code ralated to
    struct brcmf_gscan_config

 .../net/wireless/broadcom/brcm80211/brcmfmac/fwil_types.h   | 2 +-
 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pno.c      | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2022-11-22 10:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 23:00 [PATCH 0/2][next] wifi: brcmfmac: Replace one-element array with flexible-array member Gustavo A. R. Silva
2022-11-14 23:01 ` [PATCH 1/2][next] " Gustavo A. R. Silva
2022-11-17 23:16   ` Kees Cook
2022-11-22 10:14   ` Kalle Valo
2022-11-14 23:02 ` [PATCH 2/2][next] wifi: brcmfmac: Use struct_size() and array_size() in code ralated to struct brcmf_gscan_config Gustavo A. R. Silva
2022-11-17 23:16   ` Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.