-
由 Andrii Nakryiko 提交于
mainline inclusion from mainline-5.16-rc1 commit de5d0dce category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I5EUVD CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=de5d0dcef602de39070c31c7e56c58249c56ba37 ------------------------------------------------- Fix instruction index validity check which has off-by-one error. Fixes: 3ee4f533 ("libbpf: Split bpf_core_apply_relo() into bpf_program independent helper.") Signed-off-by: NAndrii Nakryiko <andrii@kernel.org> Signed-off-by: NAlexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20211025224531.1088894-2-andrii@kernel.org (cherry picked from commit de5d0dce) Signed-off-by: NWang Yufen <wangyufen@huawei.com>
f2a6f42e