Results 1 to 3 of 3

Thread: Physical KASLR disabled: no suitable memory region

  1. #1
    Join Date
    Dec 2019
    Beans
    2

    Question Physical KASLR disabled: no suitable memory region

    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

    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/1000...le-e820-region but nothing happened.

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

  2. #2
    Join Date
    Mar 2011
    Location
    19th Hole
    Beans
    Hidden!
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Physical KASLR disabled: no suitable memory region

    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.

  3. #3
    Join Date
    Dec 2019
    Beans
    2

    Re: Physical KASLR disabled: no suitable memory region

    Quote Originally Posted by DuckHook View Post
    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.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •