diff options
author | Florent Revest | 2021-02-10 12:14:05 +0100 |
---|---|---|
committer | Alexei Starovoitov | 2021-02-11 17:44:41 -0800 |
commit | 6cd4dcc3fb8198fff6e6c2d7c622f78649fa2474 (patch) | |
tree | 90e01695280e38a54a9f8dd9ddc0d37e6de3fcdf /fs/f2fs/Kconfig | |
parent | 61f8c9c8f3c8fb60722f0f3168d1a546dbf8a3d4 (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/f2fs/Kconfig')
0 files changed, 0 insertions, 0 deletions