From: David Miller <davem@davemloft.net>
To: lorenzo.bianconi@redhat.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net v2] ipv6: fix access to non-linear packet in ndisc_fill_redirect_hdr_option()
Date: Fri, 09 Mar 2018 11:17:34 -0500 (EST) [thread overview]
Message-ID: <20180309.111734.1251799637977334734.davem@davemloft.net> (raw)
In-Reply-To: <abfba017b0aa08b0d458489c1475b03b6784a4f4.1520524336.git.lorenzo.bianconi@redhat.com>
From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Date: Thu, 8 Mar 2018 17:00:02 +0100
> Fix the following slab-out-of-bounds kasan report in
> ndisc_fill_redirect_hdr_option when the incoming ipv6 packet is not
> linear and the accessed data are not in the linear data region of orig_skb.
...
> The test scenario to trigger the issue consists of 4 devices:
> - H0: data sender, connected to LAN0
> - H1: data receiver, connected to LAN1
> - GW0 and GW1: routers between LAN0 and LAN1. Both of them have an
> ethernet connection on LAN0 and LAN1
> On H{0,1} set GW0 as default gateway while on GW0 set GW1 as next hop for
> data from LAN0 to LAN1.
> Moreover create an ip6ip6 tunnel between H0 and H1 and send 3 concurrent
> data streams (TCP/UDP/SCTP) from H0 to H1 through ip6ip6 tunnel (send
> buffer size is set to 16K). While data streams are active flush the route
> cache on HA multiple times.
> I have not been able to identify a given commit that introduced the issue
> since, using the reproducer described above, the kasan report has been
> triggered from 4.14 and I have not gone back further.
>
> Reported-by: Jianlin Shi <jishi@redhat.com>
> Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
> Reviewed-by: Eric Dumazet <edumazet@google.com>
> Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Applied and queued up for -stable, thanks!
prev parent reply other threads:[~2018-03-09 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1520524336.git.lorenzo.bianconi@redhat.com>
2018-03-08 16:00 ` [PATCH net v2] ipv6: fix access to non-linear packet in ndisc_fill_redirect_hdr_option() Lorenzo Bianconi
2018-03-09 16:17 ` 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=20180309.111734.1251799637977334734.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=lorenzo.bianconi@redhat.com \
--cc=netdev@vger.kernel.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).