]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wireguard: selftests: load nf_conntrack if not present
authorHangbin Liu <liuhangbin@gmail.com>
Sun, 17 Nov 2024 21:20:29 +0000 (22:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:50:59 +0000 (19:50 +0100)
commit0d2ad72d100fc0b3c2516d973a1a9ae6552da30d
treec8ff89dd93ed54f561ed9752c16a94a98803b6a5
parentd425e975c16199710299cda81b0883f34aeb0325
wireguard: selftests: load nf_conntrack if not present

[ Upstream commit 0290abc9860917f1ee8b58309c2bbd740a39ee8e ]

Some distros may not load nf_conntrack by default, which will cause
subsequent nf_conntrack sets to fail. Load this module if it is not
already loaded.

Fixes: e7096c131e51 ("net: WireGuard secure network tunnel")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
[ Jason: add [[ -e ... ]] check so this works in the qemu harness. ]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Link: https://patch.msgid.link/20241117212030.629159-4-Jason@zx2c4.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/wireguard/netns.sh