summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf@google.com>2023-11-27 22:03:13 +0300
committerAlexei Starovoitov <ast@kernel.org>2023-11-30 01:59:40 +0300
commitce59f9686e0eca19431571c7403394a6c36371e2 (patch)
tree0cc41665be78edc0bc31892f88179d322217b078 /arch
parent9620e956d5b592d305728144931e89d780a598aa (diff)
downloadlinux-ce59f9686e0eca19431571c7403394a6c36371e2.tar.xz
xsk: Validate xsk_tx_metadata flags
Accept only the flags that the kernel knows about to make sure we can extend this field in the future. Note that only in XDP_COPY mode we propagate the error signal back to the user (via sendmsg). For zerocopy mode we silently skip the metadata for the descriptors that have wrong flags (since we process the descriptors deep in the driver). Signed-off-by: Stanislav Fomichev <sdf@google.com> Link: https://lore.kernel.org/r/20231127190319.1190813-8-sdf@google.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions