Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 806300 - sys-kernel/gentoo-sources-5.10.52: Gentoo X86_64 KSPP kconfig is broken
Summary: sys-kernel/gentoo-sources-5.10.52: Gentoo X86_64 KSPP kconfig is broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard: 5.10.58, 5.13.10
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2021-08-03 16:06 UTC by Michael Orlitzky
Modified: 2021-08-16 15:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Orlitzky gentoo-dev 2021-08-03 16:06:36 UTC
The new KSPP kconfig enables CONFIG_RANDOMIZE_BASE without CONFIG_RELOCATABLE:

  menu "Architecture Specific Self Protection Project Recommendations"

  config GENTOO_KERNEL_SELF_PROTECTION_X86_64
  	bool "X86_64 KSPP Settings"

  	depends on !X86_MSR && X86_64
  	default n
	
  	select RANDOMIZE_BASE
  	select RANDOMIZE_MEMORY
  	select LEGACY_VSYSCALL_NONE
  select PAGE_TABLE_ISOLATION

If you don't already have CONFIG_RELOCATABLE=y, the next reboot fails.
Comment 1 Larry the Git Cow gentoo-dev 2021-08-03 22:50:59 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=52196ef10a6430ef86080784cc52d57ee740a9fc

commit 52196ef10a6430ef86080784cc52d57ee740a9fc
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2021-08-03 22:49:56 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2021-08-03 22:49:56 +0000

    Add CONFIG_RELOCATABLE when selecting RANDOMIZE_BASE
    
    Redo menu's to make more user-friendly
    
    Bug: https://bugs.gentoo.org/806300
    
    Signed-off-by: Mike Pagano <mpagano@gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 51 ++++++++++++++++++++++------------------
 1 file changed, 28 insertions(+), 23 deletions(-)
Comment 2 Mike Pagano gentoo-dev 2021-08-03 22:52:23 UTC
(In reply to Larry the Git Cow from comment #1)
> The bug has been referenced in the following commit(s):
> 

This is in master, but I want to have this run though kernel-ci before I move it to the branches.