[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20201230185725.GD30823@breakpoint.cc>
Date: Wed, 30 Dec 2020 19:57:25 +0100
From: Florian Westphal <fw@...len.de>
To: Visa Hankala <visa@...kala.org>
Cc: Florian Westphal <fw@...len.de>,
Steffen Klassert <steffen.klassert@...unet.com>,
Herbert Xu <herbert@...dor.apana.org.au>,
"David S. Miller" <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH v2] xfrm: Fix wraparound in xfrm_policy_addr_delta()
Visa Hankala <visa@...kala.org> wrote:
> Use three-way comparison for address components to avoid integer
> wraparound in the result of xfrm_policy_addr_delta(). This ensures
> that the search trees are built and traversed correctly.
>
> Treat IPv4 and IPv6 similarly by returning 0 when prefixlen == 0.
> Prefix /0 has only one equivalence class.
Acked-by: Florian Westphal <fw@...len.de>
Powered by blists - more mailing lists