From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Jinliang Zheng <alexjlzheng@gmail.com>,
Jinliang Zheng <alexjlzheng@tencent.com>,
"Liam R. Howlett" <Liam.Howlett@oracle.com>,
Andrew Morton <akpm@linux-foundation.org>,
Sasha Levin <sashal@kernel.org>
Subject: [PATCH 6.12.y 1/3] mm: fix outdated incorrect code comments for handle_mm_fault()
Date: Sat, 14 Nov 2026 00:14:31 -0500 [thread overview]
Message-ID: <20261114051414.3056118-1-sashal@kernel.org> (raw)
In-Reply-To: <20261109200745-failed-6.12-f681d4580d5c@kernel.org>
From: Jinliang Zheng <alexjlzheng@gmail.com>
[ Upstream commit 8e6173ccf7b87c1f855e1ad3d94fd50c51d1f46b ]
[akpm@linux-foundation.org: s/mmap_Lock/mmap_lock/, per Liam]
Link: https://lkml.kernel.org/r/20241213031820.778342-1-alexjlzheng@tencent.com
Signed-off-by: Jinliang Zheng <alexjlzheng@tencent.com>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Stable-dep-of: f681d4580d5c ("mm: fix address wraparound when scanning large folio PTEs")
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
mm/memory.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/mm/memory.c b/mm/memory.c
index 38019497d8d4f..4e6c893b18b38 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -6071,7 +6071,8 @@ static vm_fault_t sanitize_fault_flags(struct vm_area_struct *vma,
}
/*
- * By the time we get here, we already hold the mm semaphore
+ * By the time we get here, we already hold either the VMA lock or the
+ * mmap_lock (FAULT_FLAG_VMA_LOCK tells you which).
*
* The mmap_lock may have been released depending on flags and our
* return value. See filemap_fault() and __folio_lock_or_retry().
--
2.53.0
next prev parent reply other threads:[~2026-11-14 5:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-10 1:07 FAILED: patch "[PATCH] mm: fix address wraparound when scanning large folio PTEs" failed to apply to 6.12-stable tree Sasha Levin
2026-11-14 5:14 ` Sasha Levin [this message]
2026-11-14 5:14 ` [PATCH 6.12.y 2/3] mm/memory: update stale locking comments for fault handlers Sasha Levin
2026-11-14 5:14 ` [PATCH 6.12.y 3/3] mm: fix address wraparound when scanning large folio PTEs Sasha Levin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261114051414.3056118-1-sashal@kernel.org \
--to=sashal@kernel.org \
--cc=Liam.Howlett@oracle.com \
--cc=akpm@linux-foundation.org \
--cc=alexjlzheng@gmail.com \
--cc=alexjlzheng@tencent.com \
--cc=stable@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox