From: syzbot <syzbot+d97580a8cceb9b03c13e@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: [PATCH] mm, swap: fix cgroup V1 leak after removal of swap cache bypass
Date: Mon, 12 Jan 2026 08:36:48 -0800 [thread overview]
Message-ID: <69652320.050a0220.eaf7.00ba.GAE@google.com> (raw)
In-Reply-To: <6960c2f0.050a0220.1c677c.03be.GAE@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com.
***
Subject: [PATCH] mm, swap: fix cgroup V1 leak after removal of swap cache bypass
Author: ryncsn@gmail.com
From: Kairui Song <kasong@tencent.com>
#syz test
Recent patch is causing a memory cgruop V1 swap leak, this patch should
fix that [1].
Link: https://lore.kernel.org/all/CAMgjq7CMsAMZZJL1=a=EtfWCOuDFE62RKR_0hUdPC4H+QF5GfQ@mail.gmail.com/ [1]
Reported-by: syzbot+d97580a8cceb9b03c13e@syzkaller.appspotmail.com
Link: https://lore.kernel.org/all/6960c2f0.050a0220.1c677c.03be.GAE@google.com/
Signed-off-by: Kairui Song <kasong@tencent.com>
---
mm/vmscan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/vmscan.c b/mm/vmscan.c
index f35afc5093dc..a0e3f51de749 100644
--- a/mm/vmscan.c
+++ b/mm/vmscan.c
@@ -760,8 +760,8 @@ static int __remove_mapping(struct address_space *mapping, struct folio *folio,
if (reclaimed && !mapping_exiting(mapping))
shadow = workingset_eviction(folio, target_memcg);
- __swap_cache_del_folio(ci, folio, swap, shadow);
memcg1_swapout(folio, swap);
+ __swap_cache_del_folio(ci, folio, swap, shadow);
swap_cluster_unlock_irq(ci);
} else {
void (*free_folio)(struct folio *);
--
2.52.0
next prev parent reply other threads:[~2026-01-12 16:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 8:57 [syzbot] [mm?] [cgroups?] kernel BUG in swap_cgroup_record (2) syzbot
2026-01-09 16:23 ` Forwarded: [PATCH] mm/swap_cgroup: fix kernel BUG in swap_cgroup_record syzbot
2026-01-10 2:17 ` syzbot
2026-01-10 4:04 ` syzbot
2026-01-12 16:36 ` syzbot [this message]
2026-01-12 17:39 ` Forwarded: [PATCH] mm, swap: fix cgroup V1 leak after removal of swap cache bypass syzbot
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=69652320.050a0220.eaf7.00ba.GAE@google.com \
--to=syzbot+d97580a8cceb9b03c13e@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=syzkaller-bugs@googlegroups.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
Powered by JetHome