Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113777
b: refs/heads/master
c: 3c08f1d
h: refs/heads/master
i:
  113775: fe86661
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Oct 10, 2008
1 parent 020cffc commit 09f25cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d207a8c7681f14302e9e80ef5b8202abe39060b5
refs/heads/master: 3c08f1d122627c9559fb03a11f52ea37f960b61e
4 changes: 4 additions & 0 deletions trunk/arch/blackfin/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ static inline int is_user_addr_valid(struct task_struct *child,
struct vm_list_struct *vml;
struct sram_list_struct *sraml;

/* overflow */
if (start + len < start)
return -EIO;

for (vml = child->mm->context.vmlist; vml; vml = vml->next)
if (start >= vml->vma->vm_start && start + len < vml->vma->vm_end)
return 0;
Expand Down

0 comments on commit 09f25cc

Please sign in to comment.