On Tue, Oct 19, 2021 at 9:58 AM <andrii.nakryiko@xxxxxxxxx> wrote: > > From: Andrii Nakryiko <andrii@xxxxxxxxxx> > > btf_header's str_off+str_len or type_off+type_len can overflow as they > are u32s. This will lead to bypassing the sanity checks during BTF > parsing, resulting in crashes afterwards. Fix by using 64-bit signed > integers for comparison. > > Fixes: d8123624506c ("libbpf: Fix BTF data layout checks and allow empty BTF") > Reported-by: Evgeny Vereshchagin <evvers@xxxxx> > Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> Applied.