From: Daniel Borkmann <daniel@iogearbox.net>
To: Feng Yang <yangfeng59949@163.com>,
ast@kernel.org, john.fastabend@gmail.com, andrii@kernel.org,
martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org,
yonghong.song@linux.dev, kpsingh@kernel.org, sdf@fomichev.me,
haoluo@google.com, jolsa@kernel.org
Cc: bpf@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bpf: Replace kvfree with kfree for kzalloc memory
Date: Tue, 26 Aug 2025 13:43:52 +0200 [thread overview]
Message-ID: <7ff59e6c-b061-41ef-bdc8-8eaffe15aff9@iogearbox.net> (raw)
In-Reply-To: <20250826073920.1215368-1-yangfeng59949@163.com>
On 8/26/25 9:39 AM, Feng Yang wrote:
> From: Feng Yang <yangfeng@kylinos.cn>
>
> Refer to https://lore.kernel.org/bpf/20250811123949.552885-1-rongqianfeng@vivo.com to replace the remaining part.
Please make this a proper commit message instead of just posting a lore link.
$subj should be [PATCH bpf-next].
> Signed-off-by: Feng Yang <yangfeng@kylinos.cn>
> ---
> 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 5c9dd16b2c56..b9394f8fac0e 100644
> --- a/kernel/bpf/verifier.c
> +++ b/kernel/bpf/verifier.c
> @@ -2021,7 +2021,7 @@ static void free_backedges(struct bpf_scc_visit *visit)
> for (backedge = visit->backedges; backedge; backedge = next) {
> free_verifier_state(&backedge->state, false);
> next = backedge->next;
> - kvfree(backedge);
> + kfree(backedge);
> }
> visit->backedges = NULL;
> }
> @@ -19651,7 +19651,7 @@ static int is_state_visited(struct bpf_verifier_env *env, int insn_idx)
> err = maybe_enter_scc(env, new);
> if (err) {
> free_verifier_state(new, false);
> - kvfree(new_sl);
> + kfree(new_sl);
> return err;
> }
>
next prev parent reply other threads:[~2025-08-26 11:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-26 7:39 Feng Yang
2025-08-26 11:43 ` Daniel Borkmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-08-11 12:39 [PATCH] bpf: replace " Qianfeng Rong
2025-08-11 13:15 ` Qianfeng Rong
2025-08-11 16:47 ` Eduard Zingerman
2025-08-11 13:25 ` Markus Elfring
2025-08-11 16:46 ` Eduard Zingerman
2025-08-12 23:00 ` patchwork-bot+netdevbpf
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=7ff59e6c-b061-41ef-bdc8-8eaffe15aff9@iogearbox.net \
--to=daniel@iogearbox.net \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=yangfeng59949@163.com \
--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®