aboutsummaryrefslogtreecommitdiff
path: root/net/xfrm/xfrm_state_bpf.c
diff options
context:
space:
mode:
authorGravatar Yonghong Song <yonghong.song@linux.dev> 2023-12-14 12:38:20 -0800
committerGravatar Alexei Starovoitov <ast@kernel.org> 2023-12-14 17:10:32 -0800
commit56925f389e152dcb8d093435d43b78a310539c23 (patch)
tree23441311b52d786b1d7ddd06fe92f6bd23d8fab7 /net/xfrm/xfrm_state_bpf.c
parentbpf: Fix a race condition between btf_put() and map_free() (diff)
downloadlinux-56925f389e152dcb8d093435d43b78a310539c23.tar.gz
linux-56925f389e152dcb8d093435d43b78a310539c23.tar.bz2
linux-56925f389e152dcb8d093435d43b78a310539c23.zip
selftests/bpf: Remove flaky test_btf_id test
With previous patch, one of subtests in test_btf_id becomes flaky and may fail. The following is a failing example: Error: #26 btf Error: #26/174 btf/BTF ID Error: #26/174 btf/BTF ID btf_raw_create:PASS:check 0 nsec btf_raw_create:PASS:check 0 nsec test_btf_id:PASS:check 0 nsec ... test_btf_id:PASS:check 0 nsec test_btf_id:FAIL:check BTF lingersdo_test_get_info:FAIL:check failed: -1 The test tries to prove a btf_id not available after the map is closed. But btf_id is freed only after workqueue and a rcu grace period, compared to previous case just after a rcu grade period. Depending on system workload, workqueue could take quite some time to execute function bpf_map_free_deferred() which may cause the test failure. Instead of adding arbitrary delays, let us remove the logic to check btf_id availability after map is closed. Signed-off-by: Yonghong Song <yonghong.song@linux.dev> Link: https://lore.kernel.org/r/20231214203820.1469402-1-yonghong.song@linux.dev Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'net/xfrm/xfrm_state_bpf.c')
0 files changed, 0 insertions, 0 deletions