[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170822.102348.911807554303990268.davem@davemloft.net>
Date: Tue, 22 Aug 2017 10:23:48 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: sbrivio@...hat.com
Cc: netdev@...r.kernel.org, sd@...asysnail.net,
hannes@...essinduktion.org
Subject: Re: [PATCH net] ipv6: accept 64k - 1 packet length in
ip6_find_1stfragopt()
From: Stefano Brivio <sbrivio@...hat.com>
Date: Fri, 18 Aug 2017 14:40:53 +0200
> A packet length of exactly IPV6_MAXPLEN is allowed, we should
> refuse parsing options only if the size is 64KiB or more.
>
> While at it, remove one extra variable and one assignment which
> were also introduced by the commit that introduced the size
> check. Checking the sum 'offset + len' and only later adding
> 'len' to 'offset' doesn't provide any advantage over directly
> summing to 'offset' and checking it.
>
> Fixes: 6399f1fae4ec ("ipv6: avoid overflow of offset in ip6_find_1stfragopt")
> Signed-off-by: Stefano Brivio <sbrivio@...hat.com>
Applied, thanks.
Powered by blists - more mailing lists