Files
linux/net/ipv6
Jamie Bainbridge 5e52fffbb1 ipv6: check raw payload size correctly in ioctl
[ Upstream commit 105f5528b9 ]

In situations where an skb is paged, the transport header pointer and
tail pointer can be the same because the skb contents are in frags.

This results in ioctl(SIOCINQ/FIONREAD) incorrectly returning a
length of 0 when the length to receive is actually greater than zero.

skb->len is already correctly set in ip6_input_finish() with
pskb_pull(), so use skb->len as it always returns the correct result
for both linear and paged data.

Signed-off-by: Jamie Bainbridge <jbainbri@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-05-02 21:19:54 -07:00
..
2015-08-25 13:37:31 -07:00
2015-12-03 11:32:06 -05:00
2015-10-08 04:27:03 -07:00
2015-12-03 11:32:06 -05:00
2016-03-03 15:07:05 -08:00
2015-09-17 17:18:37 -07:00
2017-03-22 12:04:13 +01:00
2016-09-30 10:18:34 +02:00
2017-02-18 16:39:27 +01:00
2017-03-22 12:04:17 +01:00
2015-02-28 16:56:51 -05:00
2015-11-03 10:52:13 -05:00
2016-11-15 07:46:39 +01:00
2014-05-23 16:28:53 -04:00