Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2220390/?format=api
{ "id": 2220390, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2220390/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260407063459.106734-2-acelan.kao@canonical.com/", "project": { "id": 15, "url": "http://patchwork.ozlabs.org/api/1.1/projects/15/?format=api", "name": "Ubuntu Kernel", "link_name": "ubuntu-kernel", "list_id": "kernel-team.lists.ubuntu.com", "list_email": "kernel-team@lists.ubuntu.com", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<20260407063459.106734-2-acelan.kao@canonical.com>", "date": "2026-04-07T06:34:59", "name": "[SRU,Q,1/1] mm, swap: fix swap cache index error when retrying reclaim", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "94f50748973334bf7309631a225b7955d0624c4d", "submitter": { "id": 2976, "url": "http://patchwork.ozlabs.org/api/1.1/people/2976/?format=api", "name": "AceLan Kao", "email": "acelan.kao@canonical.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260407063459.106734-2-acelan.kao@canonical.com/mbox/", "series": [ { "id": 498922, "url": "http://patchwork.ozlabs.org/api/1.1/series/498922/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=498922", "date": "2026-04-07T06:34:58", "name": "System hangs during stress-ng stack test", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498922/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220390/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220390/checks/", "tags": {}, "headers": { "Return-Path": "<kernel-team-bounces@lists.ubuntu.com>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=H+fNgKIX;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com\n (client-ip=185.125.189.65; helo=lists.ubuntu.com;\n envelope-from=kernel-team-bounces@lists.ubuntu.com;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fqbzd1xG3z1xy1\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 07 Apr 2026 16:35:25 +1000 (AEST)", "from localhost ([127.0.0.1] helo=lists.ubuntu.com)\n\tby lists.ubuntu.com with esmtp (Exim 4.86_2)\n\t(envelope-from <kernel-team-bounces@lists.ubuntu.com>)\n\tid 1wA01t-0007V4-RS; Tue, 07 Apr 2026 06:35:17 +0000", "from mail-pl1-f171.google.com ([209.85.214.171])\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <acelan@gmail.com>) id 1wA01s-0007UB-Fr\n for kernel-team@lists.ubuntu.com; Tue, 07 Apr 2026 06:35:16 +0000", "by mail-pl1-f171.google.com with SMTP id\n d9443c01a7336-2b24fdac394so47267875ad.3\n for <kernel-team@lists.ubuntu.com>; Mon, 06 Apr 2026 23:35:16 -0700 (PDT)", "from localhost ([2001:67c:1562:8007::aac:4468])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-2b27472d20bsm159402595ad.16.2026.04.06.23.35.11\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 06 Apr 2026 23:35:13 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775543714; x=1776148514; darn=lists.ubuntu.com;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:sender:from:to:cc:subject:date\n :message-id:reply-to;\n bh=yugcLjkWiGKnlt9lW3+NuBEo1AwEZg5Co2w43dKoPh4=;\n b=H+fNgKIX5WidvV6kjnswHhQuvUZRpNW/8dPe1oCBBGCjf5pChEkM9w3ZKkho6lvz2Y\n 4TYkinJkEN/JXWl+cPZuRVeQXztTDcJHbgqiaEeb1B/Pt7zCWzrcz6NXCn2VLyzEaC5k\n jv2E6MXSXSN3fVq8RZvwTJK17EveSkKJGDNF/VJK7FhY0KS7gPkcsLbgOopZSlo230JO\n p1/NV0gnD7gQwJfahdnPImxfkIz+kpcroJ3v8cG1yOYik0bOCmHa1U/cQkC/PAExs13y\n M4778AyxCdN1N5vZ6N8MmoxcJ+Y9V7mQXojffG+AgRv4SEe6BE959LHTpWiSts8uCf01\n t6vQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775543714; x=1776148514;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:sender:x-gm-gg:x-gm-message-state\n :from:to:cc:subject:date:message-id:reply-to;\n bh=yugcLjkWiGKnlt9lW3+NuBEo1AwEZg5Co2w43dKoPh4=;\n b=Qrqj8a7QdgVasXAAr6Z5RhblKyROfu0e9kehytHIQcoReylsxTtlmM53nmtk17vD9N\n zC5DRJdCjbLJGhAtLbmHrBVLHPkA03dqYhUEAhB+8hjus7p8Zn3CSsyjmzFp5VjeYwyB\n 3SKv9foNDW4y7SMhC2J1s34awpowe0WRy68y2jYKDLUCQtHYWRoMYSyaemxST+OkgEXl\n qLIHe1m4FaWqeRReF4bpAzZfQ8jAsfWkkHXHvbJIl0pJ2LifPqXgaYb837Ve4Yt61g81\n cAJ7MRiSdIkyhuigZ5hddav8l0URykOErBv+L+OBWE/gnPxoliHXiQcOUdMigFbLREap\n mjFw==", "X-Gm-Message-State": "AOJu0Yw8t6xhhQA/Kz6vJneYn+1g/WoPqgOs7jugPH/YXo0SopDnb3fl\n 5rN1iHg/hwXYhmfBmofmR35ZEsbyPF3zpxBMo9vakwhe9oI41hocqsf2Y7ldJTVV", "X-Gm-Gg": "AeBDievlfyCb5zON3E6j3onWKmoDF3lysxqYuDbtDC+ZMA9KyFEaXXU2ufeSC7K9wjd\n hIis1nJ6gfpC/p9pb/5Rvsh4qE2nXV5c7uRETHFwbbarSd8SB/L+GzgIGl5Wz6eyyesy6YvLGn9\n PR2w7T1JYQUc/laudcC0i0xaUqDhKEzGN5/j5G1WDrf6A4BsSOOYmNGVBPKRBfWI0VTi0VMiGvm\n Ps8MZODJqz9C+L3xxIQEwVbL9mbTIGvUU+tL/JCjXD5wRoKbMKEduSMgNYVbp1CxkB3iJb37gG9\n HC9iddMQ9C433kpHMW4EfPXXYUkWxNp6yqiaKVw7bnnURA2I4DTQDKWs2L7YrvVoKjd17MoUm/p\n npUOX3USKZqhSEG76uJijfo3st2ZB3duCEb+ELvFaO4wMD55LpoXzVKa3D9eRDA8Mqi1Yj6u+DU\n 0D1LzaKQ==", "X-Received": "by 2002:a17:902:7243:b0:2b2:42f8:1a45 with SMTP id\n d9443c01a7336-2b2817eae99mr114122275ad.39.1775543713816;\n Mon, 06 Apr 2026 23:35:13 -0700 (PDT)", "From": "AceLan Kao <acelan.kao@canonical.com>", "To": "kernel-team@lists.ubuntu.com", "Subject": "[SRU][Q][PATCH 1/1] mm,\n swap: fix swap cache index error when retrying reclaim", "Date": "Tue, 7 Apr 2026 14:34:59 +0800", "Message-ID": "<20260407063459.106734-2-acelan.kao@canonical.com>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260407063459.106734-1-acelan.kao@canonical.com>", "References": "<20260407063459.106734-1-acelan.kao@canonical.com>", "MIME-Version": "1.0", "Received-SPF": "pass client-ip=209.85.214.171; envelope-from=acelan@gmail.com;\n helo=mail-pl1-f171.google.com", "X-BeenThere": "kernel-team@lists.ubuntu.com", "X-Mailman-Version": "2.1.20", "Precedence": "list", "List-Id": "Kernel team discussions <kernel-team.lists.ubuntu.com>", "List-Unsubscribe": "<https://lists.ubuntu.com/mailman/options/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe>", "List-Archive": "<https://lists.ubuntu.com/archives/kernel-team>", "List-Post": "<mailto:kernel-team@lists.ubuntu.com>", "List-Help": "<mailto:kernel-team-request@lists.ubuntu.com?subject=help>", "List-Subscribe": "<https://lists.ubuntu.com/mailman/listinfo/kernel-team>,\n <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe>", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "kernel-team-bounces@lists.ubuntu.com", "Sender": "\"kernel-team\" <kernel-team-bounces@lists.ubuntu.com>" }, "content": "From: Kairui Song <kasong@tencent.com>\n\nBugLink: https://bugs.launchpad.net/bugs/2137755\n\nThe allocator will reclaim cached slots while scanning. Currently, it\nwill try again if reclaim found a folio that is already removed from the\nswap cache due to a race. But the following lookup will be using the\nwrong index. It won't cause any OOB issue since the swap cache index is\ntruncated upon lookup, but it may lead to reclaiming of an irrelevant\nfolio.\n\nThis should not cause a measurable issue, but we should fix it.\n\nLink: https://lkml.kernel.org/r/20250916160100.31545-4-ryncsn@gmail.com\nFixes: fae859550531 (\"mm, swap: avoid reclaiming irrelevant swap cache\")\nSigned-off-by: Kairui Song <kasong@tencent.com>\nReviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>\nAcked-by: Nhat Pham <nphamcs@gmail.com>\nAcked-by: Chris Li <chrisl@kernel.org>\nAcked-by: David Hildenbrand <david@redhat.com>\nSuggested-by: Chris Li <chrisl@kernel.org>\nCc: Baoquan He <bhe@redhat.com>\nCc: Barry Song <baohua@kernel.org>\nCc: \"Huang, Ying\" <ying.huang@linux.alibaba.com>\nCc: Hugh Dickins <hughd@google.com>\nCc: Johannes Weiner <hannes@cmpxchg.org>\nCc: Kemeng Shi <shikemeng@huaweicloud.com>\nCc: kernel test robot <oliver.sang@intel.com>\nCc: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>\nCc: Matthew Wilcox (Oracle) <willy@infradead.org>\nCc: Yosry Ahmed <yosryahmed@google.com>\nCc: Zi Yan <ziy@nvidia.com>\nCc: SeongJae Park <sj@kernel.org>\nSigned-off-by: Andrew Morton <akpm@linux-foundation.org>\n(backported from commit a733d8de7f1ccbf093ce2fde424616e529073876)\n[acelan: upstream removed 'address_space' variable in an earlier commit,\n but this branch still uses it. Kept the variable while applying the\n 'const' qualifier to 'entry' as intended by the upstream fix.]\nSigned-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>\nAcked-by: Kuan-Ying Lee <kuan-ying.lee@canonical.com>\nSigned-off-by: Kuan-Ying Lee <kuan-ying.lee@canonical.com>\n---\n mm/swapfile.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/mm/swapfile.c b/mm/swapfile.c\nindex 73065d75d0e1f..d0179759d5dac 100644\n--- a/mm/swapfile.c\n+++ b/mm/swapfile.c\n@@ -212,7 +212,7 @@ static bool swap_is_last_map(struct swap_info_struct *si,\n static int __try_to_reclaim_swap(struct swap_info_struct *si,\n \t\t\t\t unsigned long offset, unsigned long flags)\n {\n-\tswp_entry_t entry = swp_entry(si->type, offset);\n+\tconst swp_entry_t entry = swp_entry(si->type, offset);\n \tstruct address_space *address_space = swap_address_space(entry);\n \tstruct swap_cluster_info *ci;\n \tstruct folio *folio;\n@@ -241,13 +241,13 @@ static int __try_to_reclaim_swap(struct swap_info_struct *si,\n \t * Offset could point to the middle of a large folio, or folio\n \t * may no longer point to the expected offset before it's locked.\n \t */\n-\tentry = folio->swap;\n-\tif (offset < swp_offset(entry) || offset >= swp_offset(entry) + nr_pages) {\n+\tif (offset < swp_offset(folio->swap) ||\n+\t offset >= swp_offset(folio->swap) + nr_pages) {\n \t\tfolio_unlock(folio);\n \t\tfolio_put(folio);\n \t\tgoto again;\n \t}\n-\toffset = swp_offset(entry);\n+\toffset = swp_offset(folio->swap);\n \n \tneed_reclaim = ((flags & TTRS_ANYWAY) ||\n \t\t\t((flags & TTRS_UNMAPPED) && !folio_mapped(folio)) ||\n", "prefixes": [ "SRU", "Q", "1/1" ] }