Patch "x86/mm/pti: Add an overflow check to pti_clone_pmds()" has been added to the 4.14-stable tree
Subsystems (3)
[email protected]
AppliedThis is a note to let you know that I've just added the patch titled
x86/mm/pti: Add an overflow check to pti_clone_pmds()
to the 4.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
x86-mm-pti-add-an-overflow-check-to-pti_clone_pmds.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Fri Sep 21 09:51:45 CEST 2018
From: Joerg Roedel <[email protected]>
Date: Wed, 18 Jul 2018 11:41:01 +0200
Subject: x86/mm/pti: Add an overflow check to pti_clone_pmds()
From: Joerg Roedel <[email protected]>
[ Upstream commit 935232ce28dfabff1171e5a7113b2d865fa9ee63 ]
The addr counter will overflow if the last PMD of the address space is cloned, resulting in an endless loop.
Check for that and bail out of the loop when it happens.
--- arch/x86/mm/pti.c | 4 ++++ 1 file changed, 4 insertions(+)
arch/x86/mm/pti.c +4 -0
@@ -291,6 +291,10 @@ pti_clone_pmds(unsigned long start, unsip4d_t *p4d;pud_t *pud; +/* Overflow check */ +if (addr < start) +break ; + pgd =pgd_offset_k (addr);if (WARN_ON (pgd_none (*pgd)))return ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/x86-mm-pti-add-an-overflow-check-to-pti_clone_pmds.patch