Re: [PATCH] mm: remove unnecessary page_table_lock on stack expansion
From: Jann Horn
Date: Fri Nov 01 2024 - 16:35:03 EST
On Fri, Nov 1, 2024 at 7:46 PM Lorenzo Stoakes
<lorenzo.stoakes@xxxxxxxxxx> wrote:
> Ever since commit 8d7071af8907 ("mm: always expand the stack with the mmap
> write lock held") we have been expanding the stack with the mmap write lock
> held.
Right, in the 6.1 LTS tree and newer, the old stack expansion under
mmap read lock is gone.
(A related cleanup that also removed remains of the old stack
expansion mechanism was e4bd84c069f2 ("mm: Always downgrade mmap_lock
if requested").)
Reviewed-by: Jann Horn <jannh@xxxxxxxxxx>