Files
kernel_oneplus_sm8250/kernel
Jann Horn 091a8dcbb6 UPSTREAM: bpf: Simplify reg_set_min_max_inv handling
reg_set_min_max_inv() contains exactly the same logic as reg_set_min_max(),
just flipped around. While this makes sense in a cBPF verifier (where ALU
operations are not symmetric), it does not make sense for eBPF.

Replace reg_set_min_max_inv() with a helper that flips the opcode around,
then lets reg_set_min_max() do the complicated work.

Change-Id: Ie3796c859256f36a978168e0779ec0d2c9434fcd
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200330160324.15259-4-daniel@iogearbox.net
2025-08-28 03:26:28 +03:00
..
2019-12-13 08:51:11 +01:00
2025-08-28 03:26:22 +03:00
2020-01-15 14:51:23 +00:00
2021-02-07 14:48:38 +01:00
2024-05-03 06:16:46 +00:00