summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorJiayuan Chen <jiayuan.chen@linux.dev>2026-09-04 15:37:39 +0800
committerAlexei Starovoitov <ast@kernel.org>2026-09-04 09:57:34 -0700
commit5e8c349bc8d790fe031a4332e502f5d4f9878644 (patch)
tree25b688e4b1d5b567c68bea8077b9924b1e068030 /scripts/Makefile.thinlto
parent41e6f03658adfa9df68642750b53a046f1abdea9 (diff)
downloadlinux-5e8c349bc8d790fe031a4332e502f5d4f9878644.tar.gz
linux-5e8c349bc8d790fe031a4332e502f5d4f9878644.zip
selftests/bpf: Fix flaky bpf_nf test when random NAT port is 0
The bpf_nf test allocs a ct, sets snat and dnat with random addr and port via bpf_ct_set_nat_info(), then looks the ct up and checks the reply tuple against what was set. The port comes from bpf_get_prandom_u32() and can be 0. For bpf_ct_set_nat_info(), port 0 means "port not specified", so only the addr is mapped and the kernel keeps the original port. The check then compares that port with 0 and fails, which shows up as a flaky "Test for source natting" failure in CI [1][2]. Keep the random port in 1..65535 so it is always specified. [1] https://github.com/kernel-patches/bpf/actions/runs/33830002889/job/100893868791 [2] https://github.com/kernel-patches/bpf/actions/runs/33829976794/job/100893220999 Fixes: b06b45e82b59 ("selftests/bpf: add tests for bpf_ct_set_nat_info kfunc") Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev> Link: https://lore.kernel.org/r/20260904073745.363314-1-jiayuan.chen@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions