diff options
author | Feng Zhou <zhoufeng.zf@bytedance.com> | 2023-04-10 16:59:07 +0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-04-11 20:29:30 +0200 |
commit | 91f2dc6838c19342f7f2993627c622835cc24890 (patch) | |
tree | da1ce56057566dcb3d3393faedd247eb6b556aa2 /net/bpf/test_run.c | |
parent | 255f0e14b9b0f8afe53dd6607c7b8ba489100a66 (diff) | |
download | linux-91f2dc6838c19342f7f2993627c622835cc24890.tar.gz linux-91f2dc6838c19342f7f2993627c622835cc24890.tar.bz2 linux-91f2dc6838c19342f7f2993627c622835cc24890.zip |
bpf/btf: Fix is_int_ptr()
When tracing a kernel function with arg type is u32*, btf_ctx_access()
would report error: arg2 type INT is not a struct.
The commit bb6728d75611 ("bpf: Allow access to int pointer arguments
in tracing programs") added support for int pointer, but did not skip
modifiers before checking it's type. This patch fixes it.
Fixes: bb6728d75611 ("bpf: Allow access to int pointer arguments in tracing programs")
Co-developed-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Feng Zhou <zhoufeng.zf@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20230410085908.98493-2-zhoufeng.zf@bytedance.com
Diffstat (limited to 'net/bpf/test_run.c')
0 files changed, 0 insertions, 0 deletions