[PATCH] bpf: Fix typos in verifier.c comments

From: Zhan Xusheng

Date: Mon Mar 09 2026 - 05:47:14 EST


Found several minor typos in comments within the BPF verifier,
and fixed them.

Signed-off-by: Zhan Xusheng <zhanxusheng@xxxxxxxxxx>
---
kernel/bpf/verifier.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
index 159b25f8269d..ebeba70dcee5 100644
--- a/kernel/bpf/verifier.c
+++ b/kernel/bpf/verifier.c
@@ -7081,7 +7081,7 @@ static void coerce_reg_to_size_sx(struct bpf_reg_state *reg, int size)
if (top_smax_value != top_smin_value)
goto out;

- /* find the s64_min and s64_min after sign extension */
+ /* find the s64_max and s64_min after sign extension */
if (size == 1) {
init_s64_max = (s8)reg->smax_value;
init_s64_min = (s8)reg->smin_value;
@@ -7150,7 +7150,7 @@ static void coerce_subreg_to_size_sx(struct bpf_reg_state *reg, int size)
if (top_smax_value != top_smin_value)
goto out;

- /* find the s32_min and s32_min after sign extension */
+ /* find the s32_max and s32_min after sign extension */
if (size == 1) {
init_s32_max = (s8)reg->s32_max_value;
init_s32_min = (s8)reg->s32_min_value;
--
2.43.0