RE: No check of the size passed to unmap_single in swiotlb

2017-11-21 Thread Eric Yang
> -Original Message- > From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com] > Sent: Tuesday, November 21, 2017 12:27 AM > To: Eric Yang ; io...@lists.linux-foundation.org > Cc: linux-kernel@vger.kernel.org; Greg Kroah-Hartman > ; Andrew Morton ; > Andrey Ry

RE: No check of the size passed to unmap_single in swiotlb

2017-11-22 Thread Eric Yang
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Wednesday, November 22, 2017 9:15 PM > To: Eric Yang ; Konrad Rzeszutek Wilk > ; io...@lists.linux-foundation.org > Cc: Daniel Borkmann ; Kees Cook > ; Geert Uytterhoeven ; > Greg Kroa

RE: No check of the size passed to unmap_single in swiotlb

2017-11-23 Thread Eric Yang
> -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Tuesday, November 21, 2017 12:50 AM > To: Konrad Rzeszutek Wilk ; Eric Yang > ; io...@lists.linux-foundation.org > Cc: Daniel Borkmann ; Kees Cook > ; Geert Uytterhoeven ; > Greg Kroa

No check of the size passed to unmap_single in swiotlb

2017-11-20 Thread Eric Yang
Hi all, During debug a device only support 32bits DMA(Qualcomm Atheros AP) in our LS1043A 64bits ARM SOC, we found that the invoke of dma_unmap_single --> swiotlb_tbl_unmap_single will unmap the passed "size" anyway even when the "size" is incorrect. If the size is larger than it should, th

RE: No check of the size passed to unmap_single in swiotlb

2017-11-29 Thread Eric Yang
Hi Robin, > -Original Message- > From: Robin Murphy [mailto:robin.mur...@arm.com] > Sent: Tuesday, November 28, 2017 10:18 PM > To: Eric Yang ; Konrad Rzeszutek Wilk > ; io...@lists.linux-foundation.org > Cc: Daniel Borkmann ; Kees Cook > ; Geert Uytterhoeven ;