On Thu, 03 Jul 2025 11:00:33 +0100, Andrew Goodbody wrote: > In the definition of struct ec_state the number of slots that are > created is VSTORE_SLOT_COUNT (==4) but the value of req->slot is > checked against EC_VSTORE_SLOT_MAX (==32) so this can lead to memory > access beyond that allocated. > Instead change the size check to use VSTORE_SLOT_COUNT to ensure it > matches what has actually been allocated. > > [...]
Applied to u-boot/master, thanks! [1/1] cros_ec: sandbox: Use correct value for number of slots commit: bae3a34cb9e6b3ce6d01f68cdd34cdd45419f22f -- Tom