This is a note to let you know that I've just added the patch titled arm64/mm: add pud_user_exec() check in pud_user_accessible_page() to the 6.1-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: arm64-mm-add-pud_user_exec-check-in-pud_user_accessible_page.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 730a11f982e61aaef758ab552dfb7c30de79e99b Mon Sep 17 00:00:00 2001 From: Liu Shixin <liushixin2@xxxxxxxxxx> Date: Tue, 22 Nov 2022 20:31:37 +0800 Subject: arm64/mm: add pud_user_exec() check in pud_user_accessible_page() From: Liu Shixin <liushixin2@xxxxxxxxxx> commit 730a11f982e61aaef758ab552dfb7c30de79e99b upstream. Add check for the executable case in pud_user_accessible_page() too like what we did for pte and pmd. Fixes: 42b2547137f5 ("arm64/mm: enable ARCH_SUPPORTS_PAGE_TABLE_CHECK") Suggested-by: Will Deacon <will@xxxxxxxxxx> Signed-off-by: Liu Shixin <liushixin2@xxxxxxxxxx> Link: https://lore.kernel.org/r/20221122123137.429686-1-liushixin2@xxxxxxxxxx Signed-off-by: Will Deacon <will@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- arch/arm64/include/asm/pgtable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/arm64/include/asm/pgtable.h +++ b/arch/arm64/include/asm/pgtable.h @@ -682,7 +682,7 @@ static inline unsigned long pmd_page_vad #define pud_leaf(pud) (pud_present(pud) && !pud_table(pud)) #define pud_valid(pud) pte_valid(pud_pte(pud)) #define pud_user(pud) pte_user(pud_pte(pud)) - +#define pud_user_exec(pud) pte_user_exec(pud_pte(pud)) static inline void set_pud(pud_t *pudp, pud_t pud) { @@ -868,7 +868,7 @@ static inline bool pmd_user_accessible_p static inline bool pud_user_accessible_page(pud_t pud) { - return pud_leaf(pud) && pud_user(pud); + return pud_leaf(pud) && (pud_user(pud) || pud_user_exec(pud)); } #endif Patches currently in stable-queue which might be from liushixin2@xxxxxxxxxx are queue-6.1/arm64-mm-add-pud_user_exec-check-in-pud_user_accessible_page.patch queue-6.1/arm64-mm-fix-incorrect-file_map_count-for-invalid-pmd.patch