+4
−0
+98
−23
+5
−7
Loading
mainline inclusion from mainline-v6.11-rc1 commit 86a6a68febfcf57b5c2a7ba33e6d6f1f78ca5197 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IB81V6 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=86a6a68febfcf57b5c2a7ba33e6d6f1f78ca5197 -------------------------------- 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. Note that according to the description above, it is necessary to disable KCSAN when enabling ARM64_SW_TTBR0_PAN after applying this patch. However, during compilation, there is a configuration circular dependency issue, so the dependency is temporarily removed. Signed-off-by:Linus Torvalds <torvalds@linux-foundation.org> Conflicts: arch/arm64/Kconfig [Resolve conflicts dut to Recursive dependency on kconfig detected] Signed-off-by:
Ze Zuo <zuoze1@huawei.com>