Files
linux-stable-mirror/include/linux
Andrii NakryikoandAlexei Starovoitov 8fa4ecd49b bpf: enforce exact retval range on subprog/callback exit
Instead of relying on potentially imprecise tnum representation of
expected return value range for callbacks and subprogs, validate that
smin/smax range satisfy exact expected range of return values.

E.g., if callback would need to return [0, 2] range, tnum can't
represent this precisely and instead will allow [0, 3] range. By
checking smin/smax range, we can make sure that subprog/callback indeed
returns only valid [0, 2] range.

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-5-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2023-12-02 11:36:50 -08:00
..
2023-11-04 10:22:52 +01:00
2023-11-10 13:54:58 +00:00
2023-11-24 10:40:06 +01:00
2023-11-01 22:33:53 -07:00
2023-11-28 15:48:39 +01:00
2023-11-15 04:18:31 +01:00
2023-11-27 18:04:11 -08:00
2023-11-10 09:20:55 +01:00
2023-11-01 10:02:18 +00:00
2023-11-03 09:16:42 +00:00