posix-timers: Move compat_timer_create() to native, get rid of set_fs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: John Stultz <john.stultz@linaro.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20170607084241.28657-14-viro@ZenIV.linux.org.uk
This commit is contained in:
@@ -580,24 +580,6 @@ int put_compat_itimerspec(struct compat_itimerspec __user *dst,
|
||||
return 0;
|
||||
}
|
||||
|
||||
COMPAT_SYSCALL_DEFINE3(timer_create, clockid_t, which_clock,
|
||||
struct compat_sigevent __user *, timer_event_spec,
|
||||
timer_t __user *, created_timer_id)
|
||||
{
|
||||
struct sigevent __user *event = NULL;
|
||||
|
||||
if (timer_event_spec) {
|
||||
struct sigevent kevent;
|
||||
|
||||
event = compat_alloc_user_space(sizeof(*event));
|
||||
if (get_compat_sigevent(&kevent, timer_event_spec) ||
|
||||
copy_to_user(event, &kevent, sizeof(*event)))
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
return sys_timer_create(which_clock, event, created_timer_id);
|
||||
}
|
||||
|
||||
/*
|
||||
* We currently only need the following fields from the sigevent
|
||||
* structure: sigev_value, sigev_signo, sig_notify and (sometimes
|
||||
|
Reference in New Issue
Block a user