]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: tls: test for correct proto_ops
authorJakub Kicinski <kuba@kernel.org>
Wed, 24 Nov 2021 23:25:57 +0000 (15:25 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Nov 2021 03:28:17 +0000 (19:28 -0800)
commitc669d837f4dec1d158af45e6c327fecc6461f7ed
tree447e509a9cc5e22b97df783478176c7d9fdf608d
parentd78ae031cb028a19319833fcd143fdde1dc3fbba
selftests: tls: test for correct proto_ops

Previous patch fixes overriding callbacks incorrectly. Triggering
the crash in sendpage_locked would be more spectacular but it's
hard to get to, so take the easier path of proving this is broken
and call getname. We're currently getting IPv4 socket info on an
IPv6 socket.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/tls.c