aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/fix-memory-map-for-PIE-applications.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-10-03 08:56:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-10-03 09:47:34 +0000
commit180068fed1b09ed0e8dcaa485a65dfc0f0eb5265 (patch)
tree35f20f344a044cf52fd0222f13d5a2f9e4c073c0 /main/linux-grsec/fix-memory-map-for-PIE-applications.patch
parent77575ac25e1e1c68fe881f2aa0f144703aabc867 (diff)
downloadaports-180068fed1b09ed0e8dcaa485a65dfc0f0eb5265.tar.bz2
aports-180068fed1b09ed0e8dcaa485a65dfc0f0eb5265.tar.xz
main/linux-grsec: upgrade to 3.10.14 and fix pie patch
Diffstat (limited to 'main/linux-grsec/fix-memory-map-for-PIE-applications.patch')
-rw-r--r--main/linux-grsec/fix-memory-map-for-PIE-applications.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/linux-grsec/fix-memory-map-for-PIE-applications.patch b/main/linux-grsec/fix-memory-map-for-PIE-applications.patch
index 0ef81cf93f..e38716f77b 100644
--- a/main/linux-grsec/fix-memory-map-for-PIE-applications.patch
+++ b/main/linux-grsec/fix-memory-map-for-PIE-applications.patch
@@ -58,7 +58,7 @@ index 6f036ed..06419af 100644
- load_bias = ELF_PAGESTART(ELF_ET_DYN_BASE - vaddr);
+ load_bias = (get_random_int() & STACK_RND_MASK) << PAGE_SHIFT;
#endif
-+ load_bias = ELF_PAGESTART(vaddr + load_bias);
++ load_bias = ELF_PAGESTART(load_bias - vaddr);
#ifdef CONFIG_PAX_RANDMMAP
/* PaX: randomize base address at the default exe base if requested */