arm64: uaccess: Use unsafe wrappers for ASM GOTO
authorThomas Gleixner <tglx@linutronix.de>
Fri, 31 Oct 2025 09:37:09 +0000 (10:37 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Nov 2025 07:27:20 +0000 (08:27 +0100)
commit2db48d8bf87d3cb9d968e73623efc1c5a02523e7
tree6d441942517e038c080d3baf423d1b5a8df093fb
parent43cc54d8dbe6b761bd2672bf9bb46e5290e90277
arm64: uaccess: Use unsafe wrappers for ASM GOTO

Clang propagates a provided label, which is outside of a cleanup scope to
ASM GOTO despite the fact that __raw_get_mem() has a local label for that
purpose:

  "error: cannot jump from this asm goto statement to one of its possible targets"

Using the unsafe wrapper with the extra local label indirection cures that.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/arm64/include/asm/uaccess.h