]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
UBUNTU: SAUCE: selftests: net: ip_defrag: limit packet to 1000 fragments
authorThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 25 Mar 2020 16:00:20 +0000 (13:00 -0300)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 3 Apr 2020 13:17:23 +0000 (15:17 +0200)
The ip_defrag selftest will fail when run with a conntrack rule because
it might push more than a 1000 fragments through loopback. This will hit
the backlog limit, causing fragments to be dropped, leading to test
failures.

This is considered a real bug by Eric Dumazet, so the test change is
just a workaround so we can keep testing for other regressions while
avoiding this particular failure.

BugLink: https://bugs.launchpad.net/bugs/1870543
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
tools/testing/selftests/net/ip_defrag.c

index c0c9ecb891e1d78585e0db95fd8783be31bc563a..b53fb67f8e5efd284c29da4af4f8aa4fa9f1529b 100644 (file)
@@ -36,7 +36,7 @@ const struct in6_addr addr6 = IN6ADDR_LOOPBACK_INIT;
 static int payload_len;
 static int max_frag_len;
 
-#define MSG_LEN_MAX    10000   /* Max UDP payload length. */
+#define MSG_LEN_MAX    8000    /* Max UDP payload length. */
 
 #define IP4_MF         (1u << 13)  /* IPv4 MF flag. */
 #define IP6_MF         (1)  /* IPv6 MF flag. */