linux/drivers/net/ethernet/intel/igc
Stanislav Fomichev 849b1664db xsk: validate metadata when processing requests
The zero-copy path validates TX metadata while obtaining the descriptor
context, then reads it again later when preparing the hardware request.
User space can change the metadata between those operations and bypass the
original validation.

Validate the metadata in xsk_tx_metadata_request() and use the resulting
flags snapshot for every feature check. Read request fields once so all
zero-copy drivers process only values observed after successful
validation.

Fixes: ca4419f15a ("xsk: Add launch time hardware offload support to XDP Tx metadata")
Cc: Cen Zhang (Microsoft) <blbllhy@gmail.com>
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20260727161959.885642-7-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-08-03 16:43:54 -07:00
..
igc_base.c igc: return early when failing to read EECD register 2025-01-07 09:01:15 -08:00
igc_base.h igc: move TXDCTL and RXDCTL related macros 2025-06-11 08:52:14 -07:00
igc_defines.h igc: Reduce TSN TX packet buffer from 7KB to 5KB per queue 2026-01-13 11:18:34 -08:00
igc_diag.c igc: fix typos in comments 2026-06-13 16:44:06 -07:00
igc_diag.h
igc_dump.c
igc_ethtool.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
igc_hw.h igc: Remove unused igc_read/write_pcie_cap_reg 2025-01-06 13:32:44 -08:00
igc_i225.c igc: drop unnecessary constant casts to u16 2025-09-03 10:07:27 -07:00
igc_i225.h
igc_leds.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
igc_mac.c net: Fix typos 2025-07-25 10:29:07 -07:00
igc_mac.h
igc_main.c xsk: validate metadata when processing requests 2026-08-03 16:43:54 -07:00
igc_nvm.c igc: drop unnecessary constant casts to u16 2025-09-03 10:07:27 -07:00
igc_nvm.h igc: Remove unused igc_acquire/release_nvm 2025-01-06 13:32:44 -08:00
igc_phy.c igc: remove autoneg parameter from igc_mac_info 2024-11-13 10:30:21 -08:00
igc_phy.h
igc_ptp.c igc: Use provided clock ID for history snapshot 2026-06-04 11:04:17 +02:00
igc_regs.h igc: add support to get frame preemption statistics via ethtool 2025-04-18 09:17:14 -07:00
igc_tsn.c igc: fix potential skb leak in igc_fpe_xmit_smd_frame() 2026-05-18 19:00:44 -07:00
igc_tsn.h igc: add preemptible queue support in mqprio 2025-06-11 10:06:24 -07:00
igc_xdp.c igc: Fix XSK queue NAPI ID mapping 2025-04-02 08:51:41 -07:00
igc_xdp.h
igc.h igc: Use provided clock ID for history snapshot 2026-06-04 11:04:17 +02:00
Makefile net: intel: Use *-y instead of *-objs in Makefile 2024-06-10 19:52:44 -07:00