mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] staging: octeon: cleanups and safety fixes in ethernet-tx.c
@ 2026-11-07 11:28 Oscar Alejandro Sánchez Lucero via B4 Relay
  2026-11-07 11:28 ` [PATCH 1/2] staging: octeon: fix return type and void arithmetic in cvm_oct_xmit_pow() Oscar Alejandro Sánchez Lucero via B4 Relay
  2026-11-07 11:28 ` [PATCH 2/2] staging: octeon: prevent buffer overflow " Oscar Alejandro Sánchez Lucero via B4 Relay
  0 siblings, 2 replies; 3+ messages in thread
From: Oscar Alejandro Sánchez Lucero via B4 Relay @ 2026-11-07 11:28 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: linux-staging, linux-kernel, Oscar Alejandro Sánchez Lucero

This series fixes memory safety and API correctness issues found in
drivers/staging/octeon/ethernet-tx.c during static analysis:

1. Fix return types in cvm_oct_xmit_pow() to use NETDEV_TX_OK instead of
   naked integer '0', and change pointers to u8 * to avoid non-standard
   void pointer arithmetic warnings.
2. Add packet length validation to avoid a buffer overflow when copying
   into the FPA packet pool, and bound WQE data memcpys with min_t() to
   prevent out-of-bounds reads on short/malformed frames.

Signed-off-by: Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>
---
Oscar Alejandro Sánchez Lucero (2):
      staging: octeon: fix return type and void arithmetic in cvm_oct_xmit_pow()
      staging: octeon: prevent buffer overflow in cvm_oct_xmit_pow()

 drivers/staging/octeon/ethernet-tx.c | 34 ++++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 12 deletions(-)
---
base-commit: ddfe51b0a0f5dc9e415cc2c8ad8db17532dd426b
change-id: 20261107-octeon-tx-fixes-bf70dea7c3d0

Best regards,
-- 
Oscar Alejandro Sánchez Lucero <aleszlucero@gmail.com>



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

end of thread, other threads:[~2026-11-07 11:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-07 11:28 [PATCH 0/2] staging: octeon: cleanups and safety fixes in ethernet-tx.c Oscar Alejandro Sánchez Lucero via B4 Relay
2026-11-07 11:28 ` [PATCH 1/2] staging: octeon: fix return type and void arithmetic in cvm_oct_xmit_pow() Oscar Alejandro Sánchez Lucero via B4 Relay
2026-11-07 11:28 ` [PATCH 2/2] staging: octeon: prevent buffer overflow " Oscar Alejandro Sánchez Lucero via B4 Relay

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

all inboxes | Powered by JetHome®