]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tls: Use correct sk->sk_prot for IPV6
authorBoris Pismenny <borisp@mellanox.com>
Tue, 27 Feb 2018 12:18:39 +0000 (14:18 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Mar 2018 13:28:12 +0000 (08:28 -0500)
commitfa4baf633fc72a5010288a5eb4fa235a9f4886cb
tree6c573a3689af3ea981a79163b11cb9277bb495fb
parent5da33e1967096690b8bdb64f3d7515905e173741
tls: Use correct sk->sk_prot for IPV6

BugLink: http://bugs.launchpad.net/bugs/1755179
[ Upstream commit c113187d38ff85dc302a1bb55864b203ebb2ba10 ]

The tls ulp overrides sk->prot with a new tls specific proto structs.
The tls specific structs were previously based on the ipv4 specific
tcp_prot sturct.
As a result, attaching the tls ulp to an ipv6 tcp socket replaced
some ipv6 callback with the ipv4 equivalents.

This patch adds ipv6 tls proto structs and uses them when
attached to ipv6 sockets.

Fixes: 3c4d7559159b ('tls: kernel TLS support')
Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: Ilya Lesokhin <ilyal@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
net/tls/tls_main.c