Skip to content
Commit d11ae1b1 authored by Jiri Olsa's avatar Jiri Olsa Committed by Daniel Borkmann
Browse files

selftests/bpf: Fix d_path test



Recent commit [1] broke d_path test, because now filp_close is not called
directly from sys_close, but eventually later when the file is finally
released.

As suggested by Hou Tao we don't need to re-hook the bpf program, but just
instead we can use sys_close_range to trigger filp_close synchronously.

  [1] 021a160a ("fs: use __fput_sync in close(2)")

Suggested-by: default avatarHou Tao <houtao@huaweicloud.com>
Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230831141103.359810-1-jolsa@kernel.org
parent 121fd33b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment