git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vm: make stack guard page errors return VM_FAULT_SIGSEGV rather than SIGBUS
[pandora-kernel.git]
/
mm
/
memory.c
diff --git
a/mm/memory.c
b/mm/memory.c
index
816002c
..
0a7bb38
100644
(file)
--- a/
mm/memory.c
+++ b/
mm/memory.c
@@
-3155,7
+3155,7
@@
static int do_anonymous_page(struct mm_struct *mm, struct vm_area_struct *vma,
/* Check if we need to add a guard page to the stack */
if (check_stack_guard_page(vma, address) < 0)
- return VM_FAULT_SIG
BUS
;
+ return VM_FAULT_SIG
SEGV
;
/* Use the zero-page for reads */
if (!(flags & FAULT_FLAG_WRITE)) {