Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

bpf: lsm: Remove hook to bpf_task_storage_free

free_task() already calls bpf_task_storage_free(). It is not necessary
to call it again on security_task_free(). Remove the hook.

Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Matt Bobrowski <mattbobrowski@google.com>
Link: https://patch.msgid.link/20241212075956.2614894-1-song@kernel.org

authored by

Song Liu and committed by
Martin KaFai Lau
58ecb3a7 06103dcc

-1
-1
security/bpf/hooks.c
··· 13 13 #include <linux/lsm_hook_defs.h> 14 14 #undef LSM_HOOK 15 15 LSM_HOOK_INIT(inode_free_security, bpf_inode_storage_free), 16 - LSM_HOOK_INIT(task_free, bpf_task_storage_free), 17 16 }; 18 17 19 18 static const struct lsm_id bpf_lsmid = {