android_kernel_motorola_sm6375/tools/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stanislav Fomichev 723904ce85 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 <[email protected]>
Signed-off-by: Stanislav Fomichev <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
2023-10-10 21:46:40 +02:00
..
asm
asm-generic
linux
nolibc tools/nolibc/string: Fix memcmp() implementation 2022-11-10 17:57:55 +01:00
tools
trace/events
uapi bpf: Clarify error expectations from bpf_clone_redirect 2023-10-10 21:46:40 +02:00