[PATCH] netlabel: fix shift wrapping bug in netlbl_catmap_setlong()
patchwork-bot+netdevbpf at kernel.org
patchwork-bot+netdevbpf at kernel.org
Sat Jun 10 19:02:20 UTC 2023
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <davem at davemloft.net>:
On Thu, 8 Jun 2023 16:57:54 +0300 you wrote:
> There is a shift wrapping bug in this code on 32-bit architectures.
> NETLBL_CATMAP_MAPTYPE is u64, bitmap is unsigned long.
> Every second 32-bit word of catmap becomes corrupted.
>
> Signed-off-by: Dmitry Mastykin <dmastykin at astralinux.ru>
> ---
> net/netlabel/netlabel_kapi.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Here is the summary with links:
- netlabel: fix shift wrapping bug in netlbl_catmap_setlong()
https://git.kernel.org/netdev/net/c/b403643d154d
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the Linux-security-module-archive
mailing list