Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
555 views
in Technique[技术] by (71.8m points)

linux - 物理KASLR已禁用:没有合适的内存区域(Physical KASLR disabled: no suitable memory region)

I built and installed the latest Kernel (v5.4) from source (downloaded from Linux repo).

(我从源代码(从Linux存储库下载)中构建并安装了最新的内核(v5.4)。)

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.

(我使用了make menuconfig但未对默认值进行任何更改。)

After doing all steps, I rebooted but got this error on a black screen in boot time:

(完成所有步骤后,我重新启动,但在启动时出现黑屏错误:)

Physical KASLR disabled: no suitable memory region!

(物理KASLR已禁用:没有合适的存储区!)

I`m using ubuntu 19.10 with deafult Kernel 5.3.0-23-generic.

(我正在将Ubuntu 16.10与默认的内核5.3.0-23一起使用。)

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.

(我根据https://askubuntu.com/questions/1000525/kaslr-disabled-could-not-find-suitable-e820-region更改了Grub,但没有任何反应。)

Here is my first experience in building the kernel.

(这是我第一次构建内核。)

I`d really appreciate it if you could help me.

(如果您能帮助我,我将非常感激。)

  ask by 7eRoM translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...