diff options
author | yar | 2014-08-04 11:39:45 -0700 |
---|---|---|
committer | yar | 2015-07-03 16:59:10 -0700 |
commit | bd4d30f7aa911a7246825c803966aff1389debda (patch) | |
tree | 6059a06956b33e0984e0fed73ce32b9a5c139b30 | |
parent | 20acf20b90d07c4570d1450f06eadb6b964e9c32 (diff) | |
download | aur-bd4d30f7aa911a7246825c803966aff1389debda.tar.gz |
relocatable and randomizable
it seems that RELOCATABLE has been off since the very beginning, not sure why
to randomize, it would still need kaslr passed on the kernel line (will test)
randomize also needs dmesg_restrict & kptr_restrict, and even with that won't be safe for a long time...
https://bugs.archlinux.org/task/41463
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 4 | ||||
-rw-r--r-- | config | 5 | ||||
-rw-r--r-- | config.x86_64 | 5 |
4 files changed, 12 insertions, 6 deletions
@@ -29,8 +29,8 @@ pkgbase = linux-linode source = menu.lst source = preset sha512sums = 64033e741d3f42ed06010e63e69d66e1d3d9414ef20f76834508878d4218b72619541a18ef4fd377204af2859e52198310998109b20ed9b67722586b28c9a231 - sha512sums = 1e55ff7875bfb04c3eb1a0476e786bcd1c42e5dc1f0205a2e9644dd961247ef748aed6a32c52bb278e5d599eb537fa8c74dec5fb96d301e4f7906e5b36303fd5 - sha512sums = c4599f18e633136076ee0d97009422822347c6797051015516f9a491e0cc8f556ff42c0780966a9eb2337a993f8153e89dcb70613480c57bdc4bd84413a583e5 + sha512sums = 5a37563c9c822624020fcdeba8bbac12236f8e48c96336cbc1f67d9c28b1a3d3e044092465ba8fcb5d7c5517e7e92ebd8b0c61c9358a6515960bf3997248f157 + sha512sums = 927dc9cce75db0aba58b367be8e21f836d7860a98a9064474df319ebc0b9164357aabe9f3a32123a3f56d137d37ce09976530c5c4d16b30f44af0d6eeb0b91da sha512sums = f4191d63f71920a4c366c6c291205a780b7ddca952b4420dfb52b9e6d33c818b431830afe990df3ef3601458959a1b39b88c084b416a814cb7a957187670b733 sha512sums = a0a78831075336edef0a8faa34fa550986c3c4d89a89f4f39d798da0211129dc90257d162bec2cdefabef2eb5886a710e70c72074b2f3016788861d05d1e2a1f @@ -19,8 +19,8 @@ source=("https://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz" 'menu.lst' "preset") sha512sums=('64033e741d3f42ed06010e63e69d66e1d3d9414ef20f76834508878d4218b72619541a18ef4fd377204af2859e52198310998109b20ed9b67722586b28c9a231' - '1e55ff7875bfb04c3eb1a0476e786bcd1c42e5dc1f0205a2e9644dd961247ef748aed6a32c52bb278e5d599eb537fa8c74dec5fb96d301e4f7906e5b36303fd5' - 'c4599f18e633136076ee0d97009422822347c6797051015516f9a491e0cc8f556ff42c0780966a9eb2337a993f8153e89dcb70613480c57bdc4bd84413a583e5' + '5a37563c9c822624020fcdeba8bbac12236f8e48c96336cbc1f67d9c28b1a3d3e044092465ba8fcb5d7c5517e7e92ebd8b0c61c9358a6515960bf3997248f157' + '927dc9cce75db0aba58b367be8e21f836d7860a98a9064474df319ebc0b9164357aabe9f3a32123a3f56d137d37ce09976530c5c4d16b30f44af0d6eeb0b91da' 'f4191d63f71920a4c366c6c291205a780b7ddca952b4420dfb52b9e6d33c818b431830afe990df3ef3601458959a1b39b88c084b416a814cb7a957187670b733' 'a0a78831075336edef0a8faa34fa550986c3c4d89a89f4f39d798da0211129dc90257d162bec2cdefabef2eb5886a710e70c72074b2f3016788861d05d1e2a1f') pkgdesc="Kernel for Linode servers" @@ -453,7 +453,10 @@ CONFIG_SCHED_HRTICK=y CONFIG_KEXEC=y # CONFIG_CRASH_DUMP is not set CONFIG_PHYSICAL_START=0x100000 -# CONFIG_RELOCATABLE is not set +CONFIG_RELOCATABLE=y +CONFIG_RANDOMIZE_BASE=y +CONFIG_RANDOMIZE_BASE_MAX_OFFSET=0x20000000 +CONFIG_X86_NEED_RELOCS=y CONFIG_PHYSICAL_ALIGN=0x100000 CONFIG_HOTPLUG_CPU=y # CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set diff --git a/config.x86_64 b/config.x86_64 index 913518d714ef..7b049c33dc53 100644 --- a/config.x86_64 +++ b/config.x86_64 @@ -440,7 +440,10 @@ CONFIG_SCHED_HRTICK=y CONFIG_KEXEC=y # CONFIG_CRASH_DUMP is not set CONFIG_PHYSICAL_START=0x1000000 -# CONFIG_RELOCATABLE is not set +CONFIG_RELOCATABLE=y +CONFIG_RANDOMIZE_BASE=y +CONFIG_RANDOMIZE_BASE_MAX_OFFSET=0x40000000 +CONFIG_X86_NEED_RELOCS=y CONFIG_PHYSICAL_ALIGN=0x1000000 CONFIG_HOTPLUG_CPU=y # CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set |