summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/bpf/verifier.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index bdaf0413bf06..1f6deb3e44c5 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -13900,12 +13900,12 @@ static bool is_safe_to_compute_dst_reg_range(struct bpf_insn *insn,
case BPF_ADD:
case BPF_SUB:
case BPF_AND:
+ case BPF_XOR:
+ case BPF_OR:
return true;
/* Compute range for the following only if the src_reg is const.
*/
- case BPF_XOR:
- case BPF_OR:
case BPF_MUL:
return src_is_const;