]> 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)
commita04c49484476a8fe66dfe11e3e37dc2e5a050b78
tree65f18b9cf0e16c46fd448daa4f17c7ba460ae0b9
parentc9997efe01e3dc2fba9b364a8b8ee5015b96bde4
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: 822cea084c9a ("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