Skip to content

x86/kasan: fix on-demand shadow mapping of percpu CEA pages

Rafael Aquini requested to merge raquini/centos-stream-9:bz2233699 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2233699

This is a series of required follow-up fixes for RHEL-9 backport
commit "x86/kasan: Map shadow for percpu pages on demand"
introduced by Bug 2165933 (CVE-2023-0597)

Rafael Aquini (5):
x86/mm: Recompute physical address for every page of per-CPU CEA mapping
x86/mm: Populate KASAN shadow for entire per-CPU range of CPU entry area
x86/kasan: Rename local CPU_ENTRY_AREA variables to shorten names
x86/kasan: Add helpers to align shadow addresses up and down
x86/kasan: Populate shadow for shared chunk of the CPU entry area

Fixes: 5ff0c9e0 ("x86/kasan: Map shadow for percpu pages on demand")

Signed-off-by: Rafael Aquini aquini@redhat.com

Merge request reports