From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9EE6F31B838 for ; Thu, 16 Jul 2026 23:32:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784244776; cv=none; b=qAKFaOMPRgQUaJw0at8Y6QXKXGAtL3m8D4erA0QQ0HPnP3MWeX3Tmpmvrhttj2FybTYTT/w3a/3fLLCUmis6CuF+gfAjVNcxs5Q+LtqNeIMUBTnykWqmbRm5FXKOT29DawWY1rFPhSGNFtg8VWDc7z2pTXFhKW87DhTwn8PwpZA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784244776; c=relaxed/simple; bh=R6LKpwfDSfkmyVofD7JO4/2+s05STAXFUHz10Pzqrkw=; h=Date:To:From:Subject:Message-Id; b=iqe+6/LjUj3vL6LejJ6lfbrvkAzT8FfQ64bAFebEhdV+15ZlBsnI1Y98JN84eZ/VrB+FSxZ3GtFltpBVW/Cz+EXRtjHPLC5rJDfqD8tvsXSaGXvBn8kAqXeN/YMHELFvCwnJQeb8gis6SS/oIr7cVE/GxaqgNICHLsz9hG4gjD0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=ArXKNy7u; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ArXKNy7u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E9F91F00A3A; Thu, 16 Jul 2026 23:32:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1784244775; bh=Bzc8dBwcyNJ2Kl3luMfETqiL5rkj8ERPy9ZApyVtRG4=; h=Date:To:From:Subject; b=ArXKNy7urMMoykExBGYLXh1cAm1PPcOe3b4yVYQvWyaUzq46F+z5p0nCxQZjMYPG5 O17MSiaDAGVy0E0nEVTmmsIMKdC1y24BUDiWqfyBRbaeQRxapk1BixtiD0fYte5PV2 ml067pDL/mfthwnf4W1dFL52oimpXKBcOYHi5Lss= Date: Thu, 16 Jul 2026 16:32:54 -0700 To: mm-commits@vger.kernel.org,akpm@linux-foundation.org,akpm@linux-foundation.org From: Andrew Morton Subject: [to-be-updated] mm-vmalloc-acquire-init_mm-lock-on-huge-vmap-to-avoid-ptdump-uaf-fix.patch removed from -mm tree Message-Id: <20260716233255.1E9F91F00A3A@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The quilt patch titled Subject: mm-vmalloc-acquire-init_mm-lock-on-huge-vmap-to-avoid-ptdump-uaf-fix has been removed from the -mm tree. Its filename was mm-vmalloc-acquire-init_mm-lock-on-huge-vmap-to-avoid-ptdump-uaf-fix.patch This patch was dropped because an updated version will be issued ------------------------------------------------------ From: Andrew Morton Subject: mm-vmalloc-acquire-init_mm-lock-on-huge-vmap-to-avoid-ptdump-uaf-fix Date: Wed Jul 15 12:12:32 PM PDT 2026 update comment, per Kiryl Cc: Andy Lutomirski Cc: "Borislav Petkov (AMD)" Cc: Catalin Marinas Cc: Dave Hansen Cc: David Hildenbrand Cc: Dev Jain Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Kiryl Shutsemau Cc: Liam R. Howlett Cc: Lorenzo Stoakes Cc: Michal Hocko Cc: Mike Rapoport (Microsoft) Cc: Peter Zijlstra Cc: Ryan Roberts Cc: Shakeel Butt Cc: Suren Baghdasaryan Cc: Toshi Kani Cc: "Uladzislau Rezki (Sony)" Cc: Vlastimil Babka Cc: Will Deacon Signed-off-by: Andrew Morton --- mm/vmalloc.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) --- a/mm/vmalloc.c~mm-vmalloc-acquire-init_mm-lock-on-huge-vmap-to-avoid-ptdump-uaf-fix +++ a/mm/vmalloc.c @@ -163,12 +163,11 @@ static int vmap_try_huge_pmd(pmd_t *pmd, return pmd_set_huge(pmd, phys_addr, prot); /* - * Kernel page table walkers either walk ranges they own exclusively or - * hold the mmap write lock on init_mm (ptdump being the motivating - * case). + * Acquire the mmap read lock to exclude ptdump, which walks kernel + * page tables it does not own under the mmap write lock. * - * Therefore, acquire the mmap read lock to prevent use-after-free when - * freeing page tables. + * Concurrent read lock holders are safe: each exclusively owns the + * range it operates on and cannot reach this page table. */ #ifndef CONFIG_ARM64 scoped_cond_guard(mmap_read_lock_try, return 0, &init_mm) _ Patches currently in -mm which might be from akpm@linux-foundation.org are mm-mincore-use-walk_page_range_vma-in-do_mincore-fix.patch csky-implement-flush_cache_vmap-in-c.patch mm-annotate-data-race-in-cpu_needs_drain-fix.patch mm-zsmalloc-encode-class-index-in-obj-value-for-lockless-class-lookup-fix.patch mm-zsmalloc-drop-pool-lock-from-zs_free-on-64-bit-systems-fix.patch mm-zsmalloc-drop-pool-lock-from-zs_free-on-64-bit-systems-fix-fix.patch mm-rmap-use-huge_ptep_get-in-try_to_migrate_one-checkpatch-fixes.patch mm-mprotect-use-huge_ptep_get-for-hugetlb-fix.patch mm-drop-stale-folio_ref_count==1-check-in-do_swap_page-reuse-logic-fix.patch alloc_tag-add-ioctl-to-proc-allocinfo-fix.patch drivers-media-v4l2-core-v4l2-vp9c-reduce-inlining.patch