linux/include/asm-sparc
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>
2006-02-14 16:09:34 -08:00
..
a.out.h
apc.h
asi.h
asmmacro.h
atomic.h [PATCH] mutex subsystem, add atomic_xchg() to all arches 2006-01-09 15:59:17 -08:00
auxio.h
auxvec.h [PATCH] auxiliary vector cleanups 2005-09-07 16:57:21 -07:00
bitext.h
bitops.h [FLS64]: generic version 2006-01-03 13:11:06 -08:00
bpp.h
bsderrno.h
btfixup.h [PATCH] fix the breakage in sparc headers 2005-10-05 07:33:42 -07:00
bug.h [PATCH] remove all kernel BUGs 2005-05-01 08:59:01 -07:00
bugs.h
byteorder.h
cache.h [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
cacheflush.h
checksum.h
clock.h
contregs.h
cpudata.h
cputime.h
current.h
cypress.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
delay.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
div64.h
dma-mapping.h [PATCH] gfp_t: dma-mapping (simple cases) 2005-10-28 08:16:49 -07:00
dma.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
ebus.h
ecc.h
eeprom.h
elf.h
emergency-restart.h [PATCH] Add emergency_restart() 2005-07-26 14:35:41 -07:00
errno.h [PATCH] add EOWNERDEAD and ENOTRECOVERABLE version 2 2005-05-01 08:59:06 -07:00
fbio.h
fcntl.h [PATCH] Clean up struct flock64 definitions 2005-09-07 16:57:38 -07:00
fixmap.h
floppy.h [PATCH] remove some more check_region stuff 2005-10-30 17:37:18 -08:00
futex.h [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
hardirq.h
head.h
highmem.h
hw_irq.h
ide.h
idprom.h
io-unit.h
io.h
ioctl.h
ioctls.h
iommu.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
ipc.h
ipcbuf.h
irq.h
jsflash.h
kdebug.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
kgdb.h
kmap_types.h
linkage.h
local.h
machines.h
mbus.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
mc146818rtc.h
memreg.h [PATCH] sun4c_memerr_reg __iomem annotations 2005-12-15 10:01:29 -08:00
mman.h [PATCH] madvise MADV_DONTFORK/MADV_DOFORK 2006-02-14 16:09:34 -08:00
mmu_context.h
mmu.h
module.h
mostek.h
mpmbox.h
msgbuf.h
msi.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
mutex.h [PATCH] mutex subsystem, add default include/asm-*/mutex.h files 2006-01-09 15:59:19 -08:00
mxcc.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
namei.h
obio.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
openprom.h
openpromio.h
oplib.h [SPARC]: sparc32 needs PROMDEV_{I,O}RSC defines too. 2006-01-18 21:57:37 -08:00
page.h [PATCH] mm: consolidate get_order 2005-09-05 00:05:39 -07:00
param.h
pbm.h
pci.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
pcic.h [PATCH] fix iomem annotations in sparc32 pcic code 2005-12-15 10:01:28 -08:00
pconf.h
percpu.h
perfctr.h
pgalloc.h
pgtable.h [PATCH] vm: remove unused/broken page_pte[_prot] macros 2005-10-30 17:37:22 -08:00
pgtsrmmu.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
pgtsun4.h
pgtsun4c.h
poll.h
posix_types.h
processor.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
psr.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
ptrace.h [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
reg.h
resource.h
ross.h
rtc.h
sbi.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
sbus.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
scatterlist.h
sections.h
semaphore.h [PATCH] semaphore: Remove __MUTEX_INITIALIZER() 2005-10-30 17:37:27 -08:00
sembuf.h
setup.h
sfp-machine.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h [PATCH] asm/signal.h unification 2005-05-04 07:33:15 -07:00
smp.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
smpprim.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
socket.h [NET]: Introduce SO_{SND,RCV}BUFFORCE socket options 2005-08-29 15:31:35 -07:00
sockios.h
solerrno.h
spinlock_types.h [PATCH] spinlock consolidation 2005-09-10 10:06:21 -07:00
spinlock.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
stat.h
statfs.h
string.h
sun4paddr.h
sun4prom.h
sunbpp.h
svr4.h
swift.h
sysen.h
system.h [PATCH] sparc: task_thread_info() 2006-01-12 09:08:53 -08:00
termbits.h
termios.h [SPARC]: remove duplicate TIOCPKT_ definitions 2005-11-07 14:10:42 -08:00
thread_info.h [SPARC]: Add support for *at(), ppoll, and pselect syscalls. 2006-01-19 02:42:49 -08:00
timer.h
timex.h
tlb.h
tlbflush.h
topology.h
traps.h [SPARC]: "extern inline" doesn't make much sense. 2005-10-03 17:37:02 -07:00
tsunami.h
turbosparc.h
types.h [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
uaccess.h [PATCH] remove verify_area(): remove verify_area() from various uaccess.h headers 2005-09-07 16:57:35 -07:00
unaligned.h
unistd.h [SPARC]: sys_newfstatat --> sys_fstatat64 2006-02-12 23:30:11 -08:00
user.h
vac-ops.h
vaddrs.h
vfc_ioctls.h
viking.h
winmacro.h
xor.h