Thread (1 message) 1 message, 1 author, 2021-12-14

Re: [PATCH v3] iommu/io-pgtable-arm-v7s: Add error handle for page table allocation failure

From: Will Deacon <will@kernel.org>
Date: 2021-12-14 15:18:50
Also in: linux-iommu, linux-mediatek, lkml, stable

On Tue, 7 Dec 2021 19:33:15 +0800, yf.wang@mediatek.com wrote:
From: Yunfei Wang <redacted>

In __arm_v7s_alloc_table function:
iommu call kmem_cache_alloc to allocate page table, this function
allocate memory may fail, when kmem_cache_alloc fails to allocate
table, call virt_to_phys will be abnomal and return unexpected phys
and goto out_free, then call kmem_cache_free to release table will
trigger KE, __get_free_pages and free_pages have similar problem,
so add error handle for page table allocation failure.

[...]
Applied to will (for-joerg/arm-smmu/updates), thanks!

[1/1] iommu/io-pgtable-arm-v7s: Add error handle for page table allocation failure
      https://git.kernel.org/will/c/a556cfe4cabc

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help