]> 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)
commit6222cdb39c2043ca82128f803025f8205efb00b3
treed4909ae3a28e1d98c951cd03e5c8baeb4fa025e7
parentc8a09f9b28c03f51b1e7523dbcd562027677e28a
bpf: Be less specific about socket cookies guarantees

Since "ef87b1c0d776 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