(subset) [PATCH] mfd: macsmc: Hold the lock while reading key info

Lee Jones lee at kernel.org
Fri Nov 13 06:55:58 PST 2026


On Sun, 01 Nov 2026 11:51:58 -0600, Yuvan Shen wrote:
> apple_smc_get_key_info() releases the SMC mutex when apple_smc_cmd()
> returns, and only then copies the reply out of the shared memory buffer.
> A command issued by another thread in between can overwrite the buffer,
> so the key's size, type and flags can come from a different reply. The
> hwmon and power sub-devices call it from their probe functions, while
> the other sub-devices may already be issuing commands.
> 
> [...]

Applied, thanks!

[1/1] mfd: macsmc: Hold the lock while reading key info
      commit: 8734b221c98ea48b16c4d9389183e869b72b0e5f

--
Lee Jones [李琼斯]




More information about the linux-arm-kernel mailing list