diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-21 23:31:17 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-06-22 00:02:39 -0600 |
commit | 4941d3b34b59dc39c23250425494f8dce19eedd0 (patch) | |
tree | d3e5aeec0bd2bdd543ed446cbad569cf7ebed65d /src/tests/netns.sh | |
parent | b8fbf4f4803ca1b2fa181ca3d2555cdb61f6f374 (diff) |
netns: workaround bad 5.2.y backport
ca7a03c4175 was backported to 5.2 to fix 7d9e5f422150, but 7d9e5f422150
wasn't added until 5.3, so this fix for a reference underflow in 5.3
becomes a memory leak in 5.2.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/tests/netns.sh')
-rwxr-xr-x | src/tests/netns.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/netns.sh b/src/tests/netns.sh index 11fd7f6..c83ddc7 100755 --- a/src/tests/netns.sh +++ b/src/tests/netns.sh @@ -346,7 +346,8 @@ ip1 -4 rule add table main suppress_prefixlength 0 if [[ $(ip1 -4 rule show all) == *suppress_prefixlength* ]]; then # Flood the pings instead of sending just one, to trigger routing table reference counting bugs. n1 ping -W 1 -c 100 -f 192.168.99.7 - n1 ping -W 1 -c 100 -f abab::1111 + # ca7a03c got ported to 5.2 when it shouldn't have. + [[ $(< /proc/version) =~ ^Linux\ version\ 5\.2[.\ ] ]] || n1 ping -W 1 -c 100 -f abab::1111 fi # Have ns2 NAT into wg0 packets from ns0, but return an icmp error along the right route. |