diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-17 09:04:38 -0400 |
commit | 54e514b91b95d6441c12a7955addfb9f9d2afc65 (patch) | |
tree | 8b73d901bd2a6ec5a31f34a8954e5ea92216dd6c /arch/powerpc | |
parent | 4fc8adcfec3da639da76e8314c9ccefe5bf9a045 (diff) | |
parent | 6c8c90319c0bb1c9e0b68e721359b89ae4f28465 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge third patchbomb from Andrew Morton:
- various misc things
- a couple of lib/ optimisations
- provide DIV_ROUND_CLOSEST_ULL()
- checkpatch updates
- rtc tree
- befs, nilfs2, hfs, hfsplus, fatfs, adfs, affs, bfs
- ptrace fixes
- fork() fixes
- seccomp cleanups
- more mmap_sem hold time reductions from Davidlohr
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (138 commits)
proc: show locks in /proc/pid/fdinfo/X
docs: add missing and new /proc/PID/status file entries, fix typos
drivers/rtc/rtc-at91rm9200.c: make IO endian agnostic
Documentation/spi/spidev_test.c: fix warning
drivers/rtc/rtc-s5m.c: allow usage on device type different than main MFD type
.gitignore: ignore *.tar
MAINTAINERS: add Mediatek SoC mailing list
tomoyo: reduce mmap_sem hold for mm->exe_file
powerpc/oprofile: reduce mmap_sem hold for exe_file
oprofile: reduce mmap_sem hold for mm->exe_file
mips: ip32: add platform data hooks to use DS1685 driver
lib/Kconfig: fix up HAVE_ARCH_BITREVERSE help text
x86: switch to using asm-generic for seccomp.h
sparc: switch to using asm-generic for seccomp.h
powerpc: switch to using asm-generic for seccomp.h
parisc: switch to using asm-generic for seccomp.h
mips: switch to using asm-generic for seccomp.h
microblaze: use asm-generic for seccomp.h
arm: use asm-generic for seccomp.h
seccomp: allow COMPAT sigreturn overrides
...
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/include/asm/seccomp.h | 10 | ||||
-rw-r--r-- | arch/powerpc/include/uapi/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/powerpc/include/uapi/asm/seccomp.h | 16 | ||||
-rw-r--r-- | arch/powerpc/oprofile/cell/spu_task_sync.c | 13 |
4 files changed, 18 insertions, 22 deletions
diff --git a/arch/powerpc/include/asm/seccomp.h b/arch/powerpc/include/asm/seccomp.h new file mode 100644 index 000000000000..c1818e35cf02 --- /dev/null +++ b/arch/powerpc/include/asm/seccomp.h | |||
@@ -0,0 +1,10 @@ | |||
1 | #ifndef _ASM_POWERPC_SECCOMP_H | ||
2 | #define _ASM_POWERPC_SECCOMP_H | ||
3 | |||
4 | #include <linux/unistd.h> | ||
5 | |||
6 | #define __NR_seccomp_sigreturn_32 __NR_sigreturn | ||
7 | |||
8 | #include <asm-generic/seccomp.h> | ||
9 | |||
10 | #endif /* _ASM_POWERPC_SECCOMP_H */ | ||
diff --git a/arch/powerpc/include/uapi/asm/Kbuild b/arch/powerpc/include/uapi/asm/Kbuild index 7a3f795ac218..79c4068be278 100644 --- a/arch/powerpc/include/uapi/asm/Kbuild +++ b/arch/powerpc/include/uapi/asm/Kbuild | |||
@@ -25,7 +25,6 @@ header-y += posix_types.h | |||
25 | header-y += ps3fb.h | 25 | header-y += ps3fb.h |
26 | header-y += ptrace.h | 26 | header-y += ptrace.h |
27 | header-y += resource.h | 27 | header-y += resource.h |
28 | header-y += seccomp.h | ||
29 | header-y += sembuf.h | 28 | header-y += sembuf.h |
30 | header-y += setup.h | 29 | header-y += setup.h |
31 | header-y += shmbuf.h | 30 | header-y += shmbuf.h |
diff --git a/arch/powerpc/include/uapi/asm/seccomp.h b/arch/powerpc/include/uapi/asm/seccomp.h deleted file mode 100644 index 00c1d9133cfe..000000000000 --- a/arch/powerpc/include/uapi/asm/seccomp.h +++ /dev/null | |||
@@ -1,16 +0,0 @@ | |||
1 | #ifndef _ASM_POWERPC_SECCOMP_H | ||
2 | #define _ASM_POWERPC_SECCOMP_H | ||
3 | |||
4 | #include <linux/unistd.h> | ||
5 | |||
6 | #define __NR_seccomp_read __NR_read | ||
7 | #define __NR_seccomp_write __NR_write | ||
8 | #define __NR_seccomp_exit __NR_exit | ||
9 | #define __NR_seccomp_sigreturn __NR_rt_sigreturn | ||
10 | |||
11 | #define __NR_seccomp_read_32 __NR_read | ||
12 | #define __NR_seccomp_write_32 __NR_write | ||
13 | #define __NR_seccomp_exit_32 __NR_exit | ||
14 | #define __NR_seccomp_sigreturn_32 __NR_sigreturn | ||
15 | |||
16 | #endif /* _ASM_POWERPC_SECCOMP_H */ | ||
diff --git a/arch/powerpc/oprofile/cell/spu_task_sync.c b/arch/powerpc/oprofile/cell/spu_task_sync.c index 1c27831df1ac..ed7b0977072a 100644 --- a/arch/powerpc/oprofile/cell/spu_task_sync.c +++ b/arch/powerpc/oprofile/cell/spu_task_sync.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include <linux/kref.h> | 22 | #include <linux/kref.h> |
23 | #include <linux/mm.h> | 23 | #include <linux/mm.h> |
24 | #include <linux/fs.h> | 24 | #include <linux/fs.h> |
25 | #include <linux/file.h> | ||
25 | #include <linux/module.h> | 26 | #include <linux/module.h> |
26 | #include <linux/notifier.h> | 27 | #include <linux/notifier.h> |
27 | #include <linux/numa.h> | 28 | #include <linux/numa.h> |
@@ -322,18 +323,20 @@ get_exec_dcookie_and_offset(struct spu *spu, unsigned int *offsetp, | |||
322 | unsigned long app_cookie = 0; | 323 | unsigned long app_cookie = 0; |
323 | unsigned int my_offset = 0; | 324 | unsigned int my_offset = 0; |
324 | struct vm_area_struct *vma; | 325 | struct vm_area_struct *vma; |
326 | struct file *exe_file; | ||
325 | struct mm_struct *mm = spu->mm; | 327 | struct mm_struct *mm = spu->mm; |
326 | 328 | ||
327 | if (!mm) | 329 | if (!mm) |
328 | goto out; | 330 | goto out; |
329 | 331 | ||
330 | down_read(&mm->mmap_sem); | 332 | exe_file = get_mm_exe_file(mm); |
331 | 333 | if (exe_file) { | |
332 | if (mm->exe_file) { | 334 | app_cookie = fast_get_dcookie(&exe_file->f_path); |
333 | app_cookie = fast_get_dcookie(&mm->exe_file->f_path); | 335 | pr_debug("got dcookie for %pD\n", exe_file); |
334 | pr_debug("got dcookie for %pD\n", mm->exe_file); | 336 | fput(exe_file); |
335 | } | 337 | } |
336 | 338 | ||
339 | down_read(&mm->mmap_sem); | ||
337 | for (vma = mm->mmap; vma; vma = vma->vm_next) { | 340 | for (vma = mm->mmap; vma; vma = vma->vm_next) { |
338 | if (vma->vm_start > spu_ref || vma->vm_end <= spu_ref) | 341 | if (vma->vm_start > spu_ref || vma->vm_end <= spu_ref) |
339 | continue; | 342 | continue; |