Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2222539/?format=api
{ "id": 2222539, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2222539/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/6215241a-07c4-4eed-8549-0e0afc2fc096@linux.ibm.com/", "project": { "id": 59, "url": "http://patchwork.ozlabs.org/api/1.2/projects/59/?format=api", "name": "Linux Test Project development", "link_name": "ltp", "list_id": "ltp.lists.linux.it", "list_email": "ltp@lists.linux.it", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<6215241a-07c4-4eed-8549-0e0afc2fc096@linux.ibm.com>", "list_archive_url": null, "date": "2026-04-12T16:36:37", "name": "mmap: fix intermittent OOM kill of test parent in mmap22", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "b9808bb25b855a58c72d789410fd90e1226c2860", "submitter": { "id": 93035, "url": "http://patchwork.ozlabs.org/api/1.2/people/93035/?format=api", "name": "Soma Das", "email": "somadas1@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/6215241a-07c4-4eed-8549-0e0afc2fc096@linux.ibm.com/mbox/", "series": [ { "id": 499618, "url": "http://patchwork.ozlabs.org/api/1.2/series/499618/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=499618", "date": "2026-04-12T16:36:37", "name": "mmap: fix intermittent OOM kill of test parent in mmap22", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499618/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2222539/comments/", "check": "fail", "checks": "http://patchwork.ozlabs.org/api/patches/2222539/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "ltp@lists.linux.it" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "ltp@picard.linux.it" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256\n header.s=pp1 header.b=OlxQ72AM;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=213.254.12.146; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from picard.linux.it (picard.linux.it [213.254.12.146])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4ftxBY0q5sz1yCx\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 02:41:23 +1000 (AEST)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 5864E3E1F82\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 12 Apr 2026 18:41:20 +0200 (CEST)", "from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 3833C3E1F82\n for <ltp@lists.linux.it>; Sun, 12 Apr 2026 18:41:10 +0200 (CEST)", "from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n [148.163.158.5])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-6.smtp.seeweb.it (Postfix) with ESMTPS id 8470414002C8\n for <ltp@lists.linux.it>; Sun, 12 Apr 2026 18:41:07 +0200 (CEST)", "from pps.filterd (m0360072.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63CC02ew2032997\n for <ltp@lists.linux.it>; Sun, 12 Apr 2026 16:41:06 GMT", "from ppma12.dal12v.mail.ibm.com\n (dc.9e.1632.ip4.static.sl-reverse.com [50.22.158.220])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dfdxwv6cb-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <ltp@lists.linux.it>; Sun, 12 Apr 2026 16:41:03 +0000 (GMT)", "from pps.filterd (ppma12.dal12v.mail.ibm.com [127.0.0.1])\n by ppma12.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id\n 63CDeLwK015149\n for <ltp@lists.linux.it>; Sun, 12 Apr 2026 16:41:02 GMT", "from smtprelay03.dal12v.mail.ibm.com ([172.16.1.5])\n by ppma12.dal12v.mail.ibm.com (PPS) with ESMTPS id 4dg0msa5nm-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <ltp@lists.linux.it>; Sun, 12 Apr 2026 16:41:02 +0000", "from smtpav01.wdc07v.mail.ibm.com (smtpav01.wdc07v.mail.ibm.com\n [10.39.53.228])\n by smtprelay03.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 63CGexJl27591338\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Sun, 12 Apr 2026 16:41:00 GMT", "from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 8C59C58055;\n Sun, 12 Apr 2026 16:40:59 +0000 (GMT)", "from smtpav01.wdc07v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 9B8035804B;\n Sun, 12 Apr 2026 16:36:40 +0000 (GMT)", "from [9.43.87.179] (unknown [9.43.87.179])\n by smtpav01.wdc07v.mail.ibm.com (Postfix) with ESMTPS;\n Sun, 12 Apr 2026 16:36:40 +0000 (GMT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-type:date:from:message-id:mime-version:subject:to; s=\n pp1; bh=XJYlgiqAPzNNHTG6+9sp+EEZ5vd5k2b0dlHTOoXWjfQ=; b=OlxQ72AM\n Z+8BlW1kOyYVbObZ7Gx90nvJWwHXIzK35RTDstj28jU4DpzgtLMNZjuYYtvQLrel\n jkuzbfopmz36UcC6ELzeAxuV776A5iKWQsy2PMsoYBKiYB+e20pdOoJRitSM0OoK\n eG5vfsKVnqDptNvFWYGMufAnDgqKGWZ3GshkJRvj108DcPWy0tVELfq2DXoujJOJ\n VcOdzJawgRfD6VvVSV3iDbyv0EbjpmMaQBHvjU9bZHH0mRC670Pfqrd0cr//3nVO\n Kh+d0kUdHVFtLJAFSN2jPpqMneg2tR2UGvN1U+wCmrr4n6NEC5Vv1i554p988MdM\n L4l+MYbEnPbkbw==", "Content-Type": "multipart/mixed; boundary=\"------------tzrtAcYfcrs2TQ9JEOIGHdTR\"", "Message-ID": "<6215241a-07c4-4eed-8549-0e0afc2fc096@linux.ibm.com>", "Date": "Sun, 12 Apr 2026 22:06:37 +0530", "MIME-Version": "1.0", "User-Agent": "Mozilla Thunderbird", "Content-Language": "en-US", "To": "ltp@lists.linux.it", "From": "Soma Das <somadas1@linux.ibm.com>", "X-TM-AS-GCONF": "00", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDEyMDE1OSBTYWx0ZWRfX4XIlRo16b9MN\n TmVr7CCa8m+4ecuAreKvQZSehonmGK0D/Xkcq2XhYDEseXJ7DyyKxE6V1yKlj4vq6zVStmXzf6a\n oa9p7Ms4V2/5t+2N0Ayj+a1q/BIEDlQCvBIr+7FkcoBYRfIwmiml103T1rI3UPxhJqvJyurElqV\n WkTWJYKmRLMv3iVl3GGB0jx47cwENigS7FdlPqfLtavoP7khhfiMfEygXMcTypoHhdE6DibBRuy\n qqCDQH5Vcqo+h0gBJMUy/Zx6T4hjJI1L38CY2x8Zghez3+Ur4g3orevYGfmYsULeQR+095RbuSS\n atkR994ot5Xvbl+zVW70FVURWxEckR0JEmkaN5fILkOObRgbj74aK9R3zbifzG8Q7vgCluDEzLD\n DUV51NbYtY865c2a7eIfEPk1OArpTGhkvmRm4ohfehg5mGWyy6J4mDDhnO/6fl1avffOBYluNL8\n QcaFKT1/eKwlrn3jQEg==", "X-Proofpoint-ORIG-GUID": "PRslzbq3mnNX0HYZQVrTr47kMl_3dnqM", "X-Authority-Analysis": "v=2.4 cv=TId1jVla c=1 sm=1 tr=0 ts=69dbcb21 cx=c_pps\n a=bLidbwmWQ0KltjZqbj+ezA==:117 a=bLidbwmWQ0KltjZqbj+ezA==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=RzCfie-kr_QcCd8fBx8p:22 a=r77TgQKjGQsHNAKrUKIA:9 a=VnNF1IyMAAAA:8\n a=mJCoqrU39B6flKSPnNoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10\n a=1dYAeJjSXU8HURg5_LEA:9 a=m-Z_27IZkzAA:10 a=yudG8bnPQPeRYag4JZEA:9\n a=B2y7HmGcmWMA:10", "X-Proofpoint-GUID": "PRslzbq3mnNX0HYZQVrTr47kMl_3dnqM", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49\n definitions=2026-04-12_04,2026-04-09_02,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n bulkscore=0 malwarescore=0 spamscore=0 adultscore=0 phishscore=0\n suspectscore=0 priorityscore=1501 impostorscore=0 clxscore=1015\n lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc=\n route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604010000\n definitions=main-2604120159", "X-Virus-Scanned": "clamav-milter 1.0.9 at in-6.smtp.seeweb.it", "X-Virus-Status": "Clean", "Subject": "[LTP] [PATCH] mmap: fix intermittent OOM kill of test parent in\n mmap22", "X-BeenThere": "ltp@lists.linux.it", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "Linux Test Project <ltp.lists.linux.it>", "List-Unsubscribe": "<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>", "List-Archive": "<http://lists.linux.it/pipermail/ltp/>", "List-Post": "<mailto:ltp@lists.linux.it>", "List-Help": "<mailto:ltp-request@lists.linux.it?subject=help>", "List-Subscribe": "<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>", "Cc": "somadas1@linux.ibm.com", "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it", "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>" }, "content": "somadas@Somas-MacBook-Pro ~ % cat \n/Users/somadas/Desktop/0001-mmap-fix-intermittent-OOM-kill-of-test-parent-in-mma.patch\n From efe86553599706258aca055fdcbb2caf31fee8b0 Mon Sep 17 00:00:00 2001\nFrom: Soma Das <somadas1@linux.ibm.com>\nDate: Sun, 12 Apr 2026 16:43:43 +0000\nSubject: [PATCH] mmap: fix intermittent OOM kill of test parent in mmap22\n\nThe test forks a stress child inside a shared memcg (256 MB limit).\nWhen the cgroup fills up the OOM killer sometimes picks the parent\n(test harness) over the child (stress worker) because both have\noom_score_adj=0 and the kernel heuristics are non-deterministic.\nThis causes the test to crash or segfault instead of reporting a\nclean result on ppc64le and other architectures.\n\nFix by adding a set_oom_score_adj() helper that writes directly to\n/proc/self/oom_score_adj using open()/write() with a TWARN on\nfailure (rather than SAFE_FILE_PRINTF which would hard-abort the\ntest in restricted environments). Set the parent to -1000 before\nfork() to protect the test harness, and set the child to +1000\nimmediately after fork() to make it the unambiguous OOM victim.\nAdd #include <fcntl.h> for O_WRONLY used by the helper.\n\nSigned-off-by: Soma Das <somadas1@linux.ibm.com>\n---\n testcases/kernel/syscalls/mmap/mmap22.c | 37 ++++++++++++++++++++++++-\n 1 file changed, 36 insertions(+), 1 deletion(-)", "diff": "diff --git a/testcases/kernel/syscalls/mmap/mmap22.c \nb/testcases/kernel/syscalls/mmap/mmap22.c\nindex 0b95c578f..02c363893 100644\n--- a/testcases/kernel/syscalls/mmap/mmap22.c\n+++ b/testcases/kernel/syscalls/mmap/mmap22.c\n@@ -17,6 +17,7 @@\n #include <stdio.h>\n #include <sys/types.h>\n #include <sys/mman.h>\n+#include <fcntl.h>\n #include <unistd.h>\n #include <signal.h>\n #include <sys/wait.h>\n@@ -31,6 +32,24 @@ static struct tst_cg_group *cg_child;\n static pid_t child;\n static int page_size;\n\n+static void set_oom_score_adj(int value)\n+{\n+ char buf[16];\n+ int fd, len;\n+\n+ fd = open(\"/proc/self/oom_score_adj\", O_WRONLY);\n+ if (fd < 0) {\n+ tst_res(TWARN | TERRNO, \"Failed to open /proc/self/oom_score_adj\");\n+ return;\n+ }\n+\n+ len = snprintf(buf, sizeof(buf), \"%d\", value);\n+ if (write(fd, buf, len) != len)\n+ tst_res(TWARN | TERRNO, \"Failed to write oom_score_adj=%d\", value);\n+\n+ close(fd);\n+}\n+\n static void stress_child(void)\n {\n for (;;) {\n@@ -63,9 +82,25 @@ static void test_mmap(void)\n\n vec = SAFE_MALLOC(npages);\n\n+ /*\n+ * Protect the parent (test harness) from the OOM killer. Both parent\n+ * and child share the same memcg, so without an explicit hint the OOM\n+ * killer picks based on heuristics that can favour the parent.\n+ */\n+ set_oom_score_adj(-1000);\n+\n child = SAFE_FORK();\n- if (!child)\n+ if (!child) {\n+ /*\n+ * Make the child the preferred OOM victim. If OOM fires while\n+ * the stress worker is filling memory, the kernel must kill the\n+ * child (stress worker) and not the parent (test harness).\n+ * oom_score_adj=1000 is the maximum, guaranteeing this process\n+ * is chosen first within the cgroup.\n+ */\n+ set_oom_score_adj(1000);\n stress_child();\n+ }\n\n for (;;) {\n if (!tst_remaining_runtime()) {\n", "prefixes": [] }