Thread (31 messages) flat view 31 messages, 4 authors, 3d ago

Re: [PATCH 11/12] mm: make userland page table freeing RCU-safe

From: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
Date: 2026-09-01 14:03:58
Also in: linux-alpha, linux-arch, linux-m68k, linux-mips, linux-mm, linux-riscv, linux-s390, linux-sh, linux-um, lkml, loongarch, sparclinux

On Tue, Sep 01, 2026 at 02:33:14PM +0100, Kiryl Shutsemau wrote:
On Tue, Sep 01, 2026 at 12:01:31PM +0100, Lorenzo Stoakes (ARM) wrote:
quoted
With this change in place the kernel policy is now that all page tables are
s/all/userspace/ as subject implies?
Right yeah :) I hoped that the summary line would clarify that but can edit that
also.
BTW, what is your take on kernel page tables? Do we want the same policy
there. pagetable_free_kernel() is not RCU-safe as it is.
Yeah I think so too. I may follow up with a series to that effect also!
quoted
freed after an RCU grace period, and thus it is now safe to unconditionally
perform page table walks under RCU, safe in the knowledge that page tables
will not be freed underneath the walker.
--
  Kiryl Shutsemau / Kirill A. Shutemov
--
Cheers, Lorenzo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help