[PATCH v3 -next 06/18] LSM: pass struct path and struct file to the inode xattr hooks
Alexei Starovoitov
alexei.starovoitov at gmail.com
Tue Oct 27 15:01:50 UTC 2026
On Tue Oct 27, 2026 at 1:02 PM UTC, sashiko-bot wrote:
> Thank you for your contribution! Sashiko AI review found 3 potential issue(s) to consider:
> - [Critical] bpf: missing __nullable on file arg in inode xattr LSM hooks allows NULL deref
bot is correct.
Please see commit 94e948b7e684 ("bpf: annotate file argument as __nullable in bpf_lsm_mmap_file")
and add to kernel/bpf/bpf_lsm_proto.c when args can be NULL.
That's how verifier knows.
More information about the Linux-security-module-archive
mailing list