Stanislav Fomichev d5e726d914 xsk: Require XDP_UMEM_TX_METADATA_LEN to actuate tx_metadata_len
Julian reports that commit 341ac980eab9 ("xsk: Support tx_metadata_len")
can break existing use cases which don't zero-initialize xdp_umem_reg
padding. Introduce new XDP_UMEM_TX_METADATA_LEN to make sure we
interpret the padding as tx_metadata_len only when being explicitly
asked.

Fixes: 341ac980eab9 ("xsk: Support tx_metadata_len")
Reported-by: Julian Schindel <mail@arctic-alpaca.de>
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com>
Link: https://lore.kernel.org/bpf/20240713015253.121248-2-sdf@fomichev.me
2024-07-25 11:57:27 +02:00
..
2024-05-29 09:25:15 -07:00
2024-06-14 19:08:50 -07:00
2024-07-09 17:01:46 +02:00
2024-06-05 10:18:06 +01:00
2024-01-11 10:07:29 -08:00
2024-05-28 07:27:29 -07:00
2024-06-17 13:14:09 +01:00
2023-12-12 14:24:14 +01:00
2024-01-31 16:41:16 -08:00