diff options
author | Martin KaFai Lau <[email protected]> | 2020-10-12 16:49:40 -0700 |
---|---|---|
committer | Daniel Borkmann <[email protected]> | 2020-10-15 20:53:15 +0200 |
commit | 8a3feed90e75283f15f830b1051bf048e4127c91 (patch) | |
tree | 111329e7cc442c40da9fca527c45fcbc133af62b /net/unix/scm.c | |
parent | f58423aeab28f861b67933206f322f764f05787d (diff) |
bpf, selftest: Fix flaky tcp_hdr_options test when adding addr to lo
The tcp_hdr_options test adds a "::eB9F" addr to the lo dev.
However, this non loopback address will have a race on ipv6 dad
which may lead to EADDRNOTAVAIL error from time to time.
Even nodad is used in the iproute2 command, there is still a race in
when the route will be added. This will then lead to ENETUNREACH from
time to time.
To avoid the above, this patch uses the default loopback address "::1"
to do the test.
Fixes: ad2f8eb0095e ("bpf: selftests: Tcp header options")
Reported-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Martin KaFai Lau <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'net/unix/scm.c')
0 files changed, 0 insertions, 0 deletions