]> git.baikalelectronics.ru Git - kernel.git/commit
firmware: arm_scmi: Harden shared memory access in fetch_notification
authorCristian Marussi <cristian.marussi@arm.com>
Thu, 22 Dec 2022 18:38:21 +0000 (18:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:05 +0000 (08:34 +0100)
commit42137861ca9e62f7c0ecb046de5ec8121fa618e9
treeee35eba3ed316d03201a216a3eb8819af71397c3
parentd8365ed4bcaa86b96ffa3c6d0dd2b15bff1a66c0
firmware: arm_scmi: Harden shared memory access in fetch_notification

[ Upstream commit 9bae076cd4e3e3c3dc185cae829d80b2dddec86e ]

A misbheaving SCMI platform firmware could reply with out-of-spec
notifications, shorter than the mimimum size comprising a header.

Fixes: ed045e73d0e7 ("firmware: arm_scmi: Add notifications support in transport layer")
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
Link: https://lore.kernel.org/r/20221222183823.518856-4-cristian.marussi@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/arm_scmi/shmem.c