From: Xin Long <lucien.xin@gmail•com>
To: network dev <netdev@vger•kernel.org>
Cc: davem@davemloft•net, kuba@kernel•org,
Eric Dumazet <edumazet@google•com>,
Paolo Abeni <pabeni@redhat•com>,
Stephen Hemminger <stephen@networkplumber•org>,
Patrick McHardy <kaber@trash•net>,
Thomas Graf <tgraf@infradead•org>,
Alexander Duyck <alexanderduyck@fb•com>,
Simon Horman <simon.horman@corigine•com>
Subject: [PATCHv2 net 0/3] rtnetlink: a couple of fixes in linkmsg validation
Date: Wed, 31 May 2023 12:01:41 -0400 [thread overview]
Message-ID: <cover.1685548598.git.lucien.xin@gmail.com> (raw)
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
next reply other threads:[~2023-05-31 16:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-31 16:01 Xin Long [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1685548598.git.lucien.xin@gmail.com \
--to=lucien.xin@gmail$(echo .)com \
--cc=alexanderduyck@fb$(echo .)com \
--cc=davem@davemloft$(echo .)net \
--cc=edumazet@google$(echo .)com \
--cc=kaber@trash$(echo .)net \
--cc=kuba@kernel$(echo .)org \
--cc=netdev@vger$(echo .)kernel.org \
--cc=pabeni@redhat$(echo .)com \
--cc=simon.horman@corigine$(echo .)com \
--cc=stephen@networkplumber$(echo .)org \
--cc=tgraf@infradead$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox