~ubuntu-branches/ubuntu/dapper/linux-source-2.6.15/dapper-updates

« back to all changes in this revision

Viewing changes to mm/mempolicy.c

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Bader, Stefan Bader, Upstream Kernel Changes
  • Date: 2009-03-16 17:26:53 UTC
  • mfrom: (41.1.8 dapper-security)
  • Revision ID: james.westby@ubuntu.com-20090316172653-tfjmtzutjafofqct
Tags: 2.6.15-54.76
[ Stefan Bader ]

* Fixing up powerpc specific syscalls
  - CVE-2009-0029

[ Upstream Kernel Changes ]

* NFS: Remove the buggy lock-if-signalled case from do_setlk()
  - CVE-2008-4307
* sctp: Avoid memory overflow while FWD-TSN chunk is received with bad
  stream ID
  - CVE-2009-0065
* net: 4 bytes kernel memory disclosure in SO_BSDCOMPAT gsopt try #2
  - CVE-2009-0676
* sparc: Fix mremap address range validation.
  - CVE-2008-6107
* copy_process: fix CLONE_PARENT && parent_exec_id interaction
  - CVE-2009-0028
* dell_rbu: use scnprintf() instead of less secure sprintf()
  - CVE-2009-0322
* drivers/net/skfp: if !capable(CAP_NET_ADMIN): inverted logic
  - CVE-2009-0675
* x86_64: Implement is_compat_task the right way
  - CVE-2009-0834
* x86-64: syscall-audit: fix 32/64 syscall hole
  - CVE-2009-0834
* x86-64: seccomp: fix 32/64 syscall hole
  - CVE-2009-0835
* shm: fix shmctl(SHM_INFO) lockup with !CONFIG_SHMEM
  - CVE-2009-0859
* udf: Fix oops when invalid character in
  filename occurs
  - LP: #321606
* Convert all system calls to return a long
  - CVE-2009-0029
* Rename old_readdir to sys_old_readdir
  - CVE-2009-0029
* Remove __attribute__((weak)) from sys_pipe/sys_pipe2
  - CVE-2009-0029
* Make sys_syslog a conditional system call
  - CVE-2009-0029
* System call wrapper infrastructure
  - CVE-2009-0029
* powerpc: Enable syscall wrappers for 64-bit
  - CVE-2009-0029
* s390: enable system call wrappers
  - CVE-2009-0029
* System call wrapper special cases
  - CVE-2009-0029
* Bump ABI
* System call wrappers part 01
  - CVE-2009-0029
* System call wrappers part 02
  - CVE-2009-0029
* System call wrappers part 03
  - CVE-2009-0029
* System call wrappers part 04
  - CVE-2009-0029
* System call wrappers part 05
  - CVE-2009-0029
* System call wrappers part 06
  - CVE-2009-0029
* System call wrappers part 07
  - CVE-2009-0029
* System call wrappers part 08
  - CVE-2009-0029
* System call wrappers part 09
  - CVE-2009-0029
* System call wrappers part 10
  - CVE-2009-0029
* System call wrappers part 11
  - CVE-2009-0029
* System call wrappers part 12
  - CVE-2009-0029
* System call wrappers part 13
  - CVE-2009-0029
* System call wrappers part 14
  - CVE-2009-0029
* System call wrappers part 15
  - CVE-2009-0029
* System call wrappers part 16
  - CVE-2009-0029
* System call wrappers part 17
  - CVE-2009-0029
* System call wrappers part 18
  - CVE-2009-0029
* System call wrappers part 19
  - CVE-2009-0029
* System call wrappers part 20
  - CVE-2009-0029
* System call wrappers part 21
  - CVE-2009-0029
* System call wrappers part 22
  - CVE-2009-0029
* System call wrappers part 23
  - CVE-2009-0029
* System call wrappers part 24
  - CVE-2009-0029
* System call wrappers part 25
  - CVE-2009-0029
* System call wrappers part 26
  - CVE-2009-0029
* System call wrappers part 27
  - CVE-2009-0029
* System call wrappers part 28
  - CVE-2009-0029
* System call wrappers part 29
  - CVE-2009-0029
* System call wrappers part 32
  - CVE-2009-0029
* System call wrappers part 33
  - CVE-2009-0029
* s390 specific system call wrappers
  - CVE-2009-0029
* sparc: Enable syscall wrappers for 64-bit (CVE-2009-0029)
  - CVE-2009-0029
* syscall define: fix uml compile bug
  - CVE-2009-0029
* Fixing up the syscall wrappers to match the Dapper (2.6.15) kernel
  - CVE-2009-0029

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
#include <linux/init.h>
84
84
#include <linux/compat.h>
85
85
#include <linux/mempolicy.h>
 
86
#include <linux/syscalls.h>
86
87
#include <asm/tlbflush.h>
87
88
#include <asm/uaccess.h>
88
89
 
579
580
        return copy_to_user(mask, nodes_addr(*nodes), copy) ? -EFAULT : 0;
580
581
}
581
582
 
582
 
asmlinkage long sys_mbind(unsigned long start, unsigned long len,
583
 
                        unsigned long mode,
584
 
                        unsigned long __user *nmask, unsigned long maxnode,
585
 
                        unsigned flags)
 
583
SYSCALL_DEFINE6(mbind, unsigned long, start, unsigned long, len,
 
584
                unsigned long, mode, unsigned long __user *, nmask,
 
585
                unsigned long, maxnode, unsigned, flags)
586
586
{
587
587
        nodemask_t nodes;
588
588
        int err;
594
594
}
595
595
 
596
596
/* Set the process memory policy */
597
 
asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask,
598
 
                unsigned long maxnode)
 
597
SYSCALL_DEFINE3(set_mempolicy, int, mode, unsigned long __user *, nmask,
 
598
                unsigned long, maxnode)
599
599
{
600
600
        int err;
601
601
        nodemask_t nodes;
609
609
}
610
610
 
611
611
/* Retrieve NUMA policy */
612
 
asmlinkage long sys_get_mempolicy(int __user *policy,
613
 
                                unsigned long __user *nmask,
614
 
                                unsigned long maxnode,
615
 
                                unsigned long addr, unsigned long flags)
 
612
SYSCALL_DEFINE5(get_mempolicy, int __user *, policy,
 
613
                unsigned long __user *, nmask, unsigned long, maxnode,
 
614
                unsigned long, addr, unsigned long, flags)
616
615
{
617
616
        int err, pval;
618
617
        nodemask_t nodes;