Re: [PATCH v2] soc: qcom: cmd-db: bound database walks to the mapped region
From: Bjorn Andersson
Date: Fri Dec 04 2026 - 14:42:43 EST
On Wed, 14 Oct 2026 21:21:16 +0300, Oleksandr Suvorov wrote:
> The command DB is read from a reserved memory region mapped with the
> size given in the device tree. The per-slave entry count and header
> offset, and each entry's data offset and length, are taken from the
> blob and used without checking them against the size of that mapping.
>
> cmd_db_get_header() walks rsc_hdr->cnt entries for every slave when an
> ID is not found, and cmd_db_read_aux_data() and the debugfs dump return
> or print len bytes at a blob-supplied offset. A count or offset that
> reaches beyond the mapping makes these read outside it.
>
> [...]
Applied, thanks!
[1/1] soc: qcom: cmd-db: bound database walks to the mapped region
commit: 64f8b77e81c23b2f8cea10e8e71a44c87e05a929
Best regards,
--
Bjorn Andersson <andersson@xxxxxxxxxx>