From: patchwork-bot+netdevbpf@kernel.org
To: Tw <tw19881113@gmail.com>
Cc: bpf@vger.kernel.org
Subject: Re: [PATCH v4] libbpf: Fix for the potential undefined behavior due to shifting
Date: Fri, 28 Aug 2026 17:30:06 +0000 [thread overview]
Message-ID: <178793820640.2701758.12473646012331554611.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20260828003448.1684064-1-tw19881113@gmail.com>
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Fri, 28 Aug 2026 08:34:10 +0800 you wrote:
> When compiling libbpf with sanitation, ubsan will report the following:
> ```
> left shift of 1 by 31 places cannot be represented in type 'int'
> ```
> This may lead to undefined behavior according to the compiler implementation,
> let's fix it by casting to unsigned counterpart before shifting.
>
> [...]
Here is the summary with links:
- [v4] libbpf: Fix for the potential undefined behavior due to shifting
https://git.kernel.org/bpf/bpf-next/c/cd35e1b10182
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-08-28 17:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 0:34 [PATCH v4] libbpf: Fix for the potential undefined behavior due to shifting Tw
2026-08-28 17:30 ` 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=178793820640.2701758.12473646012331554611.git-patchwork-notify@kernel.org \
--to=patchwork-bot+netdevbpf@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=tw19881113@gmail.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 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.