aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mm.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 23:51:42 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 23:51:42 -0400
commitb81a618dcd3ea99de292dbe624f41ca68f464376 (patch)
treec5fbe44f944da9d7dc0c224116be77094d379c8a /include/linux/mm.h
parent2f284c846331fa44be1300a3c2c3e85800268a00 (diff)
parenta9712bc12c40c172e393f85a9b2ba8db4bf59509 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6: deal with races in /proc/*/{syscall,stack,personality} proc: enable writing to /proc/pid/mem proc: make check_mem_permission() return an mm_struct on success proc: hold cred_guard_mutex in check_mem_permission() proc: disable mem_write after exec mm: implement access_remote_vm mm: factor out main logic of access_process_vm mm: use mm_struct to resolve gate vma's in __get_user_pages mm: arch: rename in_gate_area_no_task to in_gate_area_no_mm mm: arch: make in_gate_area take an mm_struct instead of a task_struct mm: arch: make get_gate_vma take an mm_struct instead of a task_struct x86: mark associated mm when running a task in 32 bit compatibility mode x86: add context tag to mark mm when running a task in 32-bit compatibility mode auxv: require the target to be tracable (or yourself) close race in /proc/*/environ report errors in /proc/*/*map* sanely pagemap: close races with suid execve make sessionid permissions in /proc/*/task/* match those in /proc/* fix leaks in path_lookupat() Fix up trivial conflicts in fs/proc/base.c
Diffstat (limited to 'include/linux/mm.h')
-rw-r--r--include/linux/mm.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 294104e0891d..f9535b2c9558 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -982,6 +982,8 @@ static inline int handle_mm_fault(struct mm_struct *mm,
982 982
983extern int make_pages_present(unsigned long addr, unsigned long end); 983extern int make_pages_present(unsigned long addr, unsigned long end);
984extern int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write); 984extern int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write);
985extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,
986 void *buf, int len, int write);
985 987
986int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm, 988int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
987 unsigned long start, int len, unsigned int foll_flags, 989 unsigned long start, int len, unsigned int foll_flags,
@@ -1592,13 +1594,13 @@ static inline bool kernel_page_present(struct page *page) { return true; }
1592#endif /* CONFIG_HIBERNATION */ 1594#endif /* CONFIG_HIBERNATION */
1593#endif 1595#endif
1594 1596
1595extern struct vm_area_struct *get_gate_vma(struct task_struct *tsk); 1597extern struct vm_area_struct *get_gate_vma(struct mm_struct *mm);
1596#ifdef __HAVE_ARCH_GATE_AREA 1598#ifdef __HAVE_ARCH_GATE_AREA
1597int in_gate_area_no_task(unsigned long addr); 1599int in_gate_area_no_mm(unsigned long addr);
1598int in_gate_area(struct task_struct *task, unsigned long addr); 1600int in_gate_area(struct mm_struct *mm, unsigned long addr);
1599#else 1601#else
1600int in_gate_area_no_task(unsigned long addr); 1602int in_gate_area_no_mm(unsigned long addr);
1601#define in_gate_area(task, addr) ({(void)task; in_gate_area_no_task(addr);}) 1603#define in_gate_area(mm, addr) ({(void)mm; in_gate_area_no_mm(addr);})
1602#endif /* __HAVE_ARCH_GATE_AREA */ 1604#endif /* __HAVE_ARCH_GATE_AREA */
1603 1605
1604int drop_caches_sysctl_handler(struct ctl_table *, int, 1606int drop_caches_sysctl_handler(struct ctl_table *, int,