Skip to content
Commit af8afcf1 authored by Jason A. Donenfeld's avatar Jason A. Donenfeld Committed by Pablo Neira Ayuso
Browse files

wireguard: selftests: check that route_me_harder packets use the right sk



If netfilter changes the packet mark, the packet is rerouted. The
ip_route_me_harder family of functions fails to use the right sk, opting
to instead use skb->sk, resulting in a routing loop when used with
tunnels. With the next change fixing this issue in netfilter, test for
the relevant condition inside our test suite, since wireguard was where
the bug was discovered.

Reported-by: default avatarChen Minqiang <ptpt52@gmail.com>
Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent dceababa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment