Files
linux/net/core
Joanne Koong 7d68cf80fc bpf: Fix bpf_xdp_pointer return pointer
[ Upstream commit bbd52178e2 ]

For the case where offset + len == size, bpf_xdp_pointer should return a
valid pointer to the addr because that access is permitted. We should
only return NULL in the case where offset + len exceeds size.

Fixes: 3f364222d0 ("net: xdp: introduce bpf_xdp_pointer utility routine")
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/bpf/20220722220105.2065466-1-joannelkoong@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 15:14:55 +02:00
..
2022-04-30 12:58:44 +01:00
2022-05-16 11:33:59 +01:00
2021-12-16 07:18:35 -08:00
2022-05-16 10:18:56 +01:00
2022-01-22 08:33:37 +02:00
2020-06-18 20:46:23 -07:00