Commit ad6ffac
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: da7e9c0 ("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>1 parent ef06fd1 commit ad6ffac
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2454 | 2454 | | |
2455 | 2455 | | |
2456 | 2456 | | |
| 2457 | + | |
2457 | 2458 | | |
2458 | 2459 | | |
| 2460 | + | |
2459 | 2461 | | |
2460 | 2462 | | |
2461 | 2463 | | |
| |||
2467 | 2469 | | |
2468 | 2470 | | |
2469 | 2471 | | |
2470 | | - | |
| 2472 | + | |
2471 | 2473 | | |
2472 | 2474 | | |
2473 | 2475 | | |
| |||
0 commit comments