diff options
author | Jiri Olsa <jolsa@kernel.org> | 2024-06-19 11:16:24 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-06-21 20:32:36 +0300 |
commit | 717d6313bba1b3179f0bf1026aaec6b7e26f484e (patch) | |
tree | 8d62e383d7a1c5b50b35979582e0d9bf16e16082 /kernel/trace | |
parent | 1ae7a19e37630d3235bc68cac9da4e032cad8136 (diff) | |
download | linux-717d6313bba1b3179f0bf1026aaec6b7e26f484e.tar.xz |
bpf: Change bpf_session_cookie return value to __u64 *
This reverts [1] and changes return value for bpf_session_cookie
in bpf selftests. Having long * might lead to problems on 32-bit
architectures.
Fixes: 2b8dd87332cd ("bpf: Make bpf_session_cookie() kfunc return long *")
Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240619081624.1620152-1-jolsa@kernel.org
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/bpf_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/bpf_trace.c b/kernel/trace/bpf_trace.c index 4b3fda456299..cd098846e251 100644 --- a/kernel/trace/bpf_trace.c +++ b/kernel/trace/bpf_trace.c @@ -3530,7 +3530,7 @@ __bpf_kfunc bool bpf_session_is_return(void) return session_ctx->is_return; } -__bpf_kfunc long *bpf_session_cookie(void) +__bpf_kfunc __u64 *bpf_session_cookie(void) { struct bpf_session_run_ctx *session_ctx; |