mbox series

[net,0/3] rtnetlink: a couple of fixes in linkmsg validation

Message ID cover.1685051273.git.lucien.xin@gmail.com (mailing list archive)
Headers show
Series rtnetlink: a couple of fixes in linkmsg validation | expand

Message

Xin Long May 25, 2023, 9:49 p.m. UTC
validate_linkmsg() was introduced to do linkmsg validation for existing
links. However, the new created links also need this linkmsg validation.

Move it to the correct place in Patch 1, and add more tb checks in
Patch 2 and 3.

Xin Long (3):
  rtnetlink: move validate_linkmsg into 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 | 70 +++++++++++++++++++++++++++-----------------
 1 file changed, 43 insertions(+), 27 deletions(-)