]> git.baikalelectronics.ru Git - kernel.git/commit
flow dissector: correct size of storage for ARP
authorSimon Horman <simon.horman@netronome.com>
Mon, 3 Apr 2017 19:42:58 +0000 (15:42 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 21:46:45 +0000 (14:46 -0700)
commita35ac06d3a23e0fb6b87e652afdf014710b0cbc5
treeb79389a819445a306c89422b61ae74c1da375505
parentba4e657e86654a5d99b72d61d1ff0877ae544d71
flow dissector: correct size of storage for ARP

The last argument to __skb_header_pointer() should be a buffer large
enough to store struct arphdr. This can be a pointer to a struct arphdr
structure. The code was previously using a pointer to a pointer to
struct arphdr.

By my counting the storage available both before and after is 8 bytes on
x86_64.

Fixes: fa6f2a54d7ac ("flow disector: ARP support")
Reported-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Signed-off-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow_dissector.c