ARM: mm: Export __sync_icache_dcache() for xen-privcmd
authorBen Hutchings <ben@decadent.org.uk>
Wed, 11 Jul 2018 22:40:55 +0000 (23:40 +0100)
committerSalvatore Bonaccorso <carnil@debian.org>
Sun, 31 Dec 2023 15:46:35 +0000 (16:46 +0100)
commitc3600bb27a08539e60e80b0669643e01fb215144
treecc9c93e13bd04b424ddb2ba436a17e58c99010dd
parent5a1fe16e1858efed55f2fbe7abe9725d044d3e90
ARM: mm: Export __sync_icache_dcache() for xen-privcmd

Forwarded: https://marc.info/?l=linux-arm-kernel&m=153134944429241

The xen-privcmd driver, which can be modular, calls set_pte_at()
which in turn may call __sync_icache_dcache().

The call to __sync_icache_dcache() may be optimised out because it is
conditional on !pte_special(), and xen-privcmd calls pte_mkspecial().
However, in a non-LPAE configuration there is no "special" bit and the
call is really unconditional.

Fixes: 3ad0876554ca ("xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/arm
Gbp-Pq: Name arm-mm-export-__sync_icache_dcache-for-xen-privcmd.patch
arch/arm/mm/flush.c