[PATCH v2 0/3] riscv: misaligned: fix misaligned accesses handling in put/get_user()

David Laight david.laight.linux at gmail.com
Mon Jun 2 14:08:55 PDT 2025


On Mon,  2 Jun 2025 21:39:13 +0200
Clément Léger <cleger at rivosinc.com> wrote:

...
> The second solution was the one chosen as there are too many callsites to
> put/get_user() that could potentially do misaligned accesses. We tried
> two approaches for that, either split access in two aligned accesses
> (and do RMW for put_user())

You can't do RMW because it is visible to other threads.

	David



More information about the linux-riscv mailing list