diff options
| author | Bradley Morgan <include@grrlz.net> | 2026-06-19 13:03:03 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-06-22 20:08:37 -0700 |
| commit | 12091470c6b4c1c14b2de12dcbae2ada6cb6d20b (patch) | |
| tree | 1331e508a023d2521a5a3beb0411c34a1be9e7a5 /include/linux/consolemap.h | |
| parent | 274b4027d8b36c8b5ec61b7c7f0a7d9cda07b9a5 (diff) | |
bpf: Disable xfrm_decode_session hook attachment
BPF LSM programs can currently attach to xfrm_decode_session(). That
hook may return an error, but security_skb_classify_flow() calls it
from a void path and triggers BUG_ON() if an error is returned.
Disable BPF attachment to the hook to prevent a BPF LSM program from
turning packet classification into a full panic.
Fixes: 9e4e01dfd325 ("bpf: lsm: Implement attach, detach and execution")
Signed-off-by: Bradley Morgan <include@grrlz.net>
Link: https://lore.kernel.org/r/20260619130305.27779-1-include@grrlz.net
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'include/linux/consolemap.h')
0 files changed, 0 insertions, 0 deletions
