From: patchwork-bot+netdevbpf@kernel.org
To: Yonghong Song <yonghong.song@linux.dev>
Cc: bpf@vger.kernel.org, ast@kernel.org, andrii@kernel.org,
daniel@iogearbox.net, eddyz87@gmail.com, kernel-team@fb.com
Subject: Re: [PATCH bpf-next] libbpf: Fix ALU relocation check for a local value with bit 31 set
Date: Tue, 01 Dec 2026 05:20:05 +0000 [thread overview]
Message-ID: <179610240576.16890.3557736024882504128.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261127184334.860594-1-yonghong.song@linux.dev>
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Alexei Starovoitov <ast@kernel.org>:
On Fri, 27 Nov 2026 10:43:34 -0800 you wrote:
> Since commit 776281652ddc ("libbpf: Permit 64bit relocation value"),
> the local value of a relocation is a __u64, and libbpf checks it against
> the imm of an ALU or ALU64 instruction with:
>
> if (res->validate && insn->imm != orig_val)
>
> The __s32 imm is sign-extended to 64 bits for the comparison, so it does
> not match a zero-extended local value with bit 31 set, e.g., 0x80000000,
> and the relocation fails with "unexpected insn". Before that commit, both
> sides were compared as 32-bit values.
>
> [...]
Here is the summary with links:
- [bpf-next] libbpf: Fix ALU relocation check for a local value with bit 31 set
https://git.kernel.org/bpf/bpf-next/c/982a50c5aa05
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:[~2026-12-01 5:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 18:43 [PATCH bpf-next] libbpf: Fix ALU relocation check for a local value with bit 31 set Yonghong Song
2026-12-01 5:20 ` 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=179610240576.16890.3557736024882504128.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=eddyz87@gmail.com \
--cc=kernel-team@fb.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.