OSDN Git Service

powerpc/signal64: Rewrite handle_rt_signal64() to minimise uaccess switches
authorDaniel Axtens <dja@axtens.net>
Sat, 27 Feb 2021 01:12:57 +0000 (19:12 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Mar 2021 01:52:15 +0000 (12:52 +1100)
commit96d7a4e06fab9fbc4f67c563af65b073902f3e61
treec3fe05186bb624da9fee8b2e5b6015e2b5daf571
parent193323e1009437c0885240e75ca71f7963e4a006
powerpc/signal64: Rewrite handle_rt_signal64() to minimise uaccess switches

Add uaccess blocks and use the 'unsafe' versions of functions doing user
access where possible to reduce the number of times uaccess has to be
opened/closed.

There is no 'unsafe' version of copy_siginfo_to_user, so move it
slightly to allow for a "longer" uaccess block.

Co-developed-by: Christopher M. Riedl <cmr@codefail.de>
Signed-off-by: Daniel Axtens <dja@axtens.net>
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-9-cmr@codefail.de
arch/powerpc/kernel/signal_64.c