[PATCH v3] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-05-26 Thread Alexander Dahl
xes: https://web.nettworks.org/bugs/browse/FFL-2560 Fixes: https://unix.stackexchange.com/q/520065/50007 Reported-by: Alan Jenkins Suggested-by: Robin Murphy Signed-off-by: Alexander Dahl Cc: sta...@vger.kernel.org --- Notes: v3: - rewritten commit message to better explain that arithme

Re: [PATCH v2] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-05-05 Thread Alexander Dahl
Hei hei, I would like to kindly ask about the status of this patch. On Wed, Apr 15, 2020 at 04:35:21PM +0200, Alexander Dahl wrote: > now after v5.7-rc1 is out, I would kindly ask, if anyone had time to > review this one line patch? Is anything wrong with that fix? Did it maybe not

Re: [PATCH v2] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-04-15 Thread Alexander Dahl
:28:23PM +0100, Alexander Dahl wrote: > For ARCH=x86 (32 bit) when you set CONFIG_IOMMU_INTEL since c5a5dc4cbbf4 > ("iommu/vt-d: Don't switch off swiotlb if bounce page is used") there's > a dependency on CONFIG_SWIOTLB, which was not necessarily active before. > >

[PATCH v2] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-03-21 Thread Alexander Dahl
however is the same as for arch/mips now as suggested by Robin Murphy. Fixes: https://web.nettworks.org/bugs/browse/FFL-2560 Fixes: https://unix.stackexchange.com/q/520065/50007 Reported-by: Alan Jenkins Suggested-by: Robin Murphy Signed-off-by: Alexander Dahl --- Notes: v1 -> v2: - u

Re: [PATCH] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-03-19 Thread Alexander Dahl
Hello Robin, On Thu, Mar 19, 2020 at 01:50:56PM +, Robin Murphy wrote: > On 2020-03-02 6:16 pm, Alexander Dahl wrote: > > --- > > arch/x86/include/asm/dma.h | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/arch/x86/include

Re: [PATCH] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-03-18 Thread Alexander Dahl
Hei hei, gentle ping on this patch from two weeks ago. Did anyone have time to look into it? Did I miss someone in Cc or sent it to the wrong lists maybe? On Mon, Mar 02, 2020 at 07:16:12PM +0100, Alexander Dahl wrote: > For ARCH=x86 (32 bit) when you set CONFIG_IOMMU_INTEL since c5a5dc4cb

[PATCH] dma: Fix max PFN arithmetic overflow on 32 bit systems

2020-03-02 Thread Alexander Dahl
.org/bugs/browse/FFL-2560 Fixes: https://unix.stackexchange.com/q/520065/50007 Suggested-by: Alan Jenkins Signed-off-by: Alexander Dahl --- We tested this in qemu and on real hardware with fli4l on top of v5.4, v5.5, and v5.6-rc kernels, but only as far as the reserved memory goes. The patch itself