Files
linux/kernel
Christoph Hellwig 3d0ed0e4fa dma-mapping: check pfn validity in dma_common_{mmap,get_sgtable}
[ Upstream commit 66d7780f18 ]

Check that the pfn returned from arch_dma_coherent_to_pfn refers to
a valid page and reject the mmap / get_sgtable requests otherwise.

Based on the arm implementation of the mmap and get_sgtable methods.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-25 10:10:25 -04:00
..
2019-05-24 20:16:01 +02:00
2019-05-24 20:16:01 +02:00
2019-06-14 20:18:27 -07:00
2019-04-18 14:05:51 +02:00