]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:22:46 +0000 (14:22 -0300)
commit110868157d565d441f6ac9b9923bc792d712261b
tree341a6d60492f2de976f028037e342d88ba375607
parent3fa38b36e73a8ffa62754a325ae5c03142cca038
powerpc: Allow 64bit VDSO __kernel_sync_dicache to work across ranges >4GB

BugLink: https://bugs.launchpad.net/bugs/1857158
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>
Cc: stable@vger.kernel.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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/powerpc/kernel/vdso64/cacheflush.S