Linus Torvalds
5307cc1aa5
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 54cb8821de ("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>
2007-10-31 09:19:46 -07:00
..
allocpercpu.c
backing-dev.c
mm: per device dirty threshold
2007-10-17 08:42:45 -07:00
bootmem.c
bounce.c
fadvise.c
filemap.c
Remove broken ptrace() special-case code from file mapping
2007-10-31 09:19:46 -07:00
filemap_xip.c
fremap.c
remap_file_pages: kernel-doc corrections
2007-10-17 08:43:07 -07:00
highmem.c
hugetlb.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
internal.h
Breakout page_order() to internal.h to avoid special knowledge of the buddy allocator
2007-10-16 09:43:01 -07:00
Kconfig
small documentation fixes
2007-10-20 02:46:58 +02:00
madvise.c
Makefile
memory unplug: page isolation
2007-10-16 09:43:02 -07:00
memory.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
memory_hotplug.c
memory hotplug: rearrange memory hotplug notifier
2007-10-22 08:13:17 -07:00
mempolicy.c
Uninline find_task_by_xxx set of functions
2007-10-19 11:53:40 -07:00
mempool.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
migrate.c
Typo fixes retrun -> return
2007-10-20 02:13:26 +02:00
mincore.c
mlock.c
mmap.c
fix mprotect vma_wants_writenotify prot
2007-10-23 08:32:06 -07:00
mmzone.c
mprotect.c
fix mprotect vma_wants_writenotify prot
2007-10-23 08:32:06 -07:00
mremap.c
sparse pointer use of zero as null
2007-10-18 14:37:31 -07:00
msync.c
nommu.c
NOMMU: mm/nommu.c needs linux/module.h
2007-10-29 07:53:26 -07:00
oom_kill.c
oom_kill bug
2007-10-20 15:04:06 -07:00
page-writeback.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
page_alloc.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
page_io.c
page_isolation.c
memory unplug: page isolation
2007-10-16 09:43:02 -07:00
pdflush.c
prio_tree.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
quicklist.c
readahead.c
mm: bdi init hooks
2007-10-17 08:42:45 -07:00
rmap.c
mm: document tree_lock->zone.lock lockorder
2007-10-17 08:42:46 -07:00
shmem.c
fix tmpfs BUG and AOP_WRITEPAGE_ACTIVATE
2007-10-30 08:06:55 -07:00
shmem_acl.c
slab.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
slob.c
Slab API: remove useless ctor parameter and reorder parameters
2007-10-17 08:42:45 -07:00
slub.c
missing atomic_read_long() in slub.c
2007-10-29 07:41:32 -07:00
sparse-vmemmap.c
mm/sparse-vmemmap.c: make sure init_mm is included
2007-10-30 08:06:55 -07:00
sparse.c
Revert "x86_64: allocate sparsemem memmap above 4G"
2007-10-29 14:05:37 -07:00
swap.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
swap_state.c
swapfile.c
thrash.c
tiny-shmem.c
r/o bind mounts: filesystem helpers for custom 'struct file's
2007-10-17 08:43:04 -07:00
truncate.c
Drop some headers from mm.h
2007-10-17 08:42:55 -07:00
util.c
vmalloc.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
vmscan.c
spelling fixes: mm/
2007-10-20 01:27:18 +02:00
vmstat.c
oom: change all_unreclaimable zone member to flags
2007-10-17 08:42:45 -07:00