Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not initialize kern_version for TRACING/EXT programs
The TRACING/EXT programs use attach_btf_id and attach_prog_fd fields from struct bpf_load_program_attr. The attach_prog_fd field shares space with kern_version, so by setting kern_version unconditionally we also set attach_prog_fd to bogus value and kernel fails the load because it tries to look it up. Setting kern_version only for programs other than TRACING/EXT type. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
- Loading branch information