Christopher M. Riedl 193323e100 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
2021-03-29 12:49:47 +11:00
..
2021-02-25 10:17:31 -08:00
2021-02-22 14:34:00 -08:00
2020-08-07 18:48:15 -07:00
2021-02-22 14:34:00 -08:00
2021-02-09 00:02:09 +11:00
2020-12-09 23:48:14 +11:00
2020-12-04 01:01:09 +11:00
2021-02-24 16:32:23 -08:00
2021-02-22 14:34:00 -08:00
2020-10-08 21:17:12 +11:00
2020-07-27 00:01:30 +10:00
2020-06-05 12:39:30 -07:00
2020-06-05 12:39:30 -07:00
2021-03-24 14:09:29 +11:00
2020-12-05 21:49:52 +11:00
2021-02-09 00:10:50 +11:00
2021-03-24 14:09:30 +11:00
2020-11-18 14:18:09 -06:00
2020-12-04 01:01:19 +11:00