[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <163720980903.29413.8714907245021841032.git-patchwork-notify@kernel.org>
Date: Thu, 18 Nov 2021 04:30:09 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Dan Carpenter <dan.carpenter@...cle.com>
Cc: sgoutham@...vell.com, hkalra@...vell.com, lcherian@...vell.com,
gakula@...vell.com, jerinj@...vell.com, hkelam@...vell.com,
sbhatta@...vell.com, davem@...emloft.net, kuba@...nel.org,
bbudiredla@...vell.com, rsaladi2@...vell.com,
netdev@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH net] octeontx2-af: debugfs: don't corrupt user memory
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@...nel.org>:
On Wed, 17 Nov 2021 10:34:54 +0300 you wrote:
> The user supplies the "count" value to say how big its read buffer is.
> The rvu_dbg_lmtst_map_table_display() function does not take the "count"
> into account but instead just copies the whole table, potentially
> corrupting the user's data.
>
> Introduce the "ret" variable to store how many bytes we can copy. Also
> I changed the type of "off" to size_t to make using min() simpler.
>
> [...]
Here is the summary with links:
- [net] octeontx2-af: debugfs: don't corrupt user memory
https://git.kernel.org/netdev/net/c/a280ef90af01
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