Thread (43 messages) 43 messages, 9 authors, 2025-12-19

Re: [patch V6 02/12] uaccess: Provide ASM GOTO safe wrappers for unsafe_*_user()

From: patchwork-bot+linux-riscv@kernel.org
Date: 2025-12-19 08:13:26
Also in: linux-arm-kernel, linux-fsdevel, linux-riscv, linux-s390, lkml

Hello:

This patch was applied to riscv/linux.git (fixes)
by Peter Zijlstra [off-list ref]:

On Wed, 29 Oct 2025 10:40:52 +0100 you wrote:
ASM GOTO is miscompiled by GCC when it is used inside a auto cleanup scope:

bool foo(u32 __user *p, u32 val)
{
	scoped_guard(pagefault)
		unsafe_put_user(val, p, efault);
	return true;
efault:
	return false;
}

[...]
Here is the summary with links:
  - [V6,02/12] uaccess: Provide ASM GOTO safe wrappers for unsafe_*_user()
    https://git.kernel.org/riscv/c/3eb6660f26d1

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html


Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help