kernel-ark/include/asm-generic
Nick Piggin 8b1f312461 [PATCH] mm: move_pte to remap ZERO_PAGE
Move the ZERO_PAGE remapping complexity to the move_pte macro in
asm-generic, have it conditionally depend on
__HAVE_ARCH_MULTIPLE_ZERO_PAGE, which gets defined for MIPS.

For architectures without __HAVE_ARCH_MULTIPLE_ZERO_PAGE, move_pte becomes
a noop.

From: Hugh Dickins <hugh@veritas.com>

Fix nasty little bug we've missed in Nick's mremap move ZERO_PAGE patch.
The "pte" at that point may be a swap entry or a pte_file entry: we must
check pte_present before perhaps corrupting such an entry.

Patch below against 2.6.14-rc2-mm1, but the same bug is in 2.6.14-rc2's
mm/mremap.c, and more dangerous there since it's affecting all arches: I
think the safest course is to send Nick's patch and Yoichi's build fix and
this fix (build tested) on to Linus - so only MIPS can be affected.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-28 07:46:40 -07:00
..
4level-fixup.h
bitops.h
bug.h
cputime.h
div64.h
dma-mapping-broken.h
dma-mapping.h
emergency-restart.h [PATCH] Add emergency_restart() 2005-07-26 14:35:41 -07:00
errno-base.h
errno.h
fcntl.h [PATCH] Clean up struct flock64 definitions 2005-09-07 16:57:38 -07:00
ide_iops.h
iomap.h
ipc.h
local.h
page.h [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
pci-dma-compat.h
pci.h [PATCH] Make sparc64 use setup-res.c 2005-09-08 14:57:25 -07:00
percpu.h
pgtable-nopmd.h
pgtable-nopud.h
pgtable.h [PATCH] mm: move_pte to remap ZERO_PAGE 2005-09-28 07:46:40 -07:00
resource.h
rtc.h
sections.h [PATCH] Kprobes: prevent possible race conditions generic 2005-09-07 16:57:59 -07:00
siginfo.h
signal.h
statfs.h
termios.h
tlb.h [PATCH] x86-64: Increase TLB flush array size 2005-09-12 10:49:58 -07:00
topology.h
uaccess.h
unaligned.h [PATCH] optimise 64bit unaligned access on 32bit kernel 2005-09-07 16:57:36 -07:00
vmlinux.lds.h [PATCH] i386 / uml: add dwarf sections to static link script 2005-09-10 12:00:17 -07:00
xor.h