Skip to content

Commit 9de76f4

Browse files
bulwahnhansendc
authored andcommitted
x86/mm: Refer to the intended config STRICT_DEVMEM in a comment
Commit a4866aa ("mm: Tighten x86 /dev/mem with zeroing reads") adds a comment to the function devmem_is_allowed() referring to a non-existing config STRICT_IOMEM, whereas the comment very likely intended to refer to the config STRICT_DEVMEM, as the commit adds some behavior for the config STRICT_DEVMEM. Most of the initial analysis was actually done by Dave Hansen in the email thread below (see Link). Refer to the intended and existing config STRICT_DEVMEM. Suggested-by: Dave Hansen <dave.hansen@intel.com> Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Link: https://lore.kernel.org/r/f9074e8d-9314-9d7d-7bf5-5b5538c8be8d@intel.com/ Link: https://lkml.kernel.org/r/20220707115442.21107-1-lukas.bulwahn@gmail.com
1 parent 018ab4f commit 9de76f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ int devmem_is_allowed(unsigned long pagenr)
846846

847847
/*
848848
* This must follow RAM test, since System RAM is considered a
849-
* restricted resource under CONFIG_STRICT_IOMEM.
849+
* restricted resource under CONFIG_STRICT_DEVMEM.
850850
*/
851851
if (iomem_is_exclusive(pagenr << PAGE_SHIFT)) {
852852
/* Low 1MB bypasses iomem restrictions. */

0 commit comments

Comments
 (0)