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
..
Kconfig
[PATCH] Swap Migration V5: Add CONFIG_MIGRATION for page migration support
19 years ago
Makefile
[PATCH] slob: introduce the SLOB allocator
19 years ago
bootmem.c
[PATCH] FRV: Clean up bootmem allocator's page freeing algorithm
19 years ago
fadvise.c
[PATCH] fadvise: return ESPIPE on FIFO/pipe
19 years ago
filemap.c
[PATCH] mm: migration page refcounting fix
19 years ago
filemap.h
[PATCH] xip: reduce code duplication
20 years ago
filemap_xip.c
[PATCH] replace inode_update_time with file_update_time
19 years ago
fremap.c
VM: add common helper function to create the page tables
19 years ago
highmem.c
[PATCH] gfp_t: the rest
20 years ago
hugetlb.c
[PATCH] compound page: use page[1].lru
19 years ago
internal.h
[PATCH] FRV: Clean up bootmem allocator's page freeing algorithm
19 years ago
madvise.c
[PATCH] madvise MADV_DONTFORK/MADV_DOFORK
19 years ago
memory.c
[PATCH] Direct Migration V9: PageSwapCache checks
19 years ago
memory_hotplug.c
[PATCH] memhotplug: __add_section remove unused pgdat definition
19 years ago
mempolicy.c
[PATCH] x86_64: Fix memory policy build without CONFIG_HUGETLBFS
19 years ago
mempool.c
[PATCH] gfp_t: mm/* (easy parts)
20 years ago
mincore.c
[PATCH] freepgt: sys_mincore ignore FIRST_USER_PGD_NR
20 years ago
mlock.c
[PATCH] move capable() to capability.h
19 years ago
mmap.c
[PATCH] move capable() to capability.h
19 years ago
mprotect.c
[PATCH] unpaged: private write VM_RESERVED
19 years ago
mremap.c
[PATCH] move capable() to capability.h
19 years ago
msync.c
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
19 years ago
nommu.c
[PATCH] NOMMU: Make SYSV IPC SHM use ramfs facilities on NOMMU
19 years ago
oom_kill.c
[PATCH] dump_stack() in oom handler
19 years ago
page-writeback.c
[PATCH] mm: dirty_exceeded speedup
19 years ago
page_alloc.c
[PATCH] compound page: default destructor
19 years ago
page_io.c
[PATCH] mm: split page table lock
20 years ago
pdflush.c
[PATCH] Swap Migration V5: PF_SWAPWRITE to allow writing to swap
19 years ago
prio_tree.c
Linux-2.6.12-rc2
20 years ago
readahead.c
[PATCH] add AOP_TRUNCATED_PAGE, prepend AOP_ to WRITEPAGE_ACTIVATE
19 years ago
rmap.c
[PATCH] Direct Migration V9: Avoid writeback / page_migrate() method
19 years ago
shmem.c
[PATCH] Direct Migration V9: PageSwapCache checks
19 years ago
slab.c
[PATCH] slab: Avoid deadlock at kmem_cache_create/kmem_cache_destroy
19 years ago
slob.c
[PATCH] SLOB=y && SMP=y fix
19 years ago
sparse.c
[PATCH] Change maxaligned_in_smp alignemnt macros to internodealigned_in_smp macros
19 years ago
swap.c
[PATCH] compound page: use page[1].lru
19 years ago
swap_state.c
[PATCH] Direct Migration V9: Avoid writeback / page_migrate() method
19 years ago
swapfile.c
[PATCH] Direct Migration V9: remove_from_swap() to remove swap ptes
19 years ago
thrash.c
[PATCH] temporarily disable swap token on memory pressure
19 years ago
tiny-shmem.c
[PATCH] do_truncate() call fix in tiny-shmem.c
19 years ago
truncate.c
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
19 years ago
util.c
[PATCH] slob: introduce mm/util.c for shared functions
19 years ago
vmalloc.c
[PATCH] kernel-doc: fix warnings in vmalloc.c
20 years ago
vmscan.c
[PATCH] vmscan: skip reclaim_mapped determination if we do not swap
19 years ago