Martin KaFai Lau 9186c74235 bpf: btf: Ensure the member->offset is in the right order
This patch ensures the member->offset of a struct
is in the correct order (i.e the later member's offset cannot
go backward).

The current "pahole -J" BTF encoder does not generate something
like this.  However, checking this can ensure future encoder
will not violate this.

Fixes: 69b693f0aefa ("bpf: btf: Introduce BPF Type Format (BTF)")
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
2025-01-13 14:37:39 -03:00
..
2024-12-23 00:53:44 -03:00
2024-12-23 00:53:44 -03:00
2023-12-20 15:32:35 +01:00
2024-12-23 00:59:46 -03:00
2020-01-13 19:40:11 +00:00
2024-03-27 17:56:46 -03:00
2020-04-02 16:34:20 +02:00
2021-02-07 14:47:41 +01:00
2024-05-10 15:48:33 -03:00
2022-04-06 13:18:17 +07:00
2022-04-06 13:18:17 +07:00
2024-12-23 00:53:44 -03:00