diff options
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 4afd9b86cc0b..06981a8b271b 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -404,7 +404,7 @@ int ptrace_writedata(struct task_struct *tsk, char __user *src, unsigned long ds | |||
404 | return copied; | 404 | return copied; |
405 | } | 405 | } |
406 | 406 | ||
407 | static int ptrace_setoptions(struct task_struct *child, long data) | 407 | static int ptrace_setoptions(struct task_struct *child, unsigned long data) |
408 | { | 408 | { |
409 | child->ptrace &= ~PT_TRACE_MASK; | 409 | child->ptrace &= ~PT_TRACE_MASK; |
410 | 410 | ||
@@ -483,7 +483,8 @@ static int ptrace_setsiginfo(struct task_struct *child, const siginfo_t *info) | |||
483 | #define is_sysemu_singlestep(request) 0 | 483 | #define is_sysemu_singlestep(request) 0 |
484 | #endif | 484 | #endif |
485 | 485 | ||
486 | static int ptrace_resume(struct task_struct *child, long request, long data) | 486 | static int ptrace_resume(struct task_struct *child, long request, |
487 | unsigned long data) | ||
487 | { | 488 | { |
488 | if (!valid_signal(data)) | 489 | if (!valid_signal(data)) |
489 | return -EIO; | 490 | return -EIO; |
@@ -560,7 +561,7 @@ static int ptrace_regset(struct task_struct *task, int req, unsigned int type, | |||
560 | #endif | 561 | #endif |
561 | 562 | ||
562 | int ptrace_request(struct task_struct *child, long request, | 563 | int ptrace_request(struct task_struct *child, long request, |
563 | long addr, long data) | 564 | unsigned long addr, unsigned long data) |
564 | { | 565 | { |
565 | int ret = -EIO; | 566 | int ret = -EIO; |
566 | siginfo_t siginfo; | 567 | siginfo_t siginfo; |
@@ -693,7 +694,8 @@ static struct task_struct *ptrace_get_task_struct(pid_t pid) | |||
693 | #define arch_ptrace_attach(child) do { } while (0) | 694 | #define arch_ptrace_attach(child) do { } while (0) |
694 | #endif | 695 | #endif |
695 | 696 | ||
696 | SYSCALL_DEFINE4(ptrace, long, request, long, pid, long, addr, long, data) | 697 | SYSCALL_DEFINE4(ptrace, long, request, long, pid, unsigned long, addr, |
698 | unsigned long, data) | ||
697 | { | 699 | { |
698 | struct task_struct *child; | 700 | struct task_struct *child; |
699 | long ret; | 701 | long ret; |
@@ -734,7 +736,8 @@ SYSCALL_DEFINE4(ptrace, long, request, long, pid, long, addr, long, data) | |||
734 | return ret; | 736 | return ret; |
735 | } | 737 | } |
736 | 738 | ||
737 | int generic_ptrace_peekdata(struct task_struct *tsk, long addr, long data) | 739 | int generic_ptrace_peekdata(struct task_struct *tsk, unsigned long addr, |
740 | unsigned long data) | ||
738 | { | 741 | { |
739 | unsigned long tmp; | 742 | unsigned long tmp; |
740 | int copied; | 743 | int copied; |
@@ -745,7 +748,8 @@ int generic_ptrace_peekdata(struct task_struct *tsk, long addr, long data) | |||
745 | return put_user(tmp, (unsigned long __user *)data); | 748 | return put_user(tmp, (unsigned long __user *)data); |
746 | } | 749 | } |
747 | 750 | ||
748 | int generic_ptrace_pokedata(struct task_struct *tsk, long addr, long data) | 751 | int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr, |
752 | unsigned long data) | ||
749 | { | 753 | { |
750 | int copied; | 754 | int copied; |
751 | 755 | ||