summaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/ptrace.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-06-17 13:25:08 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-06-17 13:25:08 +0000
commit59223edaa18759982db0a8aced0e77457d10c68e (patch)
tree89354903b01fa0a447bffeefe00df3044495db2e /arch/sparc64/kernel/ptrace.c
parentdb7d4daea91e105e3859cf461d7e53b9b77454b2 (diff)
Merge with Linux 2.3.6. Sorry, this isn't tested on silicon, I don't
have a MIPS box at hand.
Diffstat (limited to 'arch/sparc64/kernel/ptrace.c')
-rw-r--r--arch/sparc64/kernel/ptrace.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/arch/sparc64/kernel/ptrace.c b/arch/sparc64/kernel/ptrace.c
index 4dd9651b3..00340d6d5 100644
--- a/arch/sparc64/kernel/ptrace.c
+++ b/arch/sparc64/kernel/ptrace.c
@@ -204,26 +204,6 @@ static inline void put_int(struct task_struct * tsk, struct vm_area_struct * vma
flush_tlb_page(vma, addr);
}
-static struct vm_area_struct * find_extend_vma(struct task_struct * tsk,
- unsigned long addr)
-{
- struct vm_area_struct * vma;
-
- addr &= PAGE_MASK;
- vma = find_vma(tsk->mm,addr);
- if (!vma)
- return NULL;
- if (vma->vm_start <= addr)
- return vma;
- if (!(vma->vm_flags & VM_GROWSDOWN))
- return NULL;
- if (vma->vm_end - addr > tsk->rlim[RLIMIT_STACK].rlim_cur)
- return NULL;
- vma->vm_offset -= vma->vm_start - addr;
- vma->vm_start = addr;
- return vma;
-}
-
/*
* This routine checks the page boundaries, and that the offset is
* within the task area. It then calls get_long() to read a long.
@@ -603,6 +583,7 @@ asmlinkage void do_ptrace(struct pt_regs *regs)
if((!child->dumpable ||
(current->uid != child->euid) ||
(current->uid != child->uid) ||
+ (current->uid != child->suid) ||
(current->gid != child->egid) ||
(current->gid != child->sgid) ||
(!cap_issubset(child->cap_permitted, current->cap_permitted)) ||
Ralf Baechle2000-07-1263-638/+998 * Merge with Linux 2.4.0-test3.Ralf Baechle2000-07-1116-10/+3714 * Remove usless initialization.Ralf Baechle2000-07-111-1/+1 * Merge with Linux 2.4.0-test3-pre8. Linus has accepted most of whatRalf Baechle2000-07-1010-775/+839 * Remove broken garbage, wonder where it came from.Ralf Baechle2000-07-101-12/+0 * Kill junk from recent merge.Ralf Baechle2000-07-103-3036/+0 * Merge with 2.4.0-test3-pre7.Ralf Baechle2000-07-0913-40/+62 * Fix for scsi.c warning. Patch sent to Linus.Ralf Baechle2000-07-091-1/+2 * Serial driver fixes, sent to Linus.Ralf Baechle2000-07-091-2/+4 * DECstation resp. R3000 related -Werror fixesHarald Koerfgen2000-07-091-79/+98 * Merge with Linux 2.4.0-pre3-test6.Ralf Baechle2000-07-0920-115/+215 * Merge with Linux 2.4.0-test3-pre5. 64-bit kernel are still notRalf Baechle2000-07-0845-143/+186 * Merge with 2.4.0-test3-pre4.Ralf Baechle2000-07-08308-2235/+69757 * Fix some -Werror bugs - some vars were obsoleteFlorian Lohoff2000-07-061-2/+0 * No more ifeq needed.Ralf Baechle2000-07-061-4/+1 * One more compiler warning that was hiding a real bug ...Ralf Baechle2000-07-051-3/+2 * Ignore more stuff for CVS.Ralf Baechle2000-07-041-0/+5 * Make pid_t int. Change printf()'s according to that. DeclareUlf Carlsson2000-07-042-10/+10 * Various minor type fixes.Ulf Carlsson2000-07-044-7/+8 * Merge with Linux 2.4.0-test3-pre2.Ralf Baechle2000-07-0371-648/+5151 * Fix compile error. DEC guys, nobody of you compiling this stuff orRalf Baechle2000-06-291-1/+1 * Cleanup CONFIG_SGI_IP35.Ralf Baechle2000-06-271-7/+1 * Delete junkfile.Ralf Baechle2000-06-252-59/+0 * Merge with Linux 2.4.0-test2.Ralf Baechle2000-06-25137-10735/+11597 * Merge with Linux 2.4.0-ac22-riel.Ralf Baechle2000-06-2158-98/+106 * Undo random keyboard driver patch which nobody really remembersRalf Baechle2000-06-201-1/+1 * Fix struct stat64 in the 32-bit kernel and struct stat in the 64-bitRalf Baechle2000-06-201-1/+1 * Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make mergingRalf Baechle2000-06-19