From d65e397a1fd6eb9b1e20bf13aa48b9bf0cc64663 Mon Sep 17 00:00:00 2001 From: Wentao Guan Date: Wed, 29 Jul 2026 22:51:57 +0800 Subject: [PATCH] bpf: drop bpf_lsm_getselfattr from hook list Backport ("bpf, lsm: Add disabled BPF LSM hook list") for v6.6.y bring the warning "WARN: resolve_btfids: unresolved symbol bpf_lsm_getselfattr". The lsm_getselfattr from commit a04a1198088a ("LSM: syscalls for current process attributes"), no need to backport the huge patch, simply drop the entry to fix the noise. This is a fix for stable v6.6.145 backport commit, so no upstream commit. Fixes: b3b4719429d5 ("bpf, lsm: Add disabled BPF LSM hook list") Link: https://lore.kernel.org/stable/20260728225520.stable-0003@kernel.org/ Signed-off-by: Wentao Guan Signed-off-by: Sasha Levin --- kernel/bpf/bpf_lsm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/bpf/bpf_lsm.c b/kernel/bpf/bpf_lsm.c index 147c3a8ad4e8..984e944a0221 100644 --- a/kernel/bpf/bpf_lsm.c +++ b/kernel/bpf/bpf_lsm.c @@ -42,7 +42,6 @@ BTF_ID(func, bpf_lsm_inode_need_killpriv) BTF_ID(func, bpf_lsm_inode_getsecurity) BTF_ID(func, bpf_lsm_inode_listsecurity) BTF_ID(func, bpf_lsm_inode_copy_up_xattr) -BTF_ID(func, bpf_lsm_getselfattr) BTF_ID(func, bpf_lsm_getprocattr) BTF_ID(func, bpf_lsm_setprocattr) #ifdef CONFIG_KEYS