Thread (6 messages) 6 messages, 2 authors, 20d ago

Re: [PATCH V2 2/2] arm64/mm: Standardize printing for pgtable entries

From: "David Hildenbrand (Arm)" <david@kernel.org>
Date: 2026-09-09 15:14:38
Also in: linux-mm, lkml

quoted hunk ↗ jump to hunk
diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
index 0b2d190d62c3..26f4cf7b753e 100644
--- a/arch/arm64/mm/mmu.c
+++ b/arch/arm64/mm/mmu.c
@@ -2411,6 +2411,8 @@ int arch_set_user_pkey_access(int pkey, unsigned long init_val)
 #ifdef CONFIG_DEBUG_VM
 void __check_safe_pte_update(struct mm_struct *mm, pte_t *ptep, pte_t pte)
 {
+	char pte_str_old[PTVAL_STR_MAX];
+	char pte_str[PTVAL_STR_MAX];
Nothing jumped at me; once the stack usage does become a problem (I strongly
assume we don't care for now) we can revisit the approach of moving printing
into printk.

Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>

-- 
Cheers,

David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help