Re: [RFC bpf-next v1 3/7] bpf: Support pulling non-linear xdp data
From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-08-25 22:58:14
Also in:
bpf
From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-08-25 22:58:14
Also in:
bpf
On Mon, 25 Aug 2025 15:46:02 -0700 Stanislav Fomichev wrote:
quoted
quoted
skb_frag_address can return NULL for unreadable frags.Is it safe to assume that drivers will ensure frags to be readable? It seems at least mlx5 does. I did a quick check and found other xdp kfuncs using skb_frag_address() without checking the return.The unreadable frags will always be unredabale to the host. This is TCP device memory, the memory on the accelerators that is not mapped onto the CPU. Any attempts to read that memory should gracefully error out. Can you also pls fix that other one? (not as part of the series should be ok)
But we don't support mixing XDP with unreadable mem today. Is the concern just for future proofing?