]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Fix marking of unused sub-pmd ranges
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Mon, 9 May 2022 09:06:37 +0000 (11:06 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 13 May 2022 10:41:21 +0000 (12:41 +0200)
commit8495ff3e8bfb1ac9ed2dfc0f81dcfec72738ce26
treecabf989895c0064491beaa7447c9a5cbc21bfd85
parent2cfa457375083d2757182a38d8bb227aa92a2db7
x86/mm: Fix marking of unused sub-pmd ranges

The unused part precedes the new range spanned by the start, end parameters
of vmemmap_use_new_sub_pmd(). This means it actually goes from
ALIGN_DOWN(start, PMD_SIZE) up to start.

Use the correct address when applying the mark using memset.

Fixes: 74dce834bf69 ("x86/vmemmap: handle unpopulated sub-pmd ranges")
Signed-off-by: Adrian-Ken Rueegsegger <ken@codelabs.ch>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Oscar Salvador <osalvador@suse.de>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220509090637.24152-2-ken@codelabs.ch
arch/x86/mm/init_64.c