Skip to content

Commit 58ecb3a

Browse files
liu-song-6Martin KaFai Lau
authored and
Martin KaFai Lau
committed
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 <[email protected]> Signed-off-by: Martin KaFai Lau <[email protected]> Acked-by: Matt Bobrowski <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 06103dc commit 58ecb3a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

security/bpf/hooks.c

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ static struct security_hook_list bpf_lsm_hooks[] __ro_after_init = {
1313
#include <linux/lsm_hook_defs.h>
1414
#undef LSM_HOOK
1515
LSM_HOOK_INIT(inode_free_security, bpf_inode_storage_free),
16-
LSM_HOOK_INIT(task_free, bpf_task_storage_free),
1716
};
1817

1918
static const struct lsm_id bpf_lsmid = {

0 commit comments

Comments
 (0)