Re: [PATCH] hwmon: (cros_ec) Prevent read overflow in probe()

From: patchwork-bot+chrome-platform
Date: Fri Jun 07 2024 - 06:10:56 EST


Hello:

This patch was applied to chrome-platform/linux.git (for-next)
by Tzung-Bi Shih <tzungbi@xxxxxxxxxx>:

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@xxxxxxxxxx>
>
> [...]

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