summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorStanislav Fomichev <sdf.kernel@gmail.com>2026-07-27 09:19:59 -0700
committerJakub Kicinski <kuba@kernel.org>2026-08-03 16:43:54 -0700
commit849b1664dbda1cf6c63e0fd4f9dec23782b8c851 (patch)
tree570c3ba37fe1fe96599ad74875129479dfb741e6 /tools/perf/scripts/python/bin
parentddd0d6c5bfe2fef7c7cf31f62265f29b7b9eb9ef (diff)
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: ca4419f15abd ("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>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions