Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 73 additions & 0 deletions attempts.json
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,17 @@
"run": null
}
},
"CVE-2026-23088": {
"6.1": {
"cost": null,
"date": "2026-11-29",
"head": "6.1.193",
"outcome": "not-affected-needs-review",
"reason": "6.1 lacks 288709c9f3b0, so no hist variable holds a stacktrace; check_synth_field() rejects the reproducer",
"reviewed": "2026-11-29",
"run": null
}
},
"CVE-2026-23117": {
"6.1": {
"cost": null,
Expand Down Expand Up @@ -1409,6 +1420,17 @@
"run": null
}
},
"CVE-2026-31648": {
"6.1": {
"cost": null,
"date": "2026-11-29",
"head": "6.1.193",
"outcome": "not-affected-needs-review",
"reason": "6.1 filemap_map_pages() maps one page per loop with do_set_pte(); no nr_pages or filemap_map_folio_range()",
"reviewed": "2026-11-29",
"run": null
}
},
"CVE-2026-31710": {
"6.18": {
"cost": 0.34346239999999995,
Expand Down Expand Up @@ -2285,6 +2307,15 @@
}
},
"CVE-2026-72042": {
"6.1": {
"cost": null,
"date": "2026-11-29",
"head": "6.1.193",
"outcome": "not-affected-needs-review",
"reason": "6.1 backport f63723ca7d76 of b52da4054ee0 has no extra kref_put in the handle_read_event_rsp() rollback; stale put came with 3be997d5a64a, not in 6.1",
"reviewed": "2026-11-29",
"run": null
},
"6.12": {
"cost": 0.43853475,
"date": "2026-11-15",
Expand Down Expand Up @@ -2415,6 +2446,17 @@
"run": null
}
},
"CVE-2026-72395": {
"6.1": {
"cost": null,
"date": "2026-11-29",
"head": "6.1.193",
"outcome": "not-affected-needs-review",
"reason": "6.1 backport f0c9ea9c3a20 of 754bd2b4a084 adds only update_lock; no regulator event worker in 6.1 pmbus",
"reviewed": "2026-11-29",
"run": null
}
},
"CVE-2026-72397": {
"6.18": {
"cost": 0.3343126999999999,
Expand Down Expand Up @@ -2568,6 +2610,17 @@
"run": null
}
},
"CVE-2026-74432": {
"6.1": {
"cost": null,
"date": "2026-11-29",
"head": "6.1.193",
"outcome": "not-affected-needs-review",
"reason": "6.1 backport cb720b068b18 of 962fb1f651c2 has no MSG_PEEK condition; recvmsg always puts the call",
"reviewed": "2026-11-29",
"run": null
}
},
"CVE-2026-74506": {
"6.1": {
"cost": null,
Expand Down Expand Up @@ -3264,6 +3317,17 @@
"run": null
}
},
"CVE-2026-98044": {
"6.1": {
"cost": null,
"date": "2026-11-29",
"head": "6.1.193",
"outcome": "not-affected-needs-review",
"reason": "needs the 6.4 backtracking rework; 6.1 returns -ENOTSUPP and marks all scalars precise, no -EFAULT",
"reviewed": "2026-11-29",
"run": null
}
},
"CVE-2026-98067": {
"6.1": {
"cost": null,
Expand Down Expand Up @@ -4064,6 +4128,15 @@
}
},
"CVE-2026-98983": {
"6.1": {
"cost": null,
"date": "2026-11-29",
"head": "6.1.193",
"outcome": "not-affected-needs-review",
"reason": "6.1 has no active namespace references (no nscommon.c, ns_ref_active); put_nsproxy() is a plain count",
"reviewed": "2026-11-29",
"run": null
},
"6.12": {
"cost": 0.7276285,
"date": "2026-11-15",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
X-Fasttrack-Source: claude
X-Fasttrack-Upstream: b81679b1633aa43c0d973adfa816d78c1ed0d032
X-Fasttrack-CVE: CVE-2025-21907
From: Ma Wupeng <mawupeng1@huawei.com>
Date: Mon, 17 Feb 2025 09:43:27 +0800
Subject: [PATCH] mm: memory-failure: update ttu flag inside
unmap_poisoned_folio

commit b81679b1633aa43c0d973adfa816d78c1ed0d032 upstream.

[ Backport: unmap_poisoned_folio() already has its upstream form here (added with the 1b0449544c64 backport); this commit only converts the callers ]
[ Backport: hwpoison_user_mappings() keeps 6.1 page-based checks and messages; only the ttu policy and unmap code move into unmap_poisoned_folio() ]
[ Backport: do_migrate_range() keeps the folio_lock() from af288a426c3e, which 6.1 already has and folio_mkclean() needs ]

Patch series "mm: memory_failure: unmap poisoned folio during migrate
properly", v3.

Fix two bugs during folio migration if the folio is poisoned.

This patch (of 3):

Commit 6da6b1d4a7df ("mm/hwpoison: convert TTU_IGNORE_HWPOISON to
TTU_HWPOISON") introduce TTU_HWPOISON to replace TTU_IGNORE_HWPOISON in
order to stop send SIGBUS signal when accessing an error page after a
memory error on a clean folio. However during page migration, anon folio
must be set with TTU_HWPOISON during unmap_*(). For pagecache we need
some policy just like the one in hwpoison_user_mappings to set this flag.
So move this policy from hwpoison_user_mappings to unmap_poisoned_folio to
handle this warning properly.

Warning will be produced during unamp poison folio with the following log:

------------[ cut here ]------------
WARNING: CPU: 1 PID: 365 at mm/rmap.c:1847 try_to_unmap_one+0x8fc/0xd3c
Modules linked in:
CPU: 1 UID: 0 PID: 365 Comm: bash Tainted: G W 6.13.0-rc1-00018-gacdb4bbda7ab #42
Tainted: [W]=WARN
Hardware name: QEMU QEMU Virtual Machine, BIOS 0.0.0 02/06/2015
pstate: 20400005 (nzCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : try_to_unmap_one+0x8fc/0xd3c
lr : try_to_unmap_one+0x3dc/0xd3c
Call trace:
try_to_unmap_one+0x8fc/0xd3c (P)
try_to_unmap_one+0x3dc/0xd3c (L)
rmap_walk_anon+0xdc/0x1f8
rmap_walk+0x3c/0x58
try_to_unmap+0x88/0x90
unmap_poisoned_folio+0x30/0xa8
do_migrate_range+0x4a0/0x568
offline_pages+0x5a4/0x670
memory_block_action+0x17c/0x374
memory_subsys_offline+0x3c/0x78
device_offline+0xa4/0xd0
state_store+0x8c/0xf0
dev_attr_store+0x18/0x2c
sysfs_kf_write+0x44/0x54
kernfs_fop_write_iter+0x118/0x1a8
vfs_write+0x3a8/0x4bc
ksys_write+0x6c/0xf8
__arm64_sys_write+0x1c/0x28
invoke_syscall+0x44/0x100
el0_svc_common.constprop.0+0x40/0xe0
do_el0_svc+0x1c/0x28
el0_svc+0x30/0xd0
el0t_64_sync_handler+0xc8/0xcc
el0t_64_sync+0x198/0x19c
---[ end trace 0000000000000000 ]---

[mawupeng1@huawei.com: unmap_poisoned_folio(): remove shadowed local `mapping', per Miaohe]
Link: https://lkml.kernel.org/r/20250219060653.3849083-1-mawupeng1@huawei.com
Link: https://lkml.kernel.org/r/20250217014329.3610326-1-mawupeng1@huawei.com
Link: https://lkml.kernel.org/r/20250217014329.3610326-2-mawupeng1@huawei.com
Fixes: 6da6b1d4a7df ("mm/hwpoison: convert TTU_IGNORE_HWPOISON to TTU_HWPOISON")
Signed-off-by: Ma Wupeng <mawupeng1@huawei.com>
Suggested-by: David Hildenbrand <david@redhat.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Miaohe Lin <linmiaohe@huawei.com>
Cc: Ma Wupeng <mawupeng1@huawei.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Naoya Horiguchi <nao.horiguchi@gmail.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/memory-failure.c | 45 +--------------------------------------------
mm/memory_hotplug.c | 2 +-
2 files changed, 2 insertions(+), 45 deletions(-)

diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index a4a7b3b8e182ae..5b29e940700193 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -1481,8 +1481,6 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn,
int flags, struct page *hpage)
{
struct folio *folio = page_folio(hpage);
- enum ttu_flags ttu = TTU_IGNORE_MLOCK | TTU_SYNC | TTU_HWPOISON;
- struct address_space *mapping;
LIST_HEAD(tokill);
bool unmap_success;
int forcekill;
@@ -1509,29 +1507,6 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn,
return false;
}

- if (PageSwapCache(p)) {
- pr_err("%#lx: keeping poisoned page in swap cache\n", pfn);
- ttu &= ~TTU_HWPOISON;
- }
-
- /*
- * Propagate the dirty bit from PTEs to struct page first, because we
- * need this to decide if we should kill or just drop the page.
- * XXX: the dirty test could be racy: set_page_dirty() may not always
- * be called inside page lock (it's recommended but not enforced).
- */
- mapping = page_mapping(hpage);
- if (!(flags & MF_MUST_KILL) && !PageDirty(hpage) && mapping &&
- mapping_can_writeback(mapping)) {
- if (page_mkclean(hpage)) {
- SetPageDirty(hpage);
- } else {
- ttu &= ~TTU_HWPOISON;
- pr_info("%#lx: corrupted page was clean: dropped without side effects\n",
- pfn);
- }
- }
-
/*
* First collect all the processes that have the page
* mapped in dirty form. This has to be done before try_to_unmap,
@@ -1539,25 +1514,7 @@ static bool hwpoison_user_mappings(struct page *p, unsigned long pfn,
*/
collect_procs(hpage, &tokill, flags & MF_ACTION_REQUIRED);

- if (PageHuge(hpage) && !PageAnon(hpage)) {
- /*
- * For hugetlb pages in shared mappings, try_to_unmap
- * could potentially call huge_pmd_unshare. Because of
- * this, take semaphore in write mode here and set
- * TTU_RMAP_LOCKED to indicate we have taken the lock
- * at this higher level.
- */
- mapping = hugetlb_page_mapping_lock_write(hpage);
- if (mapping) {
- try_to_unmap(folio, ttu|TTU_RMAP_LOCKED);
- i_mmap_unlock_write(mapping);
- } else
- pr_info("%#lx: could not lock mapping for mapped huge page\n", pfn);
- } else {
- try_to_unmap(folio, ttu);
- }
-
- unmap_success = !page_mapped(p);
+ unmap_success = !unmap_poisoned_folio(folio, pfn, flags & MF_MUST_KILL);
if (!unmap_success)
pr_err("%#lx: failed to unmap page (mapcount=%d)\n",
pfn, page_mapcount(p));
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index 1a6cc0161fb765..9b724dc5d6cd75 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -1659,7 +1659,7 @@ do_migrate_range(unsigned long start_pfn, unsigned long end_pfn)
folio_isolate_lru(folio);
if (folio_mapped(folio)) {
folio_lock(folio);
- try_to_unmap(folio, TTU_IGNORE_MLOCK);
+ unmap_poisoned_folio(folio, pfn, false);
folio_unlock(folio);
}

1 change: 1 addition & 0 deletions cve/CVE-2025-21907/6.1/base
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1ca1436ccc68275d0b43b6a730b3940fcc46b7c2
32 changes: 32 additions & 0 deletions cve/CVE-2025-21907/6.1/fasttrack.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"series": "6.1",
"base": {
"commit": "1ca1436ccc68275d0b43b6a730b3940fcc46b7c2",
"version": "6.1.193"
},
"incident": "CVE-2025-21907",
"outcome": "patched-needs-review",
"fixed_in": null,
"made": "2026-11-29T10:02:42Z",
"patches": [
{
"series": "6.1",
"upstream": "b81679b1633aa43c0d973adfa816d78c1ed0d032",
"subject": "mm: memory-failure: update ttu flag inside unmap_poisoned_folio",
"source": "claude",
"cves": [
"CVE-2025-21907"
],
"kev": false,
"verdict": "claude-backport",
"reason": "backport made in work package; review before use",
"filename": "0001-b81679b1633a-mm-memory-failure-update-ttu-flag-inside-unmap-poiso.patch",
"files": [],
"prerequisites": [],
"build_log": "",
"backport": "",
"bug_commits": [],
"unaffected": false
}
]
}
5 changes: 5 additions & 0 deletions cve/CVE-2025-21907/6.1/series.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Generated by ksec-fasttrack. Do not edit by hand: the next run rewrites it.
# Security fixes not yet in a 6.1 stable release, verified to apply as a series,
# with no fuzz, on top of 1ca1436ccc68 (6.1.193).

0001-b81679b1633a-mm-memory-failure-update-ttu-flag-inside-unmap-poiso.patch
Loading