Re: [PATCH bpf] libbpf: fix overflow in BTF sanity checks

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux