[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <170206442406.2842.16381176213819730158.git-patchwork-notify@kernel.org>
Date: Fri, 08 Dec 2023 19:40:24 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Kees Cook <keescook@...omium.org>
Cc: kuba@...nel.org, lkp@...el.com, davem@...emloft.net,
edumazet@...gle.com, pabeni@...hat.com, johannes@...solutions.net,
quic_jjohnson@...cinc.com, mwalle@...nel.org,
max.schulze@...ine.de, netdev@...r.kernel.org,
linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-hardening@...r.kernel.org
Subject: Re: [PATCH v3] netlink: Return unsigned value for nla_len()
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Wed, 6 Dec 2023 12:59:07 -0800 you wrote:
> The return value from nla_len() is never expected to be negative, and can
> never be more than struct nlattr::nla_len (a u16). Adjust the prototype
> on the function. This will let GCC's value range optimization passes
> know that the return can never be negative, and can never be larger than
> u16. As recently discussed[1], this silences the following warning in
> GCC 12+:
>
> [...]
Here is the summary with links:
- [v3] netlink: Return unsigned value for nla_len()
https://git.kernel.org/netdev/net-next/c/172db56d90d2
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists