diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-31 16:19:46 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-31 16:19:46 (GMT) |
commit | 5307cc1aa53850f017c8053db034cf950b670ac9 (patch) | |
tree | 6fd2ff3fe382ba1aac5e8b6c703268200a80ed40 /fs/binfmt_elf.c | |
parent | bb374b7b938f73666c403b201b3dd48ec9fe118a (diff) | |
download | linux-5307cc1aa53850f017c8053db034cf950b670ac9.tar.xz |
Remove broken ptrace() special-case code from file mapping
The kernel has for random historical reasons allowed ptrace() accesses
to access (and insert) pages into the page cache above the size of the
file.
However, Nick broke that by mistake when doing the new fault handling in
commit 54cb8821de07f2ffcd28c380ce9b93d5784b40d7 ("mm: merge populate and
nopage into fault (fixes nonlinear)". The breakage caused a hang with
gdb when trying to access the invalid page.
The ptrace "feature" really isn't worth resurrecting, since it really is
wrong both from a portability _and_ from an internal page cache validity
standpoint. So this removes those old broken remnants, and fixes the
ptrace() hang in the process.
Noticed and bisected by Duane Griffin, who also supplied a test-case
(quoth Nick: "Well that's probably the best bug report I've ever had,
thanks Duane!").
Cc: Duane Griffin <duaneg@dghda.com>
Acked-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/binfmt_elf.c')
0 files changed, 0 insertions, 0 deletions