Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308844
b: refs/heads/master
c: 5febcbe
h: refs/heads/master
v: v3
  • Loading branch information
Christopher Yeoh authored and Linus Torvalds committed May 29, 2012
1 parent fe40ad0 commit 9f4d0e3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb6332a54542bcd3aedb121ecb247f172b8f3602
refs/heads/master: 5febcbe99d4766cc383909c447e002e63d8b4592
10 changes: 10 additions & 0 deletions trunk/mm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,16 @@ choice
benefit.
endchoice

config CROSS_MEMORY_ATTACH
bool "Cross Memory Support"
depends on MMU
default y
help
Enabling this option adds the system calls process_vm_readv and
process_vm_writev which allow a process with the correct privileges
to directly read from or write to to another process's address space.
See the man page for more details.

#
# UP and nommu archs use km based percpu allocator
#
Expand Down
7 changes: 5 additions & 2 deletions trunk/mm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
mmu-y := nommu.o
mmu-$(CONFIG_MMU) := fremap.o highmem.o madvise.o memory.o mincore.o \
mlock.o mmap.o mprotect.o mremap.o msync.o rmap.o \
vmalloc.o pagewalk.o pgtable-generic.o \
process_vm_access.o
vmalloc.o pagewalk.o pgtable-generic.o

ifdef CONFIG_CROSS_MEMORY_ATTACH
mmu-$(CONFIG_MMU) += process_vm_access.o
endif

obj-y := filemap.o mempool.o oom_kill.o fadvise.o \
maccess.o page_alloc.o page-writeback.o \
Expand Down

0 comments on commit 9f4d0e3

Please sign in to comment.