netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v2 00/14] net: use strict checks in doit handlers
@ 2019-01-18 18:46 Jakub Kicinski
  2019-01-18 18:46 ` [PATCH net-next v2 01/14] net: netlink: add helper to retrieve NETLINK_F_STRICT_CHK Jakub Kicinski
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Jakub Kicinski @ 2019-01-18 18:46 UTC (permalink / raw)
  To: davem, dsahern; +Cc: netdev, oss-drivers, Jakub Kicinski

Hi!

This series extends strict argument checking to doit handlers
of the GET* nature.  This is a bit tricky since strict checking
flag has already been released..

iproute2 did not have a release with strick checks enabled,
and it will only need a minor one-liner to pass strick checks
after all the work that DaveA has already done.

Big thanks to Dave Ahern for help and guidence.

v2:
 - remove unnecessary check in patch 5 (Nicolas);
 - add path 7 (DaveA);
 - improve messages in patch 8 (DaveA).

Jakub Kicinski (14):
  net: netlink: add helper to retrieve NETLINK_F_STRICT_CHK
  rtnetlink: stats: validate attributes in get as well as dumps
  rtnetlink: stats: reject requests for unknown stats
  rtnetlink: ifinfo: perform strict checks also for doit handler
  net: namespace: perform strict checks also for doit handlers
  net: ipv4: netconf: perform strict checks also for doit handlers
  net: ipv4: route: perform strict checks also for doit handlers
  net: ipv4: ipmr: perform strict checks also for doit handlers
  net: ipv6: addr: perform strict checks also for doit handlers
  net: ipv6: netconf: perform strict checks also for doit handlers
  net: ipv6: addrlabel: perform strict checks also for doit handlers
  net: ipv6: route: perform strict checks also for doit handlers
  net: mpls: route: perform strict checks also for doit handlers
  net: mpls: netconf: perform strict checks also for doit handlers

 include/linux/netlink.h  |   1 +
 net/core/net_namespace.c |  38 +++++++++++++-
 net/core/rtnetlink.c     | 111 +++++++++++++++++++++++++++++++--------
 net/ipv4/devinet.c       |  43 +++++++++++++--
 net/ipv4/ipmr.c          |  61 +++++++++++++++++++--
 net/ipv4/route.c         |  72 ++++++++++++++++++++++++-
 net/ipv6/addrconf.c      |  90 +++++++++++++++++++++++++++++--
 net/ipv6/addrlabel.c     |  47 ++++++++++++++++-
 net/ipv6/route.c         |  70 +++++++++++++++++++++++-
 net/mpls/af_mpls.c       | 103 ++++++++++++++++++++++++++++++++++--
 net/netlink/af_netlink.c |   8 +++
 11 files changed, 595 insertions(+), 49 deletions(-)

-- 
2.19.2


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

end of thread, other threads:[~2019-01-19 18:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-18 18:46 [PATCH net-next v2 00/14] net: use strict checks in doit handlers Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 01/14] net: netlink: add helper to retrieve NETLINK_F_STRICT_CHK Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 02/14] rtnetlink: stats: validate attributes in get as well as dumps Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 03/14] rtnetlink: stats: reject requests for unknown stats Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 04/14] rtnetlink: ifinfo: perform strict checks also for doit handler Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 05/14] net: namespace: perform strict checks also for doit handlers Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 06/14] net: ipv4: netconf: " Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 07/14] net: ipv4: route: " Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 08/14] net: ipv4: ipmr: " Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 09/14] net: ipv6: addr: " Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 10/14] net: ipv6: netconf: " Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 11/14] net: ipv6: addrlabel: " Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 12/14] net: ipv6: route: " Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 13/14] net: mpls: " Jakub Kicinski
2019-01-18 18:46 ` [PATCH net-next v2 14/14] net: mpls: netconf: " Jakub Kicinski
2019-01-19 18:10 ` [PATCH net-next v2 00/14] net: use strict checks in " David Miller

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