Files
linux-stable-mirror/include/linux
Eric Dumazet 1c10b05974 net: add skb_header_pointer_careful() helper
[ Upstream commit 13e00fdc92 ]

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>
[ Adjust context ]
Signed-off-by: Bin Lan <lanbincn@139.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
[ Shivani: Modified to apply on 5.10.y ]
Signed-off-by: Shivani Agarwal <shivani.agarwal@broadcom.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-07-04 13:38:37 +02:00
..
2026-03-04 07:19:25 -05:00
2025-06-27 11:04:09 +01:00
2025-09-11 17:16:06 +02:00
2023-12-20 15:44:30 +01:00
2024-06-21 14:53:19 +02:00
2024-06-21 14:53:46 +02:00
2025-12-07 06:08:09 +09:00
2026-01-19 13:12:00 +01:00
2026-01-19 13:11:54 +01:00
2024-10-17 15:07:44 +02:00
2025-10-29 14:01:18 +01:00
2025-07-17 18:27:44 +02:00
2024-06-21 14:53:28 +02:00
2024-01-25 14:37:40 -08:00
2025-06-04 14:37:08 +02:00
2026-06-01 17:29:39 +02:00
2025-08-28 16:22:31 +02:00
2026-06-19 13:21:42 +02:00
2025-04-10 14:30:53 +02:00
2026-06-01 17:29:41 +02:00
2025-02-01 18:22:32 +01:00
2025-06-27 11:04:09 +01:00
2026-01-19 13:12:03 +01:00
2024-02-23 08:41:51 +01:00
2024-10-17 15:07:57 +02:00
2025-08-28 16:22:37 +02:00