android_kernel_motorola_sm6225/tools/include
Stanislav Fomichev 4f8c4e167a bpf: Clarify error expectations from bpf_clone_redirect
[ Upstream commit 7cb779a6867fea00b4209bcf6de2f178a743247d ]

Commit 151e887d8ff9 ("veth: Fixing transmit return status for dropped
packets") exposed the fact that bpf_clone_redirect is capable of
returning raw NET_XMIT_XXX return codes.

This is in the conflict with its UAPI doc which says the following:
"0 on success, or a negative error in case of failure."

Update the UAPI to reflect the fact that bpf_clone_redirect can
return positive error numbers, but don't explicitly define
their meaning.

Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20230911194731.286342-1-sdf@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-10 21:44:58 +02:00
..
asm tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
asm-generic mn10300: Remove the architecture 2018-03-09 23:19:56 +01:00
linux tools lib: Fix builds when glibc contains strlcpy() 2020-02-05 14:43:34 +00:00
tools tools: bpf: fix license for a compat header file 2018-09-19 23:49:58 +02:00
trace/events
uapi bpf: Clarify error expectations from bpf_clone_redirect 2023-10-10 21:44:58 +02:00