diff options
author | Kui-Feng Lee <[email protected]> | 2024-02-21 18:11:04 -0800 |
---|---|---|
committer | Martin KaFai Lau <[email protected]> | 2024-02-22 12:26:40 -0800 |
commit | 3e0008336ae3153fb89b1a15bb877ddd38680fe6 (patch) | |
tree | 8c45e2221acca5756299cd79561305fa71569755 /tools/perf/scripts/python | |
parent | 58fd62e0aa50fdd20bc41a01e787001f3af8a925 (diff) |
bpf: Check cfi_stubs before registering a struct_ops type.
Recently, st_ops->cfi_stubs was introduced. However, the upcoming new
struct_ops support (e.g. sched_ext) is not aware of this and does not
provide its own cfi_stubs. The kernel ends up NULL dereferencing the
st_ops->cfi_stubs.
Considering struct_ops supports kernel module now, this NULL check
is necessary. This patch is to reject struct_ops registration
that does not provide a cfi_stubs.
Signed-off-by: Kui-Feng Lee <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions