]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bpf: lsm: Remove hook to bpf_task_storage_free
authorSong Liu <song@kernel.org>
Thu, 12 Dec 2024 07:59:56 +0000 (23:59 -0800)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 16 Dec 2024 20:32:31 +0000 (12:32 -0800)
commit58ecb3a789fdc2b015112a31a91aa674c040a5ba
tree14f479361ada138604f0e140c9aaea0a8d426799
parent06103dccbbd29408255a409f6f98f7f02387dc93
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
security/bpf/hooks.c