Skip to content

net: Cleanups for FORTIFY_SOURCE

Kees Cook bpf linux-hardening linux-rdma linux-wireless lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ipw2x00: Avoid field-overflowing memcpy()drivers/net/wireless/intel/ipw2x00/libipw_rx.c+17 -391 reply
2/3net/mlx5e: Avoid field-overflowing memcpy()drivers/net/ethernet/mellanox/mlx5/core/en.h drivers/net/ethernet/mellanox/mlx5/core/en/xdp.c+5 -30 replies
3/3pcmcia: ray_cs: Split memcpy() to avoid bounds check warningdrivers/net/wireless/ray_cs.c+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] net: Cleanups for FORTIFY_SOURCE

Hi,

In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memcpy(), memmove(), and memset(), avoid intentionally writing across neighboring fields.

These three changes have been living in my memcpy() series[1], but have no external dependencies. It's probably better to have these go via netdev.

Thanks!

-Kees

[1] https://lore.kernel.org/lkml/[email protected]/

Kees Cook (3):
ipw2x00: Avoid field-overflowing memcpy() net/mlx5e: Avoid field-overflowing memcpy()
pcmcia: ray_cs: Split memcpy() to avoid bounds check warning

 drivers/net/ethernet/mellanox/mlx5/core/en.h  |  4 +-
 .../net/ethernet/mellanox/mlx5/core/en/xdp.c  |  4 +-
 .../net/wireless/intel/ipw2x00/libipw_rx.c    | 56 ++++++-------------
 drivers/net/wireless/ray_cs.c                 |  4 +-
 4 files changed, 25 insertions(+), 43 deletions(-)
Signature · 1 line
2.30.2