OSDN Git Service

x86: ia32_setup_sigcontext(): lift user_access_{begin,end}() into the callers
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 15 Feb 2020 23:46:02 +0000 (18:46 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 26 Mar 2020 18:35:43 +0000 (14:35 -0400)
commit44a1d996325982025eefcdc50b636ab83e813372
tree4640c1a3fe0d8eb611825dbdd369eee5b5013b86
parent39f16c1c0f14e9794545dbf6a64c909d5e16a2ea
x86: ia32_setup_sigcontext(): lift user_access_{begin,end}() into the callers

What's left is just a sequence of stores to userland addresses, with all
error handling, etc. done out of line.  Calling that from user_access block
is safe, but rather than teaching objtool to recognize it as such we can
just make it always_inline - it is small enough and has few enough callers,
for the space savings not to be an issue.

Rename the sucker to __unsafe_setup_sigcontext32() and provide
unsafe_put_sigcontext32() with usual kind of semantics.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/ia32/ia32_signal.c