Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

arm64/Kconfig: Remove CONFIG_RODATA_FULL_DEFAULT_ENABLED

Now that 'rodata=full' has been removed in favour of parity with x86,
CONFIG_RODATA_FULL_DEFAULT_ENABLED no longer serves a useful purpose.

Remove it.

Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Huang Shijie <shijie@os.amperecomputing.com>
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Huang Shijie and committed by
Will Deacon
bfbbb0d3 c0f303d7

+1 -15
-14
arch/arm64/Kconfig
··· 1698 1698 When taking an exception from user-space, a sequence of branches 1699 1699 or a firmware call overwrites the branch history. 1700 1700 1701 - config RODATA_FULL_DEFAULT_ENABLED 1702 - bool "Apply r/o permissions of VM areas also to their linear aliases" 1703 - default y 1704 - help 1705 - Apply read-only attributes of VM areas to the linear alias of 1706 - the backing pages as well. This prevents code or read-only data 1707 - from being modified (inadvertently or intentionally) via another 1708 - mapping of the same memory page. This additional enhancement can 1709 - be turned off at runtime by passing rodata=[off|on] (and turned on 1710 - with rodata=full if this option is set to 'n') 1711 - 1712 - This requires the linear region to be mapped down to pages, 1713 - which may adversely affect performance in some cases. 1714 - 1715 1701 config ARM64_SW_TTBR0_PAN 1716 1702 bool "Emulate Privileged Access Never using TTBR0_EL1 switching" 1717 1703 depends on !KCSAN
+1 -1
arch/arm64/mm/pageattr.c
··· 20 20 pgprot_t clear_mask; 21 21 }; 22 22 23 - bool rodata_full __ro_after_init = IS_ENABLED(CONFIG_RODATA_FULL_DEFAULT_ENABLED); 23 + bool rodata_full __ro_after_init = true; 24 24 25 25 bool can_set_direct_map(void) 26 26 {