aboutsummaryrefslogtreecommitdiff
path: root/fs/proc/thread_self.c
diff options
context:
space:
mode:
authorFlorent Revest2021-02-10 12:14:05 +0100
committerAlexei Starovoitov2021-02-11 17:44:41 -0800
commit6cd4dcc3fb8198fff6e6c2d7c622f78649fa2474 (patch)
tree90e01695280e38a54a9f8dd9ddc0d37e6de3fcdf /fs/proc/thread_self.c
parent61f8c9c8f3c8fb60722f0f3168d1a546dbf8a3d4 (diff)
selftests/bpf: Use vmlinux.h in socket_cookie_prog.c
When migrating from the bpf.h's to the vmlinux.h's definition of struct bps_sock, an interesting LLVM behavior happened. LLVM started producing two fetches of ctx->sk in the sockops program this means that the verifier could not keep track of the NULL-check on ctx->sk. Therefore, we need to extract ctx->sk in a variable before checking and dereferencing it. Signed-off-by: Florent Revest <revest@chromium.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: KP Singh <kpsingh@kernel.org> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20210210111406.785541-4-revest@chromium.org
Diffstat (limited to 'fs/proc/thread_self.c')
0 files changed, 0 insertions, 0 deletions