Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
syscalls/bpf: zero-initialize bpf_attr including padding bits
gcc 15 stopped zero-initializing padding bits: https://gcc.gnu.org/gcc-15/changes.html However kernel bpf syscall checks that all unused fields for a command are set to zero in CHECK_ATTR() macro, which causes tests to fail with EINVAL. Signed-off-by: Jan Stancek <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
- Loading branch information