From: David Miller <davem@davemloft.net>
To: jbainbri@redhat.com
Cc: kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org,
kaber@trash.net, netdev@vger.kernel.org
Subject: Re: [PATCH] ipv6: check raw payload size correctly in ioctl
Date: Wed, 26 Apr 2017 15:00:04 -0400 (EDT) [thread overview]
Message-ID: <20170426.150004.494655279490216482.davem@davemloft.net> (raw)
In-Reply-To: <1493167407-27969-1-git-send-email-jbainbri@redhat.com>
From: Jamie Bainbridge <jbainbri@redhat.com>
Date: Wed, 26 Apr 2017 10:43:27 +1000
> 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>
Applied and queued up for -stable, thanks.
prev parent reply other threads:[~2017-04-26 19:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 0:43 [PATCH] ipv6: check raw payload size correctly in ioctl Jamie Bainbridge
2017-04-26 19:00 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170426.150004.494655279490216482.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=jbainbri@redhat.com \
--cc=jmorris@namei.org \
--cc=kaber@trash.net \
--cc=kuznet@ms2.inr.ac.ru \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).