Files
linux/net/core
Liu Jian 77f8c4a5f3 bpf: Enlarge offset check value to INT_MAX in bpf_skb_{load,store}_bytes
commit 45969b4152 upstream.

The data length of skb frags + frag_list may be greater than 0xffff, and
skb_header_pointer can not handle negative offset. So, here INT_MAX is used
to check the validity of offset. Add the same change to the related function
skb_store_bytes.

Fixes: 05c74e5e53 ("bpf: add bpf_skb_load_bytes helper")
Signed-off-by: Liu Jian <liujian56@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20220416105801.88708-2-liujian56@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-06 08:43:42 +02:00
..
2021-08-05 13:27:50 +01:00
2022-03-08 19:12:41 +01:00
2022-03-08 19:12:41 +01:00
2021-09-03 11:48:28 +01:00
2022-04-13 20:59:09 +02:00
2021-07-22 00:52:04 -07:00
2022-05-25 09:57:35 +02:00
2022-05-01 17:22:24 +02:00