lkml.org 
[lkml]   [2009]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 39/85] [PATCH 19/44] [CVE-2009-0029] System call wrappers part 09
    2.6.27-stable review patch.  If anyone has any objections, please let us know.

    ------------------

    From: Heiko Carstens <heiko.carstens@de.ibm.com>

    commit a5f8fa9e9ba5ef3305e147f41ad6e1e84ac1f0bd upstream.

    Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    fs/sync.c | 6 +++---
    kernel/signal.c | 21 ++++++++-------------
    2 files changed, 11 insertions(+), 16 deletions(-)

    --- a/fs/sync.c
    +++ b/fs/sync.c
    @@ -36,7 +36,7 @@ static void do_sync(unsigned long wait)
    laptop_sync_completion();
    }

    -asmlinkage long sys_sync(void)
    +SYSCALL_DEFINE0(sync)
    {
    do_sync(1);
    return 0;
    @@ -118,12 +118,12 @@ static long __do_fsync(unsigned int fd,
    return ret;
    }

    -asmlinkage long sys_fsync(unsigned int fd)
    +SYSCALL_DEFINE1(fsync, unsigned int, fd)
    {
    return __do_fsync(fd, 0);
    }

    -asmlinkage long sys_fdatasync(unsigned int fd)
    +SYSCALL_DEFINE1(fdatasync, unsigned int, fd)
    {
    return __do_fsync(fd, 1);
    }
    --- a/kernel/signal.c
    +++ b/kernel/signal.c
    @@ -2254,7 +2254,7 @@ static int do_tkill(pid_t tgid, pid_t pi
    * exists but it's not belonging to the target process anymore. This
    * method solves the problem of threads exiting and PIDs getting reused.
    */
    -asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig)
    +SYSCALL_DEFINE3(tgkill, pid_t, tgid, pid_t, pid, int, sig)
    {
    /* This is only valid for single tasks */
    if (pid <= 0 || tgid <= 0)
    @@ -2266,8 +2266,7 @@ asmlinkage long sys_tgkill(pid_t tgid, p
    /*
    * Send a signal to only one task, even if it's a CLONE_THREAD task.
    */
    -asmlinkage long
    -sys_tkill(pid_t pid, int sig)
    +SYSCALL_DEFINE2(tkill, pid_t, pid, int, sig)
    {
    /* This is only valid for single tasks */
    if (pid <= 0)
    @@ -2276,8 +2275,8 @@ sys_tkill(pid_t pid, int sig)
    return do_tkill(0, pid, sig);
    }

    -asmlinkage long
    -sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t __user *uinfo)
    +SYSCALL_DEFINE3(rt_sigqueueinfo, pid_t, pid, int, sig,
    + siginfo_t __user *, uinfo)
    {
    siginfo_t info;

    @@ -2501,15 +2500,13 @@ out:
    /*
    * For backwards compatibility. Functionality superseded by sigprocmask.
    */
    -asmlinkage long
    -sys_sgetmask(void)
    +SYSCALL_DEFINE0(sgetmask)
    {
    /* SMP safe */
    return current->blocked.sig[0];
    }

    -asmlinkage long
    -sys_ssetmask(int newmask)
    +SYSCALL_DEFINE1(ssetmask, int, newmask)
    {
    int old;

    @@ -2529,8 +2526,7 @@ sys_ssetmask(int newmask)
    /*
    * For backwards compatibility. Functionality superseded by sigaction.
    */
    -asmlinkage long
    -sys_signal(int sig, __sighandler_t handler)
    +SYSCALL_DEFINE2(signal, int, sig, __sighandler_t, handler)
    {
    struct k_sigaction new_sa, old_sa;
    int ret;
    @@ -2547,8 +2543,7 @@ sys_signal(int sig, __sighandler_t handl

    #ifdef __ARCH_WANT_SYS_PAUSE

    -asmlinkage long
    -sys_pause(void)
    +SYSCALL_DEFINE0(pause)
    {
    current->state = TASK_INTERRUPTIBLE;
    schedule();


    \
     
     \ /
      Last update: 2009-01-15 23:27    [W:0.027 / U:0.028 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site