Re: [PATCH bpf-next] libbpf: fix off-by-one error in ELF sanity check

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

 



On 10/28/19 4:37 PM, Andrii Nakryiko wrote:
> libbpf's bpf_object__elf_collect() does simple sanity check after iterating
> over all ELF sections, if checks that .strtab index is correct. Unfortunately,
> due to section indices being 1-based, the check breaks for cases when .strtab
> ends up being the very last section in ELF.
> 
> Fixes: 77ba9a5b48a7 ("tools lib bpf: Fetch map names from correct strtab")
> Signed-off-by: Andrii Nakryiko <andriin@xxxxxx>

4 year old bug. Nice!
Applied. Thanks.




[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