Searched hist:193323 (Results 1 - 1 of 1) sorted by relevance
/linux-master/arch/powerpc/kernel/ | ||
H A D | signal_64.c | diff 193323e1 Fri Feb 26 18:12:56 MST 2021 Christopher M. Riedl <cmr@codefail.de> powerpc/signal64: Replace restore_sigcontext() w/ unsafe_restore_sigcontext() Previously restore_sigcontext() performed a costly KUAP switch on every uaccess operation. These repeated uaccess switches cause a significant drop in signal handling performance. Rewrite restore_sigcontext() to assume that a userspace read access window is open by replacing all uaccess functions with their 'unsafe' versions. Modify the callers to first open, call unsafe_restore_sigcontext(), and then close the uaccess window. Signed-off-by: Christopher M. Riedl <cmr@codefail.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210227011259.11992-8-cmr@codefail.de |
Completed in 122 milliseconds