netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/2] net: ipv4: Prevent user triggerable warning
@ 2018-12-20 17:03 Ido Schimmel
  2018-12-20 17:03 ` [PATCH net 1/2] net: ipv4: Set skb->dev for output route resolution Ido Schimmel
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Ido Schimmel @ 2018-12-20 17:03 UTC (permalink / raw)
  To: netdev; +Cc: davem, willemb, dsahern, Alexander Petrovskiy, Ido Schimmel

Patch #1 prevents a user triaggerable warning in the flow dissector by
setting 'skb->dev' in skbs used for IPv4 output route get requests.

Patch #2 adds a test case that triggers the warning without the first
patch.

I have audited all the RTM_GETROUTE handlers and could not find any
other callpath where an skb is passed to the flow dissector with both
'skb->dev' and 'skb->sk' cleared.

Ido Schimmel (2):
  net: ipv4: Set skb->dev for output route resolution
  selftests: rtnetlink: Add a test case for multipath route get

 net/ipv4/route.c                         |  1 +
 tools/testing/selftests/net/rtnetlink.sh | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

-- 
2.20.0

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

end of thread, other threads:[~2018-12-21  1:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-20 17:03 [PATCH net 0/2] net: ipv4: Prevent user triggerable warning Ido Schimmel
2018-12-20 17:03 ` [PATCH net 1/2] net: ipv4: Set skb->dev for output route resolution Ido Schimmel
2018-12-21  1:51   ` Willem de Bruijn
2018-12-20 17:03 ` [PATCH net 2/2] selftests: rtnetlink: Add a test case for multipath route get Ido Schimmel
2018-12-21  0:42 ` [PATCH net 0/2] net: ipv4: Prevent user triggerable warning David Miller
2018-12-21  1:27 ` 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).