]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] x86_64: access of some bad address
authorHugh Dickins <hugh@veritas.com>
Tue, 2 Aug 2005 04:11:42 +0000 (21:11 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 Aug 2005 04:38:00 +0000 (21:38 -0700)
commit690dbe1ced143876d8fa56b72310738dbe079d0a
tree4297d5647ce5e6cbe429dc506007579952c31015
parent74f9c9c258249fba3e2e78f70691528426a6c010
[PATCH] x86_64: access of some bad address

x86_64 has a large sparse gate area between VSYSCALL_START and
VSYSCALL_END, not all of it presently backed by pmds.  Alexander Nyberg has
found that in some circumstances gdb may try to ptrace here, and hit
get_user_pages BUG_ON.  It seems odd that gdb should be accessing here, but
it certainly shouldn't crash in this way: relax BUG_ON to -EFAULT.  Fixes
kernel bugzilla #4801.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/memory.c