You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Michael S. Tsirkin
f822566165
[PATCH] madvise MADV_DONTFORK/MADV_DOFORK
...
Currently, copy-on-write may change the physical address of a page even if the
user requested that the page is pinned in memory (either by mlock or by
get_user_pages). This happens if the process forks meanwhile, and the parent
writes to that page. As a result, the page is orphaned: in case of
get_user_pages, the application will never see any data hardware DMA's into
this page after the COW. In case of mlock'd memory, the parent is not getting
the realtime/security benefits of mlock.
In particular, this affects the Infiniband modules which do DMA from and into
user pages all the time.
This patch adds madvise options to control whether memory range is inherited
across fork. Useful e.g. for when hardware is doing DMA from/into these
pages. Could also be useful to an application wanting to speed up its forks
by cutting large areas out of consideration.
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Acked-by: Hugh Dickins <hugh@veritas.com>
Cc: Michael Kerrisk <mtk-manpages@gmx.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
19 years ago
..
a.out.h
Linux-2.6.12-rc2
20 years ago
assembler.h
Linux-2.6.12-rc2
20 years ago
atomic.h
[PATCH] mutex subsystem, add atomic_xchg() to all arches
19 years ago
auxvec.h
[PATCH] auxiliary vector cleanups
20 years ago
bitops.h
[PATCH] arm26: fix find_first_zero_bit related warnings
19 years ago
bug.h
[PATCH] remove all kernel BUGs
20 years ago
bugs.h
Linux-2.6.12-rc2
20 years ago
byteorder.h
Linux-2.6.12-rc2
20 years ago
cache.h
[PATCH] arm26: add L1_CACHE_SHIFT
19 years ago
cacheflush.h
Linux-2.6.12-rc2
20 years ago
checksum.h
Linux-2.6.12-rc2
20 years ago
constants.h
Linux-2.6.12-rc2
20 years ago
cputime.h
Linux-2.6.12-rc2
20 years ago
current.h
Linux-2.6.12-rc2
20 years ago
delay.h
Linux-2.6.12-rc2
20 years ago
div64.h
Linux-2.6.12-rc2
20 years ago
dma-mapping.h
Linux-2.6.12-rc2
20 years ago
dma.h
Linux-2.6.12-rc2
20 years ago
ecard.h
Linux-2.6.12-rc2
20 years ago
elf.h
[PATCH] ARM: 2696/1: remove ';' in ELF_DATA define in asm-arm{,26}/elf.h
20 years ago
emergency-restart.h
[PATCH] Add emergency_restart()
20 years ago
errno.h
Linux-2.6.12-rc2
20 years ago
fcntl.h
[PATCH] Clean up struct flock64 definitions
20 years ago
fiq.h
Linux-2.6.12-rc2
20 years ago
floppy.h
Linux-2.6.12-rc2
20 years ago
fpstate.h
Linux-2.6.12-rc2
20 years ago
futex.h
[PATCH] consolidate asm/futex.h
19 years ago
hardirq.h
[PATCH] arm26: remove irq_exit() from hardirq.h
19 years ago
hardware.h
Linux-2.6.12-rc2
20 years ago
ide.h
Linux-2.6.12-rc2
20 years ago
io.h
Linux-2.6.12-rc2
20 years ago
ioc.h
Linux-2.6.12-rc2
20 years ago
ioctl.h
[PATCH] Generic ioctl.h
19 years ago
ioctls.h
Linux-2.6.12-rc2
20 years ago
ipc.h
Linux-2.6.12-rc2
20 years ago
ipcbuf.h
Linux-2.6.12-rc2
20 years ago
irq.h
Linux-2.6.12-rc2
20 years ago
irqchip.h
Linux-2.6.12-rc2
20 years ago
kmap_types.h
Linux-2.6.12-rc2
20 years ago
leds.h
Linux-2.6.12-rc2
20 years ago
limits.h
Linux-2.6.12-rc2
20 years ago
linkage.h
Linux-2.6.12-rc2
20 years ago
local.h
Linux-2.6.12-rc2
20 years ago
locks.h
Linux-2.6.12-rc2
20 years ago
mach-types.h
Linux-2.6.12-rc2
20 years ago
map.h
Linux-2.6.12-rc2
20 years ago
mc146818rtc.h
Linux-2.6.12-rc2
20 years ago
memory.h
Linux-2.6.12-rc2
20 years ago
mman.h
[PATCH] madvise MADV_DONTFORK/MADV_DOFORK
19 years ago
mmu.h
Linux-2.6.12-rc2
20 years ago
mmu_context.h
Linux-2.6.12-rc2
20 years ago
module.h
Linux-2.6.12-rc2
20 years ago
msgbuf.h
Linux-2.6.12-rc2
20 years ago
namei.h
Linux-2.6.12-rc2
20 years ago
oldlatches.h
Linux-2.6.12-rc2
20 years ago
page.h
[PATCH] mm: consolidate get_order
20 years ago
param.h
Linux-2.6.12-rc2
20 years ago
parport.h
Linux-2.6.12-rc2
20 years ago
pci.h
Linux-2.6.12-rc2
20 years ago
percpu.h
Linux-2.6.12-rc2
20 years ago
pgalloc.h
Linux-2.6.12-rc2
20 years ago
pgtable.h
[PATCH] vm: remove unused/broken page_pte[_prot] macros
20 years ago
poll.h
Linux-2.6.12-rc2
20 years ago
posix_types.h
[PATCH] arm26: add __kernel_old_dev_t for nfsd
19 years ago
proc-fns.h
Linux-2.6.12-rc2
20 years ago
processor.h
Linux-2.6.12-rc2
20 years ago
procinfo.h
Linux-2.6.12-rc2
20 years ago
ptrace.h
Linux-2.6.12-rc2
20 years ago
resource.h
Linux-2.6.12-rc2
20 years ago
scatterlist.h
Linux-2.6.12-rc2
20 years ago
sections.h
Linux-2.6.12-rc2
20 years ago
segment.h
Linux-2.6.12-rc2
20 years ago
semaphore-helper.h
Linux-2.6.12-rc2
20 years ago
semaphore.h
[PATCH] semaphore: Remove __MUTEX_INITIALIZER()
20 years ago
sembuf.h
Linux-2.6.12-rc2
20 years ago
serial.h
[PATCH] Serial: Split 8250 port table (part 2)
20 years ago
setup.h
Linux-2.6.12-rc2
20 years ago
shmbuf.h
Linux-2.6.12-rc2
20 years ago
shmparam.h
Linux-2.6.12-rc2
20 years ago
sigcontext.h
Linux-2.6.12-rc2
20 years ago
siginfo.h
Linux-2.6.12-rc2
20 years ago
signal.h
[PATCH] Remove obsolete HAVE_ARCH_GET_SIGNAL_TO_DELIVER?
20 years ago
sizes.h
Linux-2.6.12-rc2
20 years ago
smp.h
Linux-2.6.12-rc2
20 years ago
socket.h
[NET]: Introduce SO_{SND,RCV}BUFFORCE socket options
20 years ago
sockios.h
Linux-2.6.12-rc2
20 years ago
spinlock.h
Linux-2.6.12-rc2
20 years ago
stat.h
Linux-2.6.12-rc2
20 years ago
statfs.h
Linux-2.6.12-rc2
20 years ago
string.h
Linux-2.6.12-rc2
20 years ago
suspend.h
Linux-2.6.12-rc2
20 years ago
sysirq.h
Linux-2.6.12-rc2
20 years ago
system.h
[PATCH] arm26: drop first arg of prepare_arch_switch, finish_arch_switch
19 years ago
termbits.h
Linux-2.6.12-rc2
20 years ago
termios.h
Linux-2.6.12-rc2
20 years ago
thread_info.h
[PATCH] fix arm26 THREAD_SIZE
19 years ago
timex.h
Linux-2.6.12-rc2
20 years ago
tlb.h
[PATCH] mm: tlb_finish_mmu forget rss
20 years ago
tlbflush.h
Linux-2.6.12-rc2
20 years ago
topology.h
Linux-2.6.12-rc2
20 years ago
types.h
[PATCH] sab: consolidate kmem_bufctl_t
20 years ago
uaccess-asm.h
Linux-2.6.12-rc2
20 years ago
uaccess.h
[PATCH] remove verify_area(): remove verify_area() from various uaccess.h headers
20 years ago
ucontext.h
Linux-2.6.12-rc2
20 years ago
unaligned.h
Linux-2.6.12-rc2
20 years ago
uncompress.h
Linux-2.6.12-rc2
20 years ago
unistd.h
[PATCH] unify sys_ptrace prototype
20 years ago
user.h
Linux-2.6.12-rc2
20 years ago
xor.h
Linux-2.6.12-rc2
20 years ago