netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 net 0/3] rtnetlink: a couple of fixes in linkmsg validation
@ 2023-05-31 16:01 Xin Long
  2023-05-31 16:01 ` [PATCHv2 net 1/3] rtnetlink: call validate_linkmsg in rtnl_create_link Xin Long
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Xin Long @ 2023-05-31 16:01 UTC (permalink / raw)
  To: network dev
  Cc: davem, kuba, Eric Dumazet, Paolo Abeni, Stephen Hemminger,
	Patrick McHardy, Thomas Graf, Alexander Duyck, Simon Horman

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(-)

-- 
2.39.1


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

end of thread, other threads:[~2023-06-01 17:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-31 16:01 [PATCHv2 net 0/3] rtnetlink: a couple of fixes in linkmsg validation Xin Long
2023-05-31 16:01 ` [PATCHv2 net 1/3] rtnetlink: call validate_linkmsg in rtnl_create_link Xin Long
2023-05-31 16:01 ` [PATCHv2 net 2/3] rtnetlink: move IFLA_GSO_ tb check to validate_linkmsg Xin Long
2023-05-31 16:01 ` [PATCHv2 net 3/3] rtnetlink: add the missing IFLA_GRO_ tb check in validate_linkmsg Xin Long
2023-06-01 17:10 ` [PATCHv2 net 0/3] rtnetlink: a couple of fixes in linkmsg validation patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).