aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-stm32.c
diff options
context:
space:
mode:
authorJuergen Gross <[email protected]>2025-04-22 13:17:17 +0000
committerDave Hansen <[email protected]>2025-04-23 14:49:14 +0000
commit4ce385f56434f3810ef103e1baea357ddcc6667e (patch)
treeb0381b54e4246c8bec53dfcf64c1f225b4ce6527 /drivers/pwm/pwm-stm32.c
parentx86/e820: Discard high memory that can't be addressed by 32-bit systems (diff)
downloadkernel-4ce385f56434f3810ef103e1baea357ddcc6667e.tar.gz
kernel-4ce385f56434f3810ef103e1baea357ddcc6667e.zip
x86/mm: Fix _pgd_alloc() for Xen PV mode
Recently _pgd_alloc() was switched from using __get_free_pages() to pagetable_alloc_noprof(), which might return a compound page in case the allocation order is larger than 0. On x86 this will be the case if CONFIG_MITIGATION_PAGE_TABLE_ISOLATION is set, even if PTI has been disabled at runtime. When running as a Xen PV guest (this will always disable PTI), using a compound page for a PGD will result in VM_BUG_ON_PGFLAGS being triggered when the Xen code tries to pin the PGD. Fix the Xen issue together with the not needed 8k allocation for a PGD with PTI disabled by replacing PGD_ALLOCATION_ORDER with an inline helper returning the needed order for PGD allocations. Fixes: a9b3c355c2e6 ("asm-generic: pgalloc: provide generic __pgd_{alloc,free}") Reported-by: Petr Vaněk <[email protected]> Signed-off-by: Juergen Gross <[email protected]> Signed-off-by: Dave Hansen <[email protected]> Tested-by: Petr Vaněk <[email protected]> Cc:[email protected] Link: https://lore.kernel.org/all/20250422131717.25724-1-jgross%40suse.com
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions