PDA

View Full Version : Physical KASLR disabled: no suitable memory region



7erom
December 2nd, 2019, 05:02 AM
HI to all,

I built and installed the latest Kernel (v5.4) from source (downloaded from Linux repo). I followed the steps explained here:

https://www.cyberciti.biz/tips/compiling-linux-kernel-26.html

(https://www.cyberciti.biz/tips/compiling-linux-kernel-26.html)I used make menuconfig but did not make any change to default values. After doing all steps, I rebooted but got this error on a black screen in boot time:




Physical KASLR disabled: no suitable memory region!



I`m using ubuntu 19.10 with deafult Kernel 5.3.0-23-generic.Here is some info and sth I did to solve thie problem:





cat /boot/config-5.3.0-23-generic | grep CONFIG_RANDOMIZE_BASE=y
CONFIG_RANDOMIZE_BASE=y




cat /boot/config-5.4.0+ | grep CONFIG_RANDOMIZE_BASE=y
CONFIG_RANDOMIZE_BASE=y




I changed the Grub according to https://askubuntu.com/questions/1000525/kaslr-disabled-could-not-find-suitable-e820-region but nothing happened.

Here is my first experience in building the kernel. I`d really appreciate it if you could help me.

DuckHook
December 2nd, 2019, 06:18 AM
Welcome to the forums, 7erom;

I do not have the knowledge help you with technical answers. However, as a general observation, if you are trying to build your first kernel, my strong advice is to build it within a VM so that you do not risk your base system. It is best to have all of the advantages of a VM (including falling back to good snapshots) when experimenting with fundamental system components such as the kernel.

7erom
December 2nd, 2019, 10:38 AM
Welcome to the forums, 7erom;

I do not have the knowledge help you with technical answers. However, as a general observation, if you are trying to build your first kernel, my strong advice is to build it within a VM so that you do not risk your base system. It is best to have all of the advantages of a VM (including falling back to good snapshots) when experimenting with fundamental system components such as the kernel.

Dear DuckHook, many thanks to you for your guidance.
Yes, I use VM because of its snapshot capability.