android_kernel_xiaomi_sm8350/include/asm-arm
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
..
arch-aaec2000 [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-at91rm9200 [ARM] 3242/2: AT91RM9200 support for 2.6 (Serial) 2006-01-10 16:59:27 +00:00
arch-cl7500 [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-clps711x [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-ebsa110 [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-ebsa285 [ARM] Move common definition of MAX_DMA_ADDRESS to asm/dma.h 2006-01-04 15:30:48 +00:00
arch-h720x [ARM] Include asm/hardware.h instead of asm/arch/hardware.h 2005-11-16 14:51:20 +00:00
arch-imx [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-integrator [ARM] Move AMBA include files to include/linux/amba/ 2006-01-07 13:52:45 +00:00
arch-iop3xx [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-ixp4xx [ARM] 3226/1: IXP4xx runtime expansion bus window size configuration 2006-01-05 20:59:29 +00:00
arch-ixp2000 [ARM] 3257/1: ixp2000: map in scratch and sram 2006-01-13 20:51:43 +00:00
arch-l7200 [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-lh7a40x [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-omap [ARM] 3279/1: OMAP: 1/3 Fix low-level io init 2006-02-08 22:06:45 +00:00
arch-pxa [ARM] 3267/1: PXA27x SSP controller register defines 2006-01-18 22:38:44 +00:00
arch-realview [ARM] Move AMBA include files to include/linux/amba/ 2006-01-07 13:52:45 +00:00
arch-rpc [ARM] Cleanup ARM includes 2006-01-03 17:39:34 +00:00
arch-s3c2410 [ARM] 3326/1: H1940 - Control latches 2006-02-10 22:40:51 +00:00
arch-sa1100 [ARM] Remove definition of MAX_DMA_CHANNELS to zero 2006-01-04 15:51:51 +00:00
arch-shark [ARM] 3060/1: allow constants found in asm/memory.h to be used in asm code 2005-10-29 21:44:55 +01:00
arch-versatile [ARM] Separate VIC (vectored interrupt controller) support from Versatile 2006-01-13 21:30:48 +00:00
hardware [ARM] Separate VIC (vectored interrupt controller) support from Versatile 2006-01-13 21:30:48 +00:00
mach [ARM] 3269/1: Add ARMv6 MT_NONSHARED_DEVICE mem_types[] index 2006-01-26 15:21:28 +00:00
a.out.h
apm.h
assembler.h [ARM] Clean up save_and_disable_irqs macro and allow use of ARMv6 CPSID 2005-11-09 15:04:22 +00:00
atomic.h [PATCH] mutex subsystem, add atomic_xchg() to all arches 2006-01-09 15:59:17 -08:00
auxvec.h [PATCH] auxiliary vector cleanups 2005-09-07 16:57:21 -07:00
bitops.h [FLS64]: generic version 2006-01-03 13:11:06 -08:00
bug.h [PATCH] qualifiers in return types - easy cases 2005-08-23 18:43:45 -07:00
bugs.h
byteorder.h [ARM] 3252/1: help gcc do the best with ___arch__swab32 2006-01-10 19:48:02 +00:00
cache.h [PATCH] Kill L1_CACHE_SHIFT_MAX 2006-01-08 20:13:39 -08:00
cacheflush.h [ARM] Cleanup ARM includes 2006-01-03 17:39:34 +00:00
checksum.h [ARM] 3292/1: Fix memory corruption in asm-arm/checksum.h: ip_fast_csum() 2006-02-01 19:26:00 +00:00
cpu-multi32.h [PATCH] qualifiers in return types - easy cases 2005-08-23 18:43:45 -07:00
cpu-single.h [PATCH] qualifiers in return types - easy cases 2005-08-23 18:43:45 -07:00
cpu.h [ARM SMP] Track CPU idle threads 2005-11-02 21:51:40 +00:00
cputime.h
current.h
delay.h
div64.h
dma-mapping.h [PATCH] gfp_t: dma-mapping (arm) 2005-10-28 08:16:47 -07:00
dma.h [ARM] Move common definition of MAX_DMA_ADDRESS to asm/dma.h 2006-01-04 15:30:48 +00:00
domain.h
ecard.h
elf.h [ARM] 3205/1: Handle new EABI relocations when loading kernel modules. 2005-12-14 22:04:22 +00:00
emergency-restart.h [PATCH] Add emergency_restart() 2005-07-26 14:35:41 -07:00
errno.h
fcntl.h [PATCH] Clean up struct flock64 definitions 2005-09-07 16:57:38 -07:00
fiq.h
floppy.h
fpstate.h
futex.h [PATCH] consolidate asm/futex.h 2006-01-08 20:13:39 -08:00
glue.h
hardirq.h [ARM SMP] Add core ARM support for local timers 2005-11-08 19:08:05 +00:00
hardware.h
ide.h [PATCH] ARM: 2758/1: Fix comment in file header to read "ARM" instead i386 2005-06-27 15:58:39 +01:00
io.h [ARM] 3070/2: Add __ioremap_pfn() API 2006-01-09 19:23:11 +00:00
ioctl.h [PATCH] Generic ioctl.h 2006-01-10 08:01:34 -08:00
ioctls.h
ipc.h
ipcbuf.h
irq.h [PATCH] IRQ type flags 2006-01-08 20:13:46 -08:00
kmap_types.h
leds.h
limits.h
linkage.h
local.h
locks.h [ARM] 3019/1: fix wrong comments 2005-10-18 07:51:34 +01:00
mc146818rtc.h
memory.h [ARM] 3209/1: Configurable DMA-consistent memory region 2006-01-12 16:12:21 +00:00
mman.h [PATCH] madvise MADV_DONTFORK/MADV_DOFORK 2006-02-14 16:09:34 -08:00
mmu_context.h [ARM] Add linux/compiler.h includes where required 2005-11-16 17:23:57 +00:00
mmu.h
mmzone.h
module.h
msgbuf.h
mtd-xip.h [MTD] XIP cleanup 2005-07-07 16:50:16 +02:00
mutex.h [ARM] 3311/1: clean up include/asm-arm/mutex.h 2006-02-08 21:19:38 +00:00
namei.h
numnodes.h [ARM] Add asm/memory.h to asm/numnodes.h 2005-11-21 15:26:18 +00:00
nwflash.h
page.h [ARM] 3101/1: ARM EABI: slab memory must be 64-bit aligned 2006-01-14 16:18:07 +00:00
param.h
parport.h
pci.h [PATCH] Make sparc64 use setup-res.c 2005-09-08 14:57:25 -07:00
percpu.h
pgalloc.h [PATCH] ARM: Factor out common pmd_populate functionality 2005-06-22 20:58:29 +01:00
pgtable.h [ARM] 3269/1: Add ARMv6 MT_NONSHARED_DEVICE mem_types[] index 2006-01-26 15:21:28 +00:00
poll.h
posix_types.h
proc-fns.h
processor.h [ARM] start_thread fixup for nommu mode 2006-01-13 21:04:17 +00:00
procinfo.h
ptrace.h [ARM] 3262/4: allow ptraced syscalls to be overriden 2006-01-14 19:30:04 +00:00
resource.h
rtc.h
scatterlist.h [ARM] Remove '__address' from scatterlist and convert to DMA API 2006-01-04 15:08:30 +00:00
sections.h
segment.h
semaphore-helper.h
semaphore.h [ARM] sema_count() removal 2005-12-01 20:58:01 +00:00
sembuf.h
serial.h
setup.h [ARM] 2925/3: earlyparam - postfix section with .init for make buildcheck 2005-09-20 16:25:12 +01:00
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h
signal.h [ARM] Remove SA_IRQNOMASK 2005-09-26 15:30:20 +01:00
sizes.h
smp.h [ARM SMP] Add core ARM support for local timers 2005-11-08 19:08:05 +00:00
socket.h [NET]: Introduce SO_{SND,RCV}BUFFORCE socket options 2005-08-29 15:31:35 -07:00
sockios.h
spinlock_types.h [PATCH] spinlock consolidation 2005-09-10 10:06:21 -07:00
spinlock.h [ARM SMP] Use event instructions for spinlocks 2005-12-01 15:47:24 +00:00
stat.h [ARM] 3106/2: ARM EABI: some syscall adjustments 2006-01-14 16:32:12 +00:00
statfs.h [ARM] 3108/2: old ABI compat: statfs64 and fstatfs64 2006-01-14 16:35:03 +00:00
string.h
suspend.h
system.h [PATCH] arm: task_thread_info() 2006-01-12 09:08:55 -08:00
termbits.h
termios.h
therm.h
thread_info.h [PATCH] death of get_thread_info/put_thread_info 2006-01-12 09:08:59 -08:00
timex.h
tlb.h [PATCH] mm: tlb_finish_mmu forget rss 2005-10-29 21:40:37 -07:00
tlbflush.h [PATCH] ARM SMP: TLB implementations only affect local CPU 2005-06-28 13:40:39 +01:00
topology.h
traps.h
types.h [PATCH] sab: consolidate kmem_bufctl_t 2005-09-05 00:05:48 -07:00
uaccess.h [ARM] Fix get_user when passed a const pointer 2005-11-18 14:22:03 +00:00
ucontext.h
unaligned.h
unistd.h [ARM] 3110/5: old ABI compat: multi-ABI syscall entry support 2006-01-14 16:36:12 +00:00
user.h
vfp.h
vfpmacros.h
vga.h
xor.h