summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/wireguard
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-03-30 04:31:24 +0300
committerJakub Kicinski <kuba@kernel.org>2022-03-31 05:14:08 +0300
commitec59f128a9bd4255798abb1e06ac3b442f46ef68 (patch)
treeda3e96ab89bcc590a35ecad49e0cb6186267a7c0 /tools/testing/selftests/wireguard
parentc9ad266bbef58dcbb6e74a6dbc5c4c2ed166e9b7 (diff)
downloadlinux-ec59f128a9bd4255798abb1e06ac3b442f46ef68.tar.xz
wireguard: queueing: use CFI-safe ptr_ring cleanup function
We make too nuanced use of ptr_ring to entirely move to the skb_array wrappers, but we at least should avoid the naughty function pointer cast when cleaning up skbs. Otherwise RAP/CFI will honk at us. This patch uses the __skb_array_destroy_skb wrapper for the cleanup, rather than directly providing kfree_skb, which is what other drivers in the same situation do too. Reported-by: PaX Team <pageexec@freemail.hu> Fixes: 886fcee939ad ("wireguard: receive: use ring buffer for incoming handshakes") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/wireguard')
0 files changed, 0 insertions, 0 deletions