WSL2-Linux-Kernel/arch/x86
Adrian-Ken Rueegsegger 04d5b08e66 x86/mm: Fix marking of unused sub-pmd ranges
commit 280abe14b6 upstream.

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: 8d400913c2 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-18 10:26:54 +02:00
..
boot x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
configs x86/kbuild: Enable CONFIG_KALLSYMS_ALL=y in the defconfigs 2022-01-27 11:04:56 +01:00
crypto crypto: x86/poly1305 - Fixup SLS 2022-05-15 20:18:51 +02:00
entry x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
events perf/x86/intel: Don't extend the pseudo-encoding to GP counters 2022-04-13 20:59:23 +02:00
hyperv x86/hyperv: Properly deal with empty cpumasks in hyperv_flush_tlb_multi() 2022-03-08 19:12:36 +01:00
ia32 binfmt: remove in-tree usage of MAP_DENYWRITE 2021-09-03 18:42:01 +02:00
include x86: Add straight-line-speculation mitigation 2022-05-15 20:18:51 +02:00
kernel x86: Add straight-line-speculation mitigation 2022-05-15 20:18:51 +02:00
kvm kvm/emulate: Fix SETcc emulation function offsets with SLS 2022-05-15 20:18:51 +02:00
lib x86: Add straight-line-speculation mitigation 2022-05-15 20:18:51 +02:00
math-emu x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
mm x86/mm: Fix marking of unused sub-pmd ranges 2022-05-18 10:26:54 +02:00
net bpf: Fix extable address check. 2021-12-22 09:32:50 +01:00
pci x86/pci/xen: Disable PCI/MSI[-X] masking for XEN_HVM guests 2022-05-09 09:14:31 +02:00
platform x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
power x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
purgatory kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
ras
realmode x86/mm: Flush global TLB when switching to trampoline page-table 2022-01-27 11:04:35 +01:00
tools - Remove cc-option checks which are old and already supported by the 2021-08-30 13:27:16 -07:00
um x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
video
xen x86: Prepare asm files for straight-line-speculation 2022-05-15 20:18:49 +02:00
.gitignore
Kbuild
Kconfig x86: Add straight-line-speculation mitigation 2022-05-15 20:18:51 +02:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Makefile x86: Add straight-line-speculation mitigation 2022-05-15 20:18:51 +02:00
Makefile.um um: allow not setting extra rpaths in the linux binary 2021-06-17 21:54:15 +02:00
Makefile_32.cpu x86/build: Do not add -falign flags unconditionally for clang 2021-09-19 10:35:53 +09:00