diff options
author | Stanislav Fomichev <sdf@google.com> | 2023-11-27 11:03:13 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-11-29 14:59:40 -0800 |
commit | ce59f9686e0eca19431571c7403394a6c36371e2 (patch) | |
tree | 0cc41665be78edc0bc31892f88179d322217b078 /drivers/zorro/zorro.c | |
parent | 9620e956d5b592d305728144931e89d780a598aa (diff) |
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 'drivers/zorro/zorro.c')
0 files changed, 0 insertions, 0 deletions