diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 19:49:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-14 19:49:17 -0400 |
commit | 1dcf58d6e6e6eb7ec10e9abc56887b040205b06f (patch) | |
tree | c03e7a25ef13eea62f1547914a76e5c68f3f4c28 /arch/s390/include/asm | |
parent | 80dcc31fbe55932ac9204daee5f2ebc0c49b6da3 (diff) | |
parent | e4b0db72be2487bae0e3251c22f82c104f7c1cfd (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge first patchbomb from Andrew Morton:
- arch/sh updates
- ocfs2 updates
- kernel/watchdog feature
- about half of mm/
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (122 commits)
Documentation: update arch list in the 'memtest' entry
Kconfig: memtest: update number of test patterns up to 17
arm: add support for memtest
arm64: add support for memtest
memtest: use phys_addr_t for physical addresses
mm: move memtest under mm
mm, hugetlb: abort __get_user_pages if current has been oom killed
mm, mempool: do not allow atomic resizing
memcg: print cgroup information when system panics due to panic_on_oom
mm: numa: remove migrate_ratelimited
mm: fold arch_randomize_brk into ARCH_HAS_ELF_RANDOMIZE
mm: split ET_DYN ASLR from mmap ASLR
s390: redefine randomize_et_dyn for ELF_ET_DYN_BASE
mm: expose arch_mmap_rnd when available
s390: standardize mmap_rnd() usage
powerpc: standardize mmap_rnd() usage
mips: extract logic for mmap_rnd()
arm64: standardize mmap_rnd() usage
x86: standardize mmap_rnd() usage
arm: factor out mmap ASLR into mmap_rnd
...
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r-- | arch/s390/include/asm/elf.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h index c9c875d9ed31..a5c4978462c1 100644 --- a/arch/s390/include/asm/elf.h +++ b/arch/s390/include/asm/elf.h | |||
@@ -161,10 +161,11 @@ extern unsigned int vdso_enabled; | |||
161 | /* This is the location that an ET_DYN program is loaded if exec'ed. Typical | 161 | /* This is the location that an ET_DYN program is loaded if exec'ed. Typical |
162 | use of this is to invoke "./ld.so someprog" to test out a new version of | 162 | use of this is to invoke "./ld.so someprog" to test out a new version of |
163 | the loader. We need to make sure that it is out of the way of the program | 163 | the loader. We need to make sure that it is out of the way of the program |
164 | that it will "exec", and that there is sufficient room for the brk. */ | 164 | that it will "exec", and that there is sufficient room for the brk. 64-bit |
165 | 165 | tasks are aligned to 4GB. */ | |
166 | extern unsigned long randomize_et_dyn(void); | 166 | #define ELF_ET_DYN_BASE (is_32bit_task() ? \ |
167 | #define ELF_ET_DYN_BASE randomize_et_dyn() | 167 | (STACK_TOP / 3 * 2) : \ |
168 | (STACK_TOP / 3 * 2) & ~((1UL << 32) - 1)) | ||
168 | 169 | ||
169 | /* This yields a mask that user programs can use to figure out what | 170 | /* This yields a mask that user programs can use to figure out what |
170 | instruction set this CPU supports. */ | 171 | instruction set this CPU supports. */ |
@@ -225,9 +226,6 @@ struct linux_binprm; | |||
225 | #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 | 226 | #define ARCH_HAS_SETUP_ADDITIONAL_PAGES 1 |
226 | int arch_setup_additional_pages(struct linux_binprm *, int); | 227 | int arch_setup_additional_pages(struct linux_binprm *, int); |
227 | 228 | ||
228 | extern unsigned long arch_randomize_brk(struct mm_struct *mm); | ||
229 | #define arch_randomize_brk arch_randomize_brk | ||
230 | |||
231 | void *fill_cpu_elf_notes(void *ptr, struct save_area *sa, __vector128 *vxrs); | 229 | void *fill_cpu_elf_notes(void *ptr, struct save_area *sa, __vector128 *vxrs); |
232 | 230 | ||
233 | #endif | 231 | #endif |