mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Emil Tsalapatis" <emil@etsalapatis.com>
To: "Leon Hwang" <leon.hwang@linux.dev>, <bpf@vger.kernel.org>
Cc: "Alexei Starovoitov" <ast@kernel.org>,
	"Daniel Borkmann" <daniel@iogearbox.net>,
	"Andrii Nakryiko" <andrii@kernel.org>,
	"Martin KaFai Lau" <martin.lau@linux.dev>,
	"Eduard Zingerman" <eddyz87@gmail.com>,
	"Kumar Kartikeya Dwivedi" <memxor@gmail.com>,
	"Song Liu" <song@kernel.org>,
	"Yonghong Song" <yonghong.song@linux.dev>,
	"Jiri Olsa" <jolsa@kernel.org>,
	"John Fastabend" <john.fastabend@gmail.com>,
	"Quentin Monnet" <qmo@kernel.org>,
	"Shuah Khan" <shuah@kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-kselftest@vger.kernel.org>, <kernel-patches-bot@fb.com>
Subject: Re: [PATCH bpf-next v10 1/9] bpf: Drop duplicate blank lines in verifier
Date: Fri, 17 Jul 2026 01:08:49 -0400	[thread overview]
Message-ID: <DK0L4ONMR16L.29VHFM0R991ZH@etsalapatis.com> (raw)
In-Reply-To: <20260715153254.92010-2-leon.hwang@linux.dev>

On Wed Jul 15, 2026 at 11:32 AM EDT, Leon Hwang wrote:
> There are many adjacent blank lines in the verifier that have accumulated
> over time.
>
> Drop them for cleanup.
>
> No functional changes intended.


Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>

What about the files we factored out of the verifier? E.g., backtrack.c
also has the same issue.

>
> Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
> ---
>  kernel/bpf/verifier.c | 14 --------------
>  1 file changed, 14 deletions(-)
>
> diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c
> index de816063ae63..e1244a721194 100644
> --- a/kernel/bpf/verifier.c
> +++ b/kernel/bpf/verifier.c
> @@ -634,7 +634,6 @@ static void __mark_dynptr_reg(struct bpf_reg_state *reg,
>  			      enum bpf_dynptr_type type,
>  			      bool first_slot, int id, int parent_id);
>  
> -
>  static void mark_dynptr_stack_regs(struct bpf_verifier_env *env,
>  				   struct bpf_reg_state *sreg1,
>  				   struct bpf_reg_state *sreg2,
> @@ -1671,7 +1670,6 @@ static bool same_callsites(struct bpf_verifier_state *a, struct bpf_verifier_sta
>  	return true;
>  }
>  
> -
>  void bpf_free_backedges(struct bpf_scc_visit *visit)
>  {
>  	struct bpf_scc_backedge *backedge, *next;
> @@ -2291,7 +2289,6 @@ static struct bpf_verifier_state *push_async_cb(struct bpf_verifier_env *env,
>  	return &elem->st;
>  }
>  
> -
>  static int cmp_subprogs(const void *a, const void *b)
>  {
>  	return ((struct bpf_subprog_info *)a)->start -
> @@ -4044,7 +4041,6 @@ static int check_stack_read(struct bpf_verifier_env *env,
>  	return err;
>  }
>  
> -
>  /* check_stack_write dispatches to check_stack_write_fixed_off or
>   * check_stack_write_var_off.
>   *
> @@ -4840,7 +4836,6 @@ static int check_sock_access(struct bpf_verifier_env *env, int insn_idx,
>  		valid = false;
>  	}
>  
> -
>  	if (valid) {
>  		env->insn_aux_data[insn_idx].ctx_field_size =
>  			info.ctx_field_size;
> @@ -6683,7 +6678,6 @@ static int check_stack_range_initialized(
>  	if (err)
>  		return err;
>  
> -
>  	if (tnum_is_const(reg->var_off)) {
>  		min_off = max_off = reg->var_off.value + off;
>  	} else {
> @@ -7404,7 +7398,6 @@ static bool is_iter_new_kfunc(struct bpf_call_arg_meta *meta)
>  	return meta->kfunc_flags & KF_ITER_NEW;
>  }
>  
> -
>  static bool is_iter_destroy_kfunc(struct bpf_call_arg_meta *meta)
>  {
>  	return meta->kfunc_flags & KF_ITER_DESTROY;
> @@ -11539,7 +11532,6 @@ static int process_irq_flag(struct bpf_verifier_env *env, struct bpf_reg_state *
>  	return 0;
>  }
>  
> -
>  static int ref_set_non_owning(struct bpf_verifier_env *env, struct bpf_reg_state *reg)
>  {
>  	struct btf_record *rec = reg_btf_record(reg);
> @@ -16421,7 +16413,6 @@ static int check_ld_abs(struct bpf_verifier_env *env, struct bpf_insn *insn)
>  	return 0;
>  }
>  
> -
>  static bool return_retval_range(struct bpf_verifier_env *env, struct bpf_retval_range *range)
>  {
>  	enum bpf_prog_type prog_type = resolve_prog_type(env->prog);
> @@ -18363,8 +18354,6 @@ static void release_insn_arrays(struct bpf_verifier_env *env)
>  		bpf_insn_array_release(env->insn_array_maps[i]);
>  }
>  
> -
> -
>  /* The verifier does more data flow analysis than llvm and will not
>   * explore branches that are dead at run time. Malicious programs can
>   * have dead code too. Therefore replace all dead at-run-time code
> @@ -18392,8 +18381,6 @@ static void sanitize_dead_code(struct bpf_verifier_env *env)
>  	}
>  }
>  
> -
> -
>  static void free_states(struct bpf_verifier_env *env)
>  {
>  	struct bpf_verifier_state_list *sl;
> @@ -18675,7 +18662,6 @@ static int do_check_main(struct bpf_verifier_env *env)
>  	return ret;
>  }
>  
> -
>  static void print_verification_stats(struct bpf_verifier_env *env)
>  {
>  	/* Skip over hidden subprogs which are not verified. */


  reply	other threads:[~2026-07-17  5:08 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-15 15:32 [PATCH bpf-next v10 0/9] bpf: Introduce global percpu data Leon Hwang
2026-07-15 15:32 ` [PATCH bpf-next v10 1/9] bpf: Drop duplicate blank lines in verifier Leon Hwang
2026-07-17  5:08   ` Emil Tsalapatis [this message]
2026-07-17  5:28     ` Leon Hwang
2026-07-21 13:48       ` Leon Hwang
2026-07-15 15:32 ` [PATCH bpf-next v10 2/9] bpf: Introduce global percpu data Leon Hwang
2026-07-17  6:25   ` Emil Tsalapatis
2026-07-20  4:59     ` Leon Hwang
2026-07-20 22:55       ` Emil Tsalapatis
2026-07-15 15:32 ` [PATCH bpf-next v10 3/9] libbpf: Probe percpu data feature Leon Hwang
2026-07-17 21:52   ` Emil Tsalapatis
2026-07-15 15:32 ` [PATCH bpf-next v10 4/9] libbpf: Add support for global percpu data Leon Hwang
2026-07-17 21:39   ` Emil Tsalapatis
2026-07-20  4:59     ` Leon Hwang
2026-08-03  1:50       ` Leon Hwang
2026-08-04 22:38       ` Andrii Nakryiko
2026-07-15 15:32 ` [PATCH bpf-next v10 5/9] bpftool: Generate skeleton " Leon Hwang
2026-07-17 21:52   ` Emil Tsalapatis
2026-07-20  5:00     ` Leon Hwang
2026-07-15 15:32 ` [PATCH bpf-next v10 6/9] selftests/bpf: Add tests to verify " Leon Hwang
2026-07-15 16:11   ` bot+bpf-ci
2026-07-16  5:30     ` Leon Hwang
2026-07-17 22:47   ` Emil Tsalapatis
2026-07-20  5:02     ` Leon Hwang
2026-07-15 15:32 ` [PATCH bpf-next v10 7/9] selftests/bpf: Test direct reading/writing read-only percpu_array map Leon Hwang
2026-07-17 22:49   ` Emil Tsalapatis
2026-07-20  5:03     ` Leon Hwang
2026-07-15 15:32 ` [PATCH bpf-next v10 8/9] selftests/bpf: Test verifier log for global percpu data Leon Hwang
2026-07-17 22:50   ` Emil Tsalapatis
2026-07-15 15:32 ` [PATCH bpf-next v10 9/9] selftests/bpf: Verify bpf_iter " Leon Hwang
2026-07-17 23:11   ` Emil Tsalapatis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DK0L4ONMR16L.29VHFM0R991ZH@etsalapatis.com \
    --to=emil@etsalapatis.com \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=john.fastabend@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=kernel-patches-bot@fb.com \
    --cc=leon.hwang@linux.dev \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=martin.lau@linux.dev \
    --cc=memxor@gmail.com \
    --cc=qmo@kernel.org \
    --cc=shuah@kernel.org \
    --cc=song@kernel.org \
    --cc=yonghong.song@linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®