]> Git Repo - linux.git/commit
arm64: start using 'asm goto' for get_user() when available
authorLinus Torvalds <[email protected]>
Sun, 9 Jun 2024 17:11:04 +0000 (10:11 -0700)
committerLinus Torvalds <[email protected]>
Wed, 19 Jun 2024 19:33:38 +0000 (12:33 -0700)
commit86a6a68febfcf57b5c2a7ba33e6d6f1f78ca5197
tree35355f828c8104b5542f8b851ba7015a1e9971f9
parent6ba59ff4227927d3a8530fc2973b80e94b54d58f
arm64: start using 'asm goto' for get_user() when available

This generates noticeably better code with compilers that support it,
since we don't need to test the error register etc, the exception just
jumps to the error handling directly.

Note that this also marks SW_TTBR0_PAN incompatible with KCSAN support,
since KCSAN wants to save and restore the user access state.

KCSAN and SW_TTBR0_PAN were probably always incompatible, but it became
obvious only when implementing the unsafe user access functions.  At
that point the default empty user_access_save/restore() functions
weren't provided by the default fallback functions.

Signed-off-by: Linus Torvalds <[email protected]>
arch/arm64/Kconfig
arch/arm64/include/asm/uaccess.h
arch/arm64/kernel/mte.c
This page took 0.062005 seconds and 4 git commands to generate.