summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2026-05-23 19:00:26 +0300
committerAlexei Starovoitov <ast@kernel.org>2026-06-01 04:40:01 +0300
commit868d43cf8f970b456fd93334bee40f792cf27e4d (patch)
tree45632a1f13191b9e3b3cfedab6b630c233585032 /include/linux/debugobjects.h
parentde36adca634634c205a9eb8b56a28175ab7abf5f (diff)
downloadlinux-868d43cf8f970b456fd93334bee40f792cf27e4d.tar.xz
bpf: Fix security_bpf_prog_load() error handling
If security_bpf_prog_load() fails there is no need to call into security_bpf_prog_free() as the LSM will handle the cleanup of any partial LSM state before returning to the caller with an error. Thankfully this isn't an issue with any of the existing code as the LSMs which currently provide BPF hook callback implementations don't allocate any internal state, but this is something we want to fix for potential future users. Signed-off-by: Paul Moore <paul@paul-moore.com> Link: https://lore.kernel.org/r/20260523160025.16363-2-paul@paul-moore.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions