From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org, ziy@nvidia.com
Cc: Sasha Levin <sashal@kernel.org>
Subject: Re: [PATCH 6.12.y] mm/huge_memory: drop beyond-EOF folios with the right number of refs
Date: Tue, 25 Mar 2025 07:38:08 -0400 [thread overview]
Message-ID: <20250324211615-37f7b03bf4b2ca3a@stable.kernel.org> (raw)
In-Reply-To: <20250324185007.142918-1-ziy@nvidia.com>
[ Sasha's backport helper bot ]
Hi,
Summary of potential issues:
⚠️ Found matching upstream commit but patch is missing proper reference to it
Found matching upstream commit: 14efb4793519d73fb2902bb0ece319b886e4b4b9
Status in newer kernel trees:
6.13.y | Not found
Note: The patch differs from the upstream commit:
---
1: 14efb4793519d ! 1: 8e2adc6066c3d mm/huge_memory: drop beyond-EOF folios with the right number of refs
@@ Commit message
Cc: Yu Zhao <yuzhao@google.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
+ (cherry picked from commit 14efb4793519d73fb2902bb0ece319b886e4b4b9)
## mm/huge_memory.c ##
@@ mm/huge_memory.c: static void __split_huge_page(struct page *page, struct list_head *list,
@@ mm/huge_memory.c: static void __split_huge_page(struct page *page, struct list_h
__filemap_remove_folio(tail, NULL);
- folio_put(tail);
+ folio_put_refs(tail, folio_nr_pages(tail));
- } else if (!folio_test_anon(folio)) {
- __xa_store(&folio->mapping->i_pages, tail->index,
- tail, 0);
+ } else if (!PageAnon(page)) {
+ __xa_store(&folio->mapping->i_pages, head[i].index,
+ head + i, 0);
---
Results of testing on various branches:
| Branch | Patch Apply | Build Test |
|---------------------------|-------------|------------|
| stable/linux-6.12.y | Success | Success |
prev parent reply other threads:[~2025-03-25 11:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-24 15:32 FAILED: patch "[PATCH] mm/huge_memory: drop beyond-EOF folios with the right number" failed to apply to 6.12-stable tree gregkh
2025-03-24 18:50 ` [PATCH 6.12.y] mm/huge_memory: drop beyond-EOF folios with the right number of refs Zi Yan
2025-03-25 11:38 ` Sasha Levin [this message]
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=20250324211615-37f7b03bf4b2ca3a@stable.kernel.org \
--to=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=ziy@nvidia.com \
/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