Re: [PATCH v3] iommu: Fix potential use-after-free during probe

2022-01-20 Thread Vijayanand Jitta
On 1/18/2022 9:27 PM, Vijayanand Jitta wrote: > > > On 1/18/2022 7:19 PM, Robin Murphy wrote: >> On 2022-01-12 13:13, Vijayanand Jitta wrote: >>> Kasan has reported the following use after free on dev->iommu. >>> when a device probe fails and it is in process of freeing dev->iommu >>> in

[RFC 3/3] arm64: defconfig: Enable sysmmu-v8 IOMMU

2022-01-20 Thread Sam Protsenko
Signed-off-by: Sam Protsenko --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 30516dc0b70e..bb03628b5e25 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -1033,6

[RFC 2/3] iommu/samsung: Introduce Exynos sysmmu-v8 driver

2022-01-20 Thread Sam Protsenko
Introduce new driver for modern Exynos ARMv8 SoCs, e.g. Exynos850. Also it's used for Google's GS101 SoC. This is squashed commit, contains next patches of different authors. See `iommu-exynos850-dev' branch for details: [1]. Original authors (Samsung): - Cho KyongHo - Hyesoo Yu -

[RFC 0/3] iommu/samsung: Introduce Exynos sysmmu-v8 driver

2022-01-20 Thread Sam Protsenko
This is a draft of a new IOMMU driver used in modern Exynos SoCs (like Exynos850) and Google's GS101 SoC (used in Pixel 6 phone). Most of its code were taken from GS101 downstream kernel [1], with some extra patches on top (fixes from Exynos850 downstream kernel and some porting changes to adapt

[RFC 1/3] dt-bindings: iommu: Add bindings for samsung,sysmmu-v8

2022-01-20 Thread Sam Protsenko
Only example of usage and header for now. Signed-off-by: Sam Protsenko --- .../bindings/iommu/samsung,sysmmu-v8.txt | 31 + include/dt-bindings/soc/samsung,sysmmu-v8.h | 43 +++ 2 files changed, 74 insertions(+) create mode 100644

[syzbot] WARNING in dma_map_sgtable

2022-01-20 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e3a8b6a1e70c Merge tag 'slab-for-5.17-part2' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1507e01fb0 kernel config: https://syzkaller.appspot.com/x/.config?x=73c17fd2d4a060fe

Re: [syzbot] WARNING in dma_map_sgtable

2022-01-20 Thread Christoph Hellwig
This means the DMA API is called on a not DMA capable device. This needs fixing in the caller. On Thu, Jan 20, 2022 at 04:18:21AM -0800, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:e3a8b6a1e70c Merge tag 'slab-for-5.17-part2' of git://git... > git tree: