diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index f8b10030a5ac..f24841004835 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -8631,7 +8631,11 @@ static bool range_within(struct bpf_reg_state *old, return old->umin_value <= cur->umin_value && old->umax_value >= cur->umax_value && old->smin_value <= cur->smin_value && - old->smax_value >= cur->smax_value; + old->smax_value >= cur->smax_value && + old->u32_min_value <= cur->u32_min_value && + old->u32_max_value >= cur->u32_max_value && + old->s32_min_value <= cur->s32_min_value && + old->s32_max_value >= cur->s32_max_value; } /* If in the old state two registers had the same id, then they need to have