]> git.baikalelectronics.ru Git - kernel.git/commit
parisc: Ensure page alignment in flush functions
authorHelge Deller <deller@gmx.de>
Wed, 15 Mar 2023 18:25:15 +0000 (19:25 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:03:38 +0000 (23:03 +0900)
commit0d95f821ccfdfa33aadd0a639b19a7d5692b48c9
treee87070ba98c3408a9ac88bc17b827db30b6444a2
parent266a3b46b4ff3fba5e7b31080d4cab454b68ab55
parisc: Ensure page alignment in flush functions

commit d755bd2caeb47fd806e12399fe8b56798fa5d2cc upstream.

Matthew Wilcox noticed, that if ARCH_HAS_FLUSH_ON_KUNMAP is defined
(which is the case for PA-RISC), __kunmap_local() calls
kunmap_flush_on_unmap(), which may call the parisc flush functions with
a non-page-aligned address and thus the page might not be fully flushed.

This patch ensures that flush_kernel_dcache_page_asm() and
flush_kernel_dcache_page_asm() will always operate on page-aligned
addresses.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # v6.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/pacache.S