]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
bpf: Fix kprobe_multi cookies access in show_fdinfo callback
authorJiri Olsa <jolsa@kernel.org>
Wed, 25 Feb 2026 11:12:49 +0000 (12:12 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 26 Feb 2026 19:23:57 +0000 (11:23 -0800)
commitad6fface76da42721c15e8fb281570aaa44a2c01
tree69c486605a8476ee37c8b149103c091da768c4d5
parentef06fd16d48704eac868441d98d4ef083d8f3d07
bpf: Fix kprobe_multi cookies access in show_fdinfo callback

We don't check if cookies are available on the kprobe_multi link
before accessing them in show_fdinfo callback, we should.

Cc: stable@vger.kernel.org
Fixes: da7e9c0a7fbc ("bpf: Add show_fdinfo for kprobe_multi")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20260225111249.186230-1-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/trace/bpf_trace.c