[PATCH v2 0/3] riscv: misaligned: fix misaligned accesses handling in put/get_user()
Clément Léger
cleger at rivosinc.com
Tue Jun 3 00:32:15 PDT 2025
On 02/06/2025 23:08, David Laight wrote:
> 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.
Ahem yeah indeed, so the only way was to do individual lb at least up to
some alignment.
Thanks,
Clément
>
> David
More information about the linux-riscv
mailing list