bpf: Be less specific about socket cookies guarantees
authorFlorent Revest <revest@chromium.org>
Wed, 10 Feb 2021 11:14:02 +0000 (12:14 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 Feb 2021 01:44:40 +0000 (17:44 -0800)
commit07881ccbf40cc7893869f3f170301889ddca54ac
treed4909ae3a28e1d98c951cd03e5c8baeb4fa025e7
parent0e1aa629f1ce9e8cb89e0cefb9e3bfb3dfa94821
bpf: Be less specific about socket cookies guarantees

Since "92acdc58ab11 bpf, net: Rework cookie generator as per-cpu one"
socket cookies are not guaranteed to be non-decreasing. The
bpf_get_socket_cookie helper descriptions are currently specifying that
cookies are non-decreasing but we don't want users to rely on that.

Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Florent Revest <revest@chromium.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: KP Singh <kpsingh@kernel.org>
Link: https://lore.kernel.org/bpf/20210210111406.785541-1-revest@chromium.org
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h