OSDN Git Service

Merge branch 'ipv4-Prevent-user-triggerable-warning'
authorDavid S. Miller <davem@davemloft.net>
Fri, 21 Dec 2018 00:42:39 +0000 (16:42 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Dec 2018 00:42:39 +0000 (16:42 -0800)
Ido Schimmel says:

====================
net: ipv4: Prevent user triggerable warning

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

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge