[v5 PATCH] arm64: mm: force write fault for atomic RMW instructions
Christoph Lameter (Ampere)
cl at gentwo.org
Fri Jul 5 10:05:29 PDT 2024
On Thu, 4 Jul 2024, Catalin Marinas wrote:
> It could be worked around with a new flavour of get_user() that uses the
> non-T LDR instruction and the user mapping is readable by the kernel
> (that's the case with EPAN, prior to PIE and I think we can change this
> for PIE configurations as well). But it adds to the complexity of this
> patch when the kernel already offers a MADV_POPULATE_WRITE solution.
The use of MADV_POPULATE_WRITE here is arch specific and not a general
solution. It requires specialized knowledge and research before someone
can figure out that this particular trick is required on Linux ARM64
processors. The builders need to detect this special situation in the
build process and activate this workaround.
It would be much simpler to just merge the patch and be done with it.
Otherwise this issue will continue to cause uncountably many hours of
anguish for sysadmins and developers all over the Linux ecosystem trying
to figure out what in the world is going on with ARM.
More information about the linux-arm-kernel
mailing list