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: 2b8dd87332 ("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
This commit is contained in:
committed by
Daniel Borkmann
parent
1ae7a19e37
commit
717d6313bb
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user