Thanks for the pointer. I will change in the next version.
The other issue the bot reported on this patch is real as well:ðŸ˜
walking path->dentry in a BPF LSM program drops PTR_TRUSTED.
I will add BTF_TYPE_SAFE_TRUSTED for path in next version
On 10/27/2026 11:01 PM, Alexei Starovoitov wrote:
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.*2*2