[PATCH v2] firmware: arm_scpi: Fix string overflow in SCPI genpd driver

Arnd Bergmann arnd at kernel.org
Mon Dec 13 06:32:51 PST 2021


From: Arnd Bergmann <arnd at arndb.de>

On Thu, 9 Dec 2021 12:04:56 +0000, Sudeep Holla wrote:
> Without the bound checks for scpi_pd->name, it could result in the buffer
> overflow when copying the SCPI device name from the corresponding device
> tree node as the name string is set at maximum size of 30.
> 
> Let us fix it by using devm_kasprintf so that the string buffer is
> allocated dynamically.

Applied to for-next, thanks!

[1/1] firmware: arm_scpi: Fix string overflow in SCPI genpd driver
      commit: c29ec614f0da82db6edd1fece28ebba5ae656155

       Arnd



More information about the linux-arm-kernel mailing list