]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix propagation of signed bounds from 64-bit min/max into 32-bit.
authorAlexei Starovoitov <ast@kernel.org>
Mon, 1 Nov 2021 22:21:52 +0000 (15:21 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Tue, 2 Nov 2021 01:05:12 +0000 (18:05 -0700)
commit924202885a10b2b4e7dcaefc24b533ae1ac83bab
tree65f18b9cf0e16c46fd448daa4f17c7ba460ae0b9
parent7d586ab6cdd0311aabbfef8c7c1784c569c47b9b
bpf: Fix propagation of signed bounds from 64-bit min/max into 32-bit.

Similar to unsigned bounds propagation fix signed bounds.
The 'Fixes' tag is a hint. There is no security bug here.
The verifier was too conservative.

Fixes: 576785048b47 ("bpf: Verifier, do explicit ALU32 bounds tracking")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20211101222153.78759-2-alexei.starovoitov@gmail.com
kernel/bpf/verifier.c