Netdev List
 help / color / mirror / Atom feed
* [PATCH ethtool 0/2] harden module EEPROM length handling
@ 2026-08-31 10:41 Prabhakar Pujeri
  2026-08-31 10:41 ` [PATCH ethtool 1/2] netlink: module-eeprom: clamp data length to attribute payload size Prabhakar Pujeri
  2026-08-31 10:41 ` [PATCH ethtool 2/2] ethtool: validate module EEPROM offset and length Prabhakar Pujeri
  0 siblings, 2 replies; 3+ messages in thread
From: Prabhakar Pujeri @ 2026-08-31 10:41 UTC (permalink / raw)
  To: netdev; +Cc: Prabhakar Pujeri, Michal Kubecek

These patches keep module EEPROM reads within the lengths reported by the
kernel.  The netlink path now limits its copy to the received attribute,
and the ioctl path validates offset and length arithmetic before allocating
its response buffer.

Tested with make check in the default and --disable-netlink builds.

Prabhakar Pujeri (2):
  netlink: module-eeprom: clamp data length to attribute payload size
  ethtool: validate module EEPROM offset and length

 ethtool.c               | 9 ++++++++-
 netlink/module-eeprom.c | 8 ++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

-- 
2.55.0

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

end of thread, other threads:[~2026-08-31 10:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31 10:41 [PATCH ethtool 0/2] harden module EEPROM length handling Prabhakar Pujeri
2026-08-31 10:41 ` [PATCH ethtool 1/2] netlink: module-eeprom: clamp data length to attribute payload size Prabhakar Pujeri
2026-08-31 10:41 ` [PATCH ethtool 2/2] ethtool: validate module EEPROM offset and length Prabhakar Pujeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox