Skip to content

Fix possible OOB write when using rule_buf

Hangyu Hua linux-arm-kernel linux-mediatek lkml netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesApplied 3/3
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

[PATCH v2 1/3]: use -EMSGSIZE instead of truncating the list sliently. [PATCH v2 3/3]: drop the brackets.

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3net: ethernet: bcmasp: fix possible OOB write in bcmasp_netfilt_get_all_active()drivers/net/ethernet/broadcom/asp2/bcmasp.c drivers/net/ethernet/broadcom/asp2/bcmasp.h drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c+10 -51 replyApplied
2/3net: ethernet: mvpp2_main: fix possible OOB write in mvpp2_ethtool_get_rxnfc()drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c+5 -02 repliesApplied
3/3net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in mtk_hwlro_get_fdir_all()drivers/net/ethernet/mediatek/mtk_eth_soc.c+3 -01 replyApplied

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMarcin WojtasRussell King (Oracle)Simon Horman
1/3R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/3] Fix possible OOB write when using rule_buf

ADD bounds checks in bcmasp_netfilt_get_all_active and mvpp2_ethtool_get_rxnfc and mtk_hwlro_get_fdir_all when using rule_buf from ethtool_get_rxnfc.

v2:
[PATCH v2 1/3]: use -EMSGSIZE instead of truncating the list sliently. [PATCH v2 3/3]: drop the brackets.

Hangyu Hua (3):
net: ethernet: bcmasp: fix possible OOB write in
bcmasp_netfilt_get_all_active()
net: ethernet: mvpp2_main: fix possible OOB write in
mvpp2_ethtool_get_rxnfc()
net: ethernet: mtk_eth_soc: fix possible NULL pointer dereference in
mtk_hwlro_get_fdir_all()

 drivers/net/ethernet/broadcom/asp2/bcmasp.c         | 9 +++++++--
 drivers/net/ethernet/broadcom/asp2/bcmasp.h         | 4 ++--
 drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 2 +-
 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c     | 5 +++++
 drivers/net/ethernet/mediatek/mtk_eth_soc.c         | 3 +++
 5 files changed, 18 insertions(+), 5 deletions(-)
Signature · 1 line
2.34.1