diff options
author | John Haxby <john.haxby@oracle.com> | 2020-04-18 17:30:49 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-04-20 20:06:39 +0200 |
commit | 82c9ae440857840c56e05d4fb1427ee032531346 (patch) | |
tree | f8da3459495bae1fc99eb2c2e130ea4fd32de1ea /net/ipv6/ip6_flowlabel.c | |
parent | net: systemport: Omit superfluous error message in bcm_sysport_probe() (diff) | |
download | linux-82c9ae440857840c56e05d4fb1427ee032531346.tar.xz linux-82c9ae440857840c56e05d4fb1427ee032531346.zip |
ipv6: fix restrict IPV6_ADDRFORM operation
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@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_flowlabel.c')
0 files changed, 0 insertions, 0 deletions