[ldv-project] [PATCH] net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Thu Aug 18 08:20:17 MSK 2022


Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba at kernel.org>:

On Wed, 17 Aug 2022 03:38:45 +0300 you wrote:
> If an error occurs in dsa_devlink_region_create(), then 'priv->regions'
> array will be accessed by negative index '-1'.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Signed-off-by: Rustam Subkhankulov <subkhankulov at ispras.ru>
> Fixes: bf425b82059e ("net: dsa: sja1105: expose static config as devlink region")
> 
> [...]

Here is the summary with links:
  - net: dsa: sja1105: fix buffer overflow in sja1105_setup_devlink_regions()
    https://git.kernel.org/netdev/net/c/fd8e899cdb5e

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html





More information about the ldv-project mailing list