summaryrefslogtreecommitdiff
path: root/samples/bpf
diff options
context:
space:
mode:
authorAlexei Starovoitov <ast@kernel.org>2024-04-27 03:25:44 +0300
committerMartin KaFai Lau <martin.lau@kernel.org>2024-04-30 00:16:41 +0300
commit0db63c0b86e981a1e97d2596d64ceceba1a5470e (patch)
treed7e6ddaca356bbd5069fe7a5a8aab2cfa0fe97d7 /samples/bpf
parent89de2db19317fb89a6e9163f33c3a7b23ee75a18 (diff)
downloadlinux-0db63c0b86e981a1e97d2596d64ceceba1a5470e.tar.xz
bpf: Fix verifier assumptions about socket->sk
The verifier assumes that 'sk' field in 'struct socket' is valid and non-NULL when 'socket' pointer itself is trusted and non-NULL. That may not be the case when socket was just created and passed to LSM socket_accept hook. Fix this verifier assumption and adjust tests. Reported-by: Liam Wisehart <liamwisehart@meta.com> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Fixes: 6fcd486b3a0a ("bpf: Refactor RCU enforcement in the verifier.") Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/r/20240427002544.68803-1-alexei.starovoitov@gmail.com Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'samples/bpf')
0 files changed, 0 insertions, 0 deletions