+14
−0
+182
−67
Loading
mainline inclusion from mainline-v6.5-rc1 commit 407958a0 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/IB2AQ3 CVE: CVE-2023-52920 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=407958a0e980 -------------------------------- Add struct backtrack_state and straightforward API around it to keep track of register and stack masks used and maintained during precision backtracking process. Having this logic separately allow to keep high-level backtracking algorithm cleaner, but also it sets us up to cleanly keep track of register and stack masks per frame, allowing (with some further logic adjustments) to perform precision backpropagation across multiple frames (i.e., subprog calls). Signed-off-by:Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20230505043317.3629845-4-andrii@kernel.org Signed-off-by:
Alexei Starovoitov <ast@kernel.org> Conflicts: kernel/bpf/verifier.c include/linux/bpf_verifier.h [The conflicts were due to some minor issue] Signed-off-by:
Pu Lehui <pulehui@huawei.com>