From: patchwork-bot+netdevbpf@kernel.org
To: Song Liu <song@kernel.org>
Cc: bpf@vger.kernel.org, daniel@iogearbox.net, kernel-team@fb.com,
ast@kernel.org, andrii@kernel.org,
syzbot+2f649ec6d2eea1495a8f@syzkaller.appspotmail.com,
syzbot+87f65c75f4a72db05445@syzkaller.appspotmail.com
Subject: Re: [PATCH bpf] bpf, x86: fix freeing of not-finalized bpf_prog_pack
Date: Wed, 13 Jul 2022 00:40:14 +0000 [thread overview]
Message-ID: <165767281452.22277.11387727025043528584.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20220706002612.4013790-1-song@kernel.org>
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Tue, 5 Jul 2022 17:26:12 -0700 you wrote:
> syzbot reported a few issues with bpf_prog_pack [1], [2]. These are
> triggered when the program passed initial JIT in jit_subprogs(), but
> failed final pass of JIT. At this point, bpf_jit_binary_pack_free() is
> called before bpf_jit_binary_pack_finalize(), and the whole 2MB page is
> freed.
>
> Fix this with a custom bpf_jit_free() for x86_64, which calls
> bpf_jit_binary_pack_finalize() if necessary. Also, with custom
> bpf_jit_free(), bpf_prog_aux->use_bpf_prog_pack is not needed any more,
> remove it.
>
> [...]
Here is the summary with links:
- [bpf] bpf, x86: fix freeing of not-finalized bpf_prog_pack
https://git.kernel.org/bpf/bpf-next/c/1d5f82d9dd47
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
prev parent reply other threads:[~2022-07-13 0:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 0:26 [PATCH bpf] bpf, x86: fix freeing of not-finalized bpf_prog_pack Song Liu
2022-07-12 22:09 ` Alexei Starovoitov
2022-07-12 23:01 ` Song Liu
2022-07-13 0:37 ` Alexei Starovoitov
2022-07-13 0:40 ` patchwork-bot+netdevbpf [this message]
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=165767281452.22277.11387727025043528584.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=kernel-team@fb.com \
--cc=song@kernel.org \
--cc=syzbot+2f649ec6d2eea1495a8f@syzkaller.appspotmail.com \
--cc=syzbot+87f65c75f4a72db05445@syzkaller.appspotmail.com \
/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