Searched hist:"44 bab87d8ca6f0544a9f8fc97bdf33aa5b3c899e" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_d_path_check_rdonly_mem.c | 44bab87d8ca6f0544a9f8fc97bdf33aa5b3c899e Thu Jan 06 14:55:25 CST 2022 Hao Luo <haoluo@google.com> bpf/selftests: Test bpf_d_path on rdonly_mem.
The second parameter of bpf_d_path() can only accept writable memories. Rdonly_mem obtained from bpf_per_cpu_ptr() can not be passed into bpf_d_path for modification. This patch adds a selftest to verify this behavior.
Signed-off-by: Hao Luo <haoluo@google.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20220106205525.2116218-1-haoluo@google.com
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | d_path.c | diff 44bab87d8ca6f0544a9f8fc97bdf33aa5b3c899e Thu Jan 06 14:55:25 CST 2022 Hao Luo <haoluo@google.com> bpf/selftests: Test bpf_d_path on rdonly_mem.
The second parameter of bpf_d_path() can only accept writable memories. Rdonly_mem obtained from bpf_per_cpu_ptr() can not be passed into bpf_d_path for modification. This patch adds a selftest to verify this behavior.
Signed-off-by: Hao Luo <haoluo@google.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20220106205525.2116218-1-haoluo@google.com
|