netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] UAPI: ethtool: Avoid flex-array in struct ethtool_link_settings
@ 2024-11-15 20:43 Kees Cook
  2024-11-15 20:43 ` [PATCH 1/3] Revert "net: ethtool: Avoid thousands of -Wflex-array-member-not-at-end warnings" Kees Cook
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Kees Cook @ 2024-11-15 20:43 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Kees Cook, Gustavo A. R. Silva, David S. Miller, Andrew Lunn,
	Kory Maincent (Dent Project), Michael Chan, Andrew Lunn,
	Eric Dumazet, Paolo Abeni, Potnuri Bharat Teja,
	Christian Benvenuti, Satish Kharat, Manish Chopra, Simon Horman,
	Edward Cree, Przemek Kitszel, Heiner Kallweit, Ahmed Zaki,
	Rahul Rameshbabu, Ido Schimmel, Maxime Chevallier,
	Takeru Hayasaka, Jonathan Corbet, linux-kernel, netdev,
	linux-hardening

Hi,

This reverts the tagged struct group in struct ethtool_link_settings and
instead just removes the flexible array member from Linux's view as it
is entirely unused.

-Kees

Kees Cook (3):
  Revert "net: ethtool: Avoid thousands of
    -Wflex-array-member-not-at-end warnings"
  Revert "UAPI: ethtool: Use __struct_group() in struct
    ethtool_link_settings"
  UAPI: ethtool: Avoid flex-array in struct ethtool_link_settings

 .../net/ethernet/broadcom/bnxt/bnxt_ethtool.c |  6 +--
 .../ethernet/chelsio/cxgb4/cxgb4_ethtool.c    |  4 +-
 .../ethernet/chelsio/cxgb4vf/cxgb4vf_main.c   |  2 +-
 .../net/ethernet/cisco/enic/enic_ethtool.c    |  2 +-
 .../net/ethernet/qlogic/qede/qede_ethtool.c   |  4 +-
 include/linux/ethtool.h                       |  2 +-
 include/uapi/linux/ethtool.h                  | 40 ++++++++++---------
 net/ethtool/ioctl.c                           |  2 +-
 net/ethtool/linkinfo.c                        |  8 ++--
 net/ethtool/linkmodes.c                       | 18 ++++-----
 10 files changed, 44 insertions(+), 44 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2024-11-19  4:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-15 20:43 [PATCH 0/3] UAPI: ethtool: Avoid flex-array in struct ethtool_link_settings Kees Cook
2024-11-15 20:43 ` [PATCH 1/3] Revert "net: ethtool: Avoid thousands of -Wflex-array-member-not-at-end warnings" Kees Cook
2024-11-15 20:43 ` [PATCH 2/3] Revert "UAPI: ethtool: Use __struct_group() in struct ethtool_link_settings" Kees Cook
2024-11-15 20:43 ` [PATCH 3/3] UAPI: ethtool: Avoid flex-array in struct ethtool_link_settings Kees Cook
2024-11-15 21:50   ` Jakub Kicinski
2024-11-19  4:00 ` [PATCH 0/3] " patchwork-bot+netdevbpf

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