[v2 PATCH] iommu/arm-smmu-v3: Fix L1 stream table index calculation for 32-bit sid size
Jason Gunthorpe
jgg at ziepe.ca
Fri Oct 4 05:43:43 PDT 2024
On Thu, Oct 03, 2024 at 08:31:23AM -0700, Yang Shi wrote:
> If I understand correctly, the check is mainly used to avoid the u64 -> u32
> overflow. This check guarantee no overflow. If some crazy hardware really
> requests that large memory, the allocation will fail.
Sure, the kalloc will print a warn on anyhow if it is too big
Jason
More information about the linux-arm-kernel
mailing list