[PATCH 24/39] x86/mm/pti: Add an overflow check to pti_clone_pmds()

2018-07-18 Thread Joerg Roedel
From: Joerg Roedel The addr counter will overflow if we clone the last PMD of the address space, resulting in an endless loop. Check for that and bail out of the loop when it happens. Signed-off-by: Joerg Roedel --- arch/x86/mm/pti.c | 4 1 file changed, 4 insertions(+) diff --git a/arc

[PATCH 24/39] x86/mm/pti: Add an overflow check to pti_clone_pmds()

2018-07-11 Thread Joerg Roedel
From: Joerg Roedel The addr counter will overflow if we clone the last PMD of the address space, resulting in an endless loop. Check for that and bail out of the loop when it happens. Signed-off-by: Joerg Roedel --- arch/x86/mm/pti.c | 4 1 file changed, 4 insertions(+) diff --git a/arc