ebpf-verifier icon indicating copy to clipboard operation
ebpf-verifier copied to clipboard

btf_parse_line_information should reject BTF section if line_info_record_size == 0

Open Alan-Jowett opened this issue 2 years ago • 1 comments

btf_parse_line_information should reject BTF line info data if line_info_record_size < sizeof(bpf_line_info_t).

Alan-Jowett avatar Jun 14 '22 15:06 Alan-Jowett

@Alan-Jowett to provide PR to fix this.

Sample ELF file with bad BTF section that causes the problem: timeout-0a4aa25126bf1edb3809bd6abf86616d81e2b2dc.zip

Alan-Jowett avatar Jun 14 '22 15:06 Alan-Jowett

@Alan-Jowett was this fixed by PR #436? Can this issue be closed now?

dthaler avatar Dec 22 '22 13:12 dthaler

This is fixed by this commit: https://github.com/vbpf/ebpf-verifier/commit/25f3c24f6097bbde014a69ee69e51cbc5894cd50

Alan-Jowett avatar Dec 23 '22 00:12 Alan-Jowett