]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb3721150f1d6ce4c9694c5a9ba4bf55f9d0657f
treed4909ae3a28e1d98c951cd03e5c8baeb4fa025e7
parent00a3db9c97bb3604244f5570a2d1d8c3af8fdb90
bpf: Be less specific about socket cookies guarantees

Since "615c0b6ff8c4 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