Skip to content

rtnetlink: a couple of fixes in linkmsg validation

Xin Long 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 0 repliesApplied 3/3
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- not improve the multiple times validating in patch 1, and will do it in net-next, as Jakub suggested.

Patches in v2 All 3 applied

#Subject and filesSizeRepliesApplied
1/3rtnetlink: call validate_linkmsg in rtnl_create_linknet/core/rtnetlink.c+7 -10 repliesApplied
2/3rtnetlink: move IFLA_GSO_ tb check to validate_linkmsgnet/core/rtnetlink.c+19 -150 repliesApplied
3/3rtnetlink: add the missing IFLA_GRO_ tb check in validate_linkmsgnet/core/rtnetlink.c+12 -00 repliesApplied

Reviews trailers per patch

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

PatchSimon Horman
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 net 0/3] rtnetlink: a couple of fixes in linkmsg validation

validate_linkmsg() was introduced to do linkmsg validation for existing links. However, the new created links also need this linkmsg validation.

Add validate_linkmsg() check for link creating in Patch 1, and add more tb checks into validate_linkmsg() in Patch 2 and 3.

v2:
- not improve the multiple times validating in patch 1, and will do it in net-next, as Jakub suggested.

Xin Long (3):
rtnetlink: call validate_linkmsg in rtnl_create_link
rtnetlink: move IFLA_GSO_ tb check to validate_linkmsg
rtnetlink: add the missing IFLA_GRO_ tb check in validate_linkmsg

 net/core/rtnetlink.c | 54 +++++++++++++++++++++++++++++++-------------
 1 file changed, 38 insertions(+), 16 deletions(-)
Signature · 1 line
2.39.1