Re: [PATCH 1/1] ipv6: fix restrict IPV6_ADDRFORM operation

From: David Miller
Date: Mon Apr 20 2020 - 14:07:28 EST


From: John Haxby <john.haxby@xxxxxxxxxx>
Date: Sat, 18 Apr 2020 16:30:49 +0100

> Commit b6f6118901d1 ("ipv6: restrict IPV6_ADDRFORM operation") fixed a
> problem found by syzbot an unfortunate logic error meant that it
> also broke IPV6_ADDRFORM.
>
> Rearrange the checks so that the earlier test is just one of the series
> of checks made before moving the socket from IPv6 to IPv4.
>
> Fixes: b6f6118901d1 ("ipv6: restrict IPV6_ADDRFORM operation")
> Signed-off-by: John Haxby <john.haxby@xxxxxxxxxx>

Applied, thanks.