Re: [PATCH] iommu/msm: limit the per-master Machine ID list

Dmitry Baryshkov <[email protected]>
Newsgroups dev.linux.lists.iommu,org.kernel.vger.linux-arm-msm,org.kernel.vger.linux-kernel
Message-ID <luaghwrvbxffhgku2y6pwysrcr5zcd2s4gn3pu6z3rtu2ryevj@uaqnkvlkyvhp>
On Wed, Jul 22, 2026 at 12:16:19PM +0800, Pengpeng Hou wrote:
> The OF translation path appends each unique stream ID from an IOMMU
> specifier to the fixed mids array in the per-master object. It currently
> has no capacity check before storing at mids[num_mids] and incrementing
> num_mids.
> 
> Return -ENOSPC when the array is full rather than writing the next ID
> beyond it.
> 
> Signed-off-by: Pengpeng Hou <[email protected]>
> ---
>  drivers/iommu/msm_iommu.c | 3 +++
>  1 file changed, 3 insertions(+)
> 

Reviewed-by: Dmitry Baryshkov <[email protected]>


-- 
With best wishes
Dmitry
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.