[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<171775502974.9691.860373891404266889.git-patchwork-notify@kernel.org>
Date: Fri, 07 Jun 2024 10:10:29 +0000
From: patchwork-bot+chrome-platform@...nel.org
To: Dan Carpenter <dan.carpenter@...aro.org>
Cc: linux@...ssschuh.net, thomas@...ssschuh.net, jdelvare@...e.com,
linux@...ck-us.net, bleung@...omium.org, tzungbi@...nel.org,
chrome-platform@...ts.linux.dev, linux-hwmon@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] hwmon: (cros_ec) Prevent read overflow in probe()
Hello:
This patch was applied to chrome-platform/linux.git (for-next)
by Tzung-Bi Shih <tzungbi@...nel.org>:
On Thu, 6 Jun 2024 16:12:11 +0300 you wrote:
> The "resp.sensor_name" comes from cros_ec_cmd() and it hasn't necessarily
> been NUL terminated. We had not intended to read past "sensor_name_size"
> bytes, however, there is a width vs precision bug in the format string.
> The format needs to be precision '%.*s' instead of width '%*s'.
> Precision prevents an out of bounds read, but width is a no-op.
>
> Fixes: bc3e45258096 ("hwmon: add ChromeOS EC driver")
> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
>
> [...]
Here is the summary with links:
- hwmon: (cros_ec) Prevent read overflow in probe()
https://git.kernel.org/chrome-platform/c/1f72dd046270
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