[PATCH 2/3] powercap: arm_scmi: Reject zones hierarchy containing cycles or holes

Sudeep Holla sudeep.holla at kernel.org
Mon Nov 16 07:26:00 PST 2026


On Sun, Nov 15, 2026 at 11:05:45AM +0000, Cristian Marussi wrote:
> While walking the hierarchy of powercap zones received from the SCMI server
> bailout with an error if any cycle or hole is detected in the received set
> of zones which has to represent a tree or a forest.
> 
> Reported-by: Sashiko <sashiko-bot at kernel.org>
> Closes: https://sashiko.dev/#/bug/linux-6466cd8d-c2b1-43da-8141-bf8bf49a17b1
> Closes: https://sashiko.dev/#/bug/linux-4895c0ac-74f4-4860-a006-9f5ef7b0a012
> Fixes: 3e767d6850f8 ("powercap: arm_scmi: Remove recursion while parsing zones")
> Cc: "Rafael J. Wysocki" <rafael at kernel.org>

Reviewed-by: Sudeep Holla <sudeep.holla at kernel.org>

-- 
Regards,
Sudeep



More information about the linux-arm-kernel mailing list