diff options
| author | Eric Dumazet <edumazet@google.com> | 2026-01-28 14:15:38 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-11 13:40:24 +0100 |
| commit | 8b6c7f14766464cf791eb86a206e3c6f78aa9a73 (patch) | |
| tree | 6bfe94a679543f196ec95772bedd51a6a24ad96c /include/net/aligned_data.h | |
| parent | b64e3b5d8d759dd4333992e4ba4dadf9359952c8 (diff) | |
net: add skb_header_pointer_careful() helper
[ Upstream commit 13e00fdc9236bd4d0bff4109d2983171fbcb74c4 ]
This variant of skb_header_pointer() should be used in contexts
where @offset argument is user-controlled and could be negative.
Negative offsets are supported, as long as the zone starts
between skb->head and skb->data.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260128141539.3404400-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: cabd1a976375 ("net/sched: cls_u32: use skb_header_pointer_careful()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
