summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndrii Nakryiko <andrii@kernel.org>2023-12-02 09:56:57 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-25 15:44:46 -0800
commitd8a88dcdee7f7d8259f5c2e1ce924205382868fd (patch)
tree6c2a0a8443733272fb4c5a542e57db9dd06840da /arch
parentc4c2345214b66e2505a26fd2ea58839dd7a1d48d (diff)
downloadlinux-stable-d8a88dcdee7f7d8259f5c2e1ce924205382868fd.tar.gz
linux-stable-d8a88dcdee7f7d8259f5c2e1ce924205382868fd.tar.bz2
linux-stable-d8a88dcdee7f7d8259f5c2e1ce924205382868fd.zip
bpf: enforce precision of R0 on callback return
[ Upstream commit 0acd03a5bd188b0c501d285d938439618bd855c4 ] Given verifier checks actual value, r0 has to be precise, so we need to propagate precision properly. r0 also has to be marked as read, otherwise subsequent state comparisons will ignore such register as unimportant and precision won't really help here. Fixes: 69c087ba6225 ("bpf: Add bpf_for_each_map_elem() helper") Acked-by: Eduard Zingerman <eddyz87@gmail.com> Acked-by: Shung-Hsi Yu <shung-hsi.yu@suse.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/r/20231202175705.885270-4-andrii@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions