[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200226.202143.318859004492363807.davem@davemloft.net>
Date: Wed, 26 Feb 2020 20:21:43 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: edumazet@...gle.com
Cc: netdev@...r.kernel.org, eric.dumazet@...il.com,
syzbot+1938db17e275e85dc328@...kaller.appspotmail.com,
daniel@...earbox.net
Subject: Re: [PATCH net] ipv6: restrict IPV6_ADDRFORM operation
From: Eric Dumazet <edumazet@...gle.com>
Date: Tue, 25 Feb 2020 11:52:29 -0800
> IPV6_ADDRFORM is able to transform IPv6 socket to IPv4 one.
> While this operation sounds illogical, we have to support it.
>
> One of the things it does for TCP socket is to switch sk->sk_prot
> to tcp_prot.
>
> We now have other layers playing with sk->sk_prot, so we should make
> sure to not interfere with them.
>
> This patch makes sure sk_prot is the default pointer for TCP IPv6 socket.
...
> Fixes: 604326b41a6f ("bpf, sockmap: convert to generic sk_msg interface")
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
> Reported-by: syzbot+1938db17e275e85dc328@...kaller.appspotmail.com
Applied and queued up for -stable, thanks Eric.
Powered by blists - more mailing lists