• Jason A. Donenfeld's avatar
    wireguard: selftests: actually test for routing loops · 782c72af
    Jason A. Donenfeld authored
    We previously removed the restriction on looping to self, and then added
    a test to make sure the kernel didn't blow up during a routing loop. The
    kernel didn't blow up, thankfully, but on certain architectures where
    skb fragmentation is easier, such as ppc64, the skbs weren't actually
    being discarded after a few rounds through. But the test wasn't catching
    this. So actually test explicitly for massive increases in tx to see if
    we have a routing loop. Note that the actual loop problem will need to
    be addressed in a different commit.
    
    Fixes: b673e24a ("wireguard: socket: remove errant restriction on looping to self")
    Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    782c72af
netns.sh 27.7 KB