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)
commit7de333090a803a6678c3848d4eed1031bbc3dc95
tree2514d96e1b568a191ea18700470972e7a439c85a
parent639c1b2625af66501b24c8082231a83d4f5ad56b
parent676f4bb168ca855adb957ad7f470984d9391c320
Merge branch 'ipv4-Prevent-user-triggerable-warning'

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>