diff options
author | 2023-07-09 02:56:25 +0000 | |
---|---|---|
committer | 2023-07-11 20:07:51 -0700 | |
commit | 5125e757e62f6c1d5478db4c2b61a744060ddf3f (patch) | |
tree | b3d34621fe8b04695ee404a2370e90a4500da868 /include/linux/rcutiny.h | |
parent | bpf: Protect probed address based on kptr_restrict setting (diff) | |
download | wireguard-linux-5125e757e62f6c1d5478db4c2b61a744060ddf3f.tar.xz wireguard-linux-5125e757e62f6c1d5478db4c2b61a744060ddf3f.zip |
bpf: Clear the probe_addr for uprobe
To avoid returning uninitialized or random values when querying the file
descriptor (fd) and accessing probe_addr, it is necessary to clear the
variable prior to its use.
Fixes: 41bdc4b40ed6 ("bpf: introduce bpf subcommand BPF_TASK_FD_QUERY")
Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Acked-by: Yonghong Song <yhs@fb.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230709025630.3735-6-laoar.shao@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/rcutiny.h')
0 files changed, 0 insertions, 0 deletions