[PATCH v2 0/3] riscv: misaligned: fix misaligned accesses handling in put/get_user()
patchwork-bot+linux-riscv at kernel.org
patchwork-bot+linux-riscv at kernel.org
Thu Jun 5 11:50:46 PDT 2025
Hello:
This series was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer at dabbelt.com>:
On Mon, 2 Jun 2025 21:39:13 +0200 you wrote:
> While debugging a few problems with the misaligned access kselftest,
> Alexandre discovered some crash with the current code. Indeed, some
> misaligned access was done by the kernel using put_user(). This
> was resulting in trap and a kernel crash since. The path was the
> following:
> user -> kernel -> access to user memory -> misaligned trap -> trap ->
> kernel -> misaligned handling -> memcpy -> crash due to failed page fault
> while in interrupt disabled section.
>
> [...]
Here is the summary with links:
- [v2,1/3] riscv: make unsafe user copy routines use existing assembly routines
https://git.kernel.org/riscv/c/a4348546332c
- [v2,2/3] riscv: process: use unsigned int instead of unsigned long for put_user()
https://git.kernel.org/riscv/c/020667d661f9
- [v2,3/3] riscv: uaccess: do not do misaligned accesses in get/put_user()
https://git.kernel.org/riscv/c/ca1a66cdd685
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
More information about the linux-riscv
mailing list