From nobody Sat Feb 7 13:41:41 2026 Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86E90283FD8 for ; Mon, 12 Jan 2026 17:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.200 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768239576; cv=none; b=Ds6eS/k4/P7oas1F6BYjGdanWklROZfWtx0jqGeScazmjI4MnErKsO8SNzfzsIVD0BT0LehEqwlLjrNheXRvNSaEaU+L220su/2XGH0TQZYoXh+JrQSrnoQkEaEvrIJcP+j4gY0+9RrT9gylzPuJbgOjOL/58QJW9S2hbKNGsRw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768239576; c=relaxed/simple; bh=qiCyUoMsZOsV3QB/lemYkXUQztnnuEqh33y45PMX0Jc=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=QoNLjutH6dwaq1TmQAgMhQJoy1kgk4JC4A/j3OAfYWXML7rLuT7/hiF0sc2Tacvg5Whyk5uCMdT1xWBPIF6szCu4sdTXTadG4ddfKEXIDync3if0JfZl74JSVjcvLhG0adBlN1vliMIQYT2GTWUDgdGK6s+VT3qRENG7AYcybhY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f200.google.com with SMTP id 5614622812f47-450be8a012cso13381456b6e.0 for ; Mon, 12 Jan 2026 09:39:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768239574; x=1768844374; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=cPCJIZxccIXFbOPB8pvzjaJKJIf0ri1kY8PdErwTq90=; b=jJ8PAhcgpSWjySmMVILBOBBPBSaaExlD0y/P25b3EAu3/NfPCQI2ngGFIWRLQ14hm+ 7qUTv0MMxF1+uhmRAd1BhvLLcC+d7P3fQXO+xOXNH35HfQUuvFK4+QzzCMx8rXVnI9sB VvjMwflfYocOKOKpMu3gMVjUVd0fD3lpiiwpYtdeUkC4PaIqgynNJqipIB/oUPiLu1dw +3TQ0KctuAaIGrj/cJaIT9LMjgnRByeeABzZUSXzsDAGH6gqGDJs5PFzAcoo4yUdxiaG 6fus4ljNi7OimaVhxPT7cJnp/lXBGYcVwPyJbqAf6Se+5xksuvjCGNqNCh/0ZVXW6MJ+ BoJA== X-Gm-Message-State: AOJu0YzFtJvqDAuJA4Ry7VNzAzmRztTEPjrQTtzGFrwXPeknRQGkHe4i WpBs/8C83lOv98owaql6G2tt6b9mSVL+vmY/vDsYM6pOOJ43tFlT2B2bgvraf/KLnBx49Ubdcfy JpcF5tFGsZ/0yI+4X6GAjfaNkc37qGP2zdxnm41BvqoTdp63daaXIhoCOQrw= X-Google-Smtp-Source: AGHT+IEGDZZsFkncr8+iHn/nlTm5Gcymgk+EYUHjMEl+Q7uesxCGKfbvxOEB1Yz9T6haTCCL3C/+sDxQLL8dIBpACLb+vgFNlxTt Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:82a:b0:65f:6bcd:e37 with SMTP id 006d021491bc7-65f6bcd1212mr4916389eaf.75.1768239574350; Mon, 12 Jan 2026 09:39:34 -0800 (PST) Date: Mon, 12 Jan 2026 09:39:34 -0800 In-Reply-To: <6960c2f0.050a0220.1c677c.03be.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <696531d6.050a0220.eaf7.00bf.GAE@google.com> Subject: Forwarded: [PATCH] mm, swap: fix cgroup V1 leak after removal of swap cache bypass From: syzbot To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 b= ypass Author: ryncsn@gmail.com From: Kairui Song #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.gi= t master Recent patch is causing a memory cgruop V1 swap leak, this patch should fix that [1]. Link: https://lore.kernel.org/all/CAMgjq7CMsAMZZJL1=3Da=3DEtfWCOuDFE62RKR_0= hUdPC4H+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 --- 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 *mappi= ng, struct folio *folio, =20 if (reclaimed && !mapping_exiting(mapping)) shadow =3D 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 *); --=20 2.52.0