]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
powerpc: Allow 64bit VDSO __kernel_sync_dicache to work across ranges >4GB
authorAlastair D'Silva <alastair@d-silva.org>
Mon, 4 Nov 2019 02:32:54 +0000 (13:32 +1100)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 11 Feb 2020 20:03:34 +0000 (20:03 +0000)
commitc24394f71b4a52b34862b3437eb0380575dea0c5
tree7a8abcf67ededadb84b0a189ece7512f61b3c2a4
parent0a823bbf75f9e0327df3d89877e917bd38fafa64
powerpc: Allow 64bit VDSO __kernel_sync_dicache to work across ranges >4GB

commit f9ec11165301982585e5e5f606739b5bae5331f3 upstream.

When calling __kernel_sync_dicache with a size >4GB, we were masking
off the upper 32 bits, so we would incorrectly flush a range smaller
than intended.

This patch replaces the 32 bit shifts with 64 bit ones, so that
the full size is accounted for.

Signed-off-by: Alastair D'Silva <alastair@d-silva.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191104023305.9581-3-alastair@au1.ibm.com
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/powerpc/kernel/vdso64/cacheflush.S