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

Zhan Xusheng posted 1 patch 1 month ago
kernel/bpf/verifier.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] bpf: Fix typos in verifier.c comments
Posted by Zhan Xusheng 1 month ago
Found several minor typos in comments within the BPF verifier,
and fixed them.

Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
---
 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
Re: [PATCH] bpf: Fix typos in verifier.c comments
Posted by Alexei Starovoitov 1 month ago
On Mon, Mar 9, 2026 at 2:47 AM Zhan Xusheng <zhanxusheng1024@gmail.com> wrote:
>
> Found several minor typos in comments within the BPF verifier,
> and fixed them.
>
> Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>

Pls read bpf FAQ.

pw-bot: cr