Commit 6a6160a7 authored by Heiko Carstens's avatar Heiko Carstens

[CVE-2009-0029] System call wrappers part 13

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent 64fd1de3
...@@ -499,8 +499,8 @@ SYSCALL_DEFINE2(removexattr, const char __user *, pathname, ...@@ -499,8 +499,8 @@ SYSCALL_DEFINE2(removexattr, const char __user *, pathname,
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE2(lremovexattr, const char __user *, pathname,
sys_lremovexattr(const char __user *pathname, const char __user *name) const char __user *, name)
{ {
struct path path; struct path path;
int error; int error;
...@@ -517,8 +517,7 @@ sys_lremovexattr(const char __user *pathname, const char __user *name) ...@@ -517,8 +517,7 @@ sys_lremovexattr(const char __user *pathname, const char __user *name)
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE2(fremovexattr, int, fd, const char __user *, name)
sys_fremovexattr(int fd, const char __user *name)
{ {
struct file *f; struct file *f;
struct dentry *dentry; struct dentry *dentry;
......
...@@ -120,8 +120,8 @@ static int populate_range(struct mm_struct *mm, struct vm_area_struct *vma, ...@@ -120,8 +120,8 @@ static int populate_range(struct mm_struct *mm, struct vm_area_struct *vma,
* and the vma's default protection is used. Arbitrary protections * and the vma's default protection is used. Arbitrary protections
* might be implemented in the future. * might be implemented in the future.
*/ */
asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, SYSCALL_DEFINE5(remap_file_pages, unsigned long, start, unsigned long, size,
unsigned long prot, unsigned long pgoff, unsigned long flags) unsigned long, prot, unsigned long, pgoff, unsigned long, flags)
{ {
struct mm_struct *mm = current->mm; struct mm_struct *mm = current->mm;
struct address_space *mapping; struct address_space *mapping;
......
...@@ -530,7 +530,7 @@ static int do_mlock(unsigned long start, size_t len, int on) ...@@ -530,7 +530,7 @@ static int do_mlock(unsigned long start, size_t len, int on)
return error; return error;
} }
asmlinkage long sys_mlock(unsigned long start, size_t len) SYSCALL_DEFINE2(mlock, unsigned long, start, size_t, len)
{ {
unsigned long locked; unsigned long locked;
unsigned long lock_limit; unsigned long lock_limit;
...@@ -558,7 +558,7 @@ asmlinkage long sys_mlock(unsigned long start, size_t len) ...@@ -558,7 +558,7 @@ asmlinkage long sys_mlock(unsigned long start, size_t len)
return error; return error;
} }
asmlinkage long sys_munlock(unsigned long start, size_t len) SYSCALL_DEFINE2(munlock, unsigned long, start, size_t, len)
{ {
int ret; int ret;
......
...@@ -245,7 +245,7 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma) ...@@ -245,7 +245,7 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)
return next; return next;
} }
asmlinkage long sys_brk(unsigned long brk) SYSCALL_DEFINE1(brk, unsigned long, brk)
{ {
unsigned long rlim, retval; unsigned long rlim, retval;
unsigned long newbrk, oldbrk; unsigned long newbrk, oldbrk;
...@@ -1948,7 +1948,7 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len) ...@@ -1948,7 +1948,7 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len)
EXPORT_SYMBOL(do_munmap); EXPORT_SYMBOL(do_munmap);
asmlinkage long sys_munmap(unsigned long addr, size_t len) SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
{ {
int ret; int ret;
struct mm_struct *mm = current->mm; struct mm_struct *mm = current->mm;
......
...@@ -217,8 +217,8 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev, ...@@ -217,8 +217,8 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
return error; return error;
} }
asmlinkage long SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
sys_mprotect(unsigned long start, size_t len, unsigned long prot) unsigned long, prot)
{ {
unsigned long vm_flags, nstart, end, tmp, reqprot; unsigned long vm_flags, nstart, end, tmp, reqprot;
struct vm_area_struct *vma, *prev; struct vm_area_struct *vma, *prev;
......
...@@ -420,9 +420,9 @@ unsigned long do_mremap(unsigned long addr, ...@@ -420,9 +420,9 @@ unsigned long do_mremap(unsigned long addr,
return ret; return ret;
} }
asmlinkage long sys_mremap(unsigned long addr, SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
unsigned long old_len, unsigned long new_len, unsigned long, new_len, unsigned long, flags,
unsigned long flags, unsigned long new_addr) unsigned long, new_addr)
{ {
unsigned long ret; unsigned long ret;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* So by _not_ starting I/O in MS_ASYNC we provide complete flexibility to * So by _not_ starting I/O in MS_ASYNC we provide complete flexibility to
* applications. * applications.
*/ */
asmlinkage long sys_msync(unsigned long start, size_t len, int flags) SYSCALL_DEFINE3(msync, unsigned long, start, size_t, len, int, flags)
{ {
unsigned long end; unsigned long end;
struct mm_struct *mm = current->mm; struct mm_struct *mm = current->mm;
......
...@@ -416,7 +416,7 @@ EXPORT_SYMBOL(vm_insert_page); ...@@ -416,7 +416,7 @@ EXPORT_SYMBOL(vm_insert_page);
* to a regular file. in this case, the unmapping will need * to a regular file. in this case, the unmapping will need
* to invoke file system routines that need the global lock. * to invoke file system routines that need the global lock.
*/ */
asmlinkage long sys_brk(unsigned long brk) SYSCALL_DEFINE1(brk, unsigned long, brk)
{ {
struct mm_struct *mm = current->mm; struct mm_struct *mm = current->mm;
...@@ -1573,7 +1573,7 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len) ...@@ -1573,7 +1573,7 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len)
} }
EXPORT_SYMBOL(do_munmap); EXPORT_SYMBOL(do_munmap);
asmlinkage long sys_munmap(unsigned long addr, size_t len) SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
{ {
int ret; int ret;
struct mm_struct *mm = current->mm; struct mm_struct *mm = current->mm;
...@@ -1657,10 +1657,9 @@ unsigned long do_mremap(unsigned long addr, ...@@ -1657,10 +1657,9 @@ unsigned long do_mremap(unsigned long addr,
} }
EXPORT_SYMBOL(do_mremap); EXPORT_SYMBOL(do_mremap);
asmlinkage SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
unsigned long sys_mremap(unsigned long addr, unsigned long, new_len, unsigned long, flags,
unsigned long old_len, unsigned long new_len, unsigned long, new_addr)
unsigned long flags, unsigned long new_addr)
{ {
unsigned long ret; unsigned long ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment