[PATCH bpf] bpf, lsm: Mark backing_file_alloc/free LSM hooks as untrusted

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Sat Nov 14 06:10:05 UTC 2026


Hello:

This patch was applied to bpf/bpf.git (master)
by Alexei Starovoitov <ast at kernel.org>:

On Wed, 11 Nov 2026 21:35:52 +0100 you wrote:
> The backing_file_alloc and backing_file_free LSM hooks get the backing
> file as "struct file *backing_file", but its f_path is not populated
> while they run:
> 
>  - security_backing_file_alloc() is called from init_backing_file() in
>    alloc_empty_backing_file(), before vfs_open() sets f_path, so
>    backing_file->f_path.dentry is NULL;
>  - security_backing_file_free() can run for a backing file whose open
>    failed and whose f_path was already cleared.
> 
> [...]

Here is the summary with links:
  - [bpf] bpf, lsm: Mark backing_file_alloc/free LSM hooks as untrusted
    https://git.kernel.org/bpf/bpf/c/ab86b62012b9

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the Linux-security-module-archive mailing list