Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2225435/?format=api
{ "id": 2225435, "url": "http://patchwork.ozlabs.org/api/patches/2225435/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260421050251.3662828-1-lepillai@linux.ibm.com/", "project": { "id": 59, "url": "http://patchwork.ozlabs.org/api/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": "<20260421050251.3662828-1-lepillai@linux.ibm.com>", "list_archive_url": null, "date": "2026-04-21T05:02:51", "name": "Added new_behavior flag to detect kernel version Kernel >= 6.11: Tests that creat() succeeds (write to executed file allowed)", "commit_ref": null, "pull_url": null, "state": "needs-review-ack", "archived": false, "hash": "3d682f00fb40db7aaaab616ad2fe9030ec312171", "submitter": { "id": 93081, "url": "http://patchwork.ozlabs.org/api/people/93081/?format=api", "name": null, "email": "lepillai@linux.ibm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260421050251.3662828-1-lepillai@linux.ibm.com/mbox/", "series": [ { "id": 500723, "url": "http://patchwork.ozlabs.org/api/series/500723/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=500723", "date": "2026-04-21T05:02:51", "name": "Added new_behavior flag to detect kernel version Kernel >= 6.11: Tests that creat() succeeds (write to executed file allowed)", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500723/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225435/comments/", "check": "warning", "checks": "http://patchwork.ozlabs.org/api/patches/2225435/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=D+O805g0;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; 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 [IPv6:2001:1418:10:5::2])\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 4g08lH2t6Wz1yHB\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 14:39:22 +1000 (AEST)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 98D623E1354\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 06:39:19 +0200 (CEST)", "from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [217.194.8.2])\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 3200F3CECA7\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 06:39:15 +0200 (CEST)", "from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com\n [148.163.156.1])\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-2.smtp.seeweb.it (Postfix) with ESMTPS id 1CFE2600A36\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 06:39:12 +0200 (CEST)", "from pps.filterd (m0360083.ppops.net [127.0.0.1])\n by mx0a-001b2d01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 63KJgeIm1926205\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 04:39:10 GMT", "from ppma22.wdc07v.mail.ibm.com\n (5c.69.3da9.ip4.static.sl-reverse.com [169.61.105.92])\n by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 4dm2nf2p0s-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 04:39:10 +0000 (GMT)", "from pps.filterd (ppma22.wdc07v.mail.ibm.com [127.0.0.1])\n by ppma22.wdc07v.mail.ibm.com (8.18.1.7/8.18.1.7) with ESMTP id\n 63L4ZN06016042\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 04:39:09 GMT", "from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230])\n by ppma22.wdc07v.mail.ibm.com (PPS) with ESMTPS id 4dmmnvqep6-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT)\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 04:39:09 +0000 (GMT)", "from smtpav06.fra02v.mail.ibm.com (smtpav06.fra02v.mail.ibm.com\n [10.20.54.105])\n by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n 63L4bos328967414\n (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);\n Tue, 21 Apr 2026 04:37:50 GMT", "from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id 774ED2004D;\n Tue, 21 Apr 2026 04:37:50 +0000 (GMT)", "from smtpav06.fra02v.mail.ibm.com (unknown [127.0.0.1])\n by IMSVA (Postfix) with ESMTP id AAA8A2004B;\n Tue, 21 Apr 2026 04:37:49 +0000 (GMT)", "from ktes.isst.tadn.ibm.com (unknown [9.5.15.16])\n by smtpav06.fra02v.mail.ibm.com (Postfix) with ESMTP;\n Tue, 21 Apr 2026 04:37:49 +0000 (GMT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=cc\n :content-transfer-encoding:date:from:in-reply-to:message-id\n :mime-version:references:subject:to; s=pp1; bh=0mHDiTW5Q5PgpMhYo\n HZW8tIa3Kg/w0I4DSxg4Pb7HL0=; b=D+O805g0S05STN1gp4raqqX3pr7Mo7Th7\n jVrvf8BPVCw6GgokQIrvVtaL0CM3LsKyRV0llnc2h9NML52lk4c4tL3OfmxG81la\n Z3lbWxidQjPOe37KycisntjO3/lc8cDDMiJqNmAddDZ0dkgsDMCFBs1qEMO402vl\n /3vU8IZxkIqalCXMeMzaJy86M+D+SvHU5bKhWqwsoEa16l+M971El0S6jPq51aEZ\n JwlZlXiUa4s7dVOTV4l1VjMPfL7+kBuZR4M9T3yxp3hIMFxZFV4ZLHKYLaRu0mck\n ba5CralzBB+K0OzRksFOco1xlyy50G3IYkB6q5amPfW/lZxgM6oaA==", "From": "lepillai@linux.ibm.com", "To": "ltp@lists.linux.it", "Date": "Tue, 21 Apr 2026 05:02:51 +0000", "Message-Id": "<20260421050251.3662828-1-lepillai@linux.ibm.com>", "X-Mailer": "git-send-email 2.39.1", "In-Reply-To": "<20260408053655.3818590-1-lepillai@linux.ibm.com>", "References": "<20260408053655.3818590-1-lepillai@linux.ibm.com>", "MIME-Version": "1.0", "X-TM-AS-GCONF": "00", "X-Proofpoint-ORIG-GUID": "KqFMh0R7JhnS733qWmbGJKZszzzSPh5u", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwNDIxMDAzOSBTYWx0ZWRfXzf0W+NTUpsP7\n Xg2AldiJdnGBUVOhd4he6Y+Yj8qvmjKCkG0M3sKPuYmcT3P8ADg+uyxjQN3/a6m3MYK4bf5yvLL\n X0rCxr8xZR0n9lEb4tXFIddilvpDMOqYayCQz3B+JS1e+awnuN+gI4sTgxUCzLv2u3n1pt42Nji\n 60fy2yM9NFK0LyLMjkQ55XuUd39U4A5M9XyyWcgusq7zinvXrQMR8+j/T0PT1XCSv9Yi2o+XhZ0\n mZsBMD57J3ZdPnlqfmjIXC82mMXHacNlOG4+KkOoU3bSP13Pul4nJqRipD+69Hiu+NWQHDIbWjK\n S6r4PTp5EjhKeJxDo6ubdbDFTsBJwe3Wh55DDQEQe5PpiRKxhpt8oItKAC6KJi5iNs3iOIhEe6o\n /ZjKqyqn93mlc6Z3gutbnVdZfYalvOmvY1QHuodI73Lmie1bpUuGZ5nQvRMiJeU3lCb/ERtCXV4\n WaIMBic6qgGpgtGTdnQ==", "X-Proofpoint-GUID": "KqFMh0R7JhnS733qWmbGJKZszzzSPh5u", "X-Authority-Analysis": "v=2.4 cv=B7iJFutM c=1 sm=1 tr=0 ts=69e6ff6e cx=c_pps\n a=5BHTudwdYE3Te8bg5FgnPg==:117 a=5BHTudwdYE3Te8bg5FgnPg==:17\n a=A5OVakUREuEA:10 a=VkNPw1HP01LnGYTKEx00:22 a=RnoormkPH1_aCDwRdu11:22\n a=iQ6ETzBq9ecOQQE5vZCe:22 a=VnNF1IyMAAAA:8 a=fn1gDMpfVk7IrGffMVAA:9", "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-21_01,2026-04-20_02,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n malwarescore=0 priorityscore=1501 spamscore=0 impostorscore=0 adultscore=0\n bulkscore=0 phishscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2604070000 definitions=main-2604210039", "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DMARC_PASS,SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=disabled\n version=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-2.smtp.seeweb.it", "X-Virus-Scanned": "clamav-milter 1.0.9 at in-2.smtp.seeweb.it", "X-Virus-Status": "Clean", "Subject": "[LTP] [PATCH] Added new_behavior flag to detect kernel version\n Kernel >= 6.11: Tests that creat() succeeds (write to executed file\n allowed)", "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": "lekshmi-cpillai <lekshmi@ktes.isst.tadn.ibm.com>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it", "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>" }, "content": "From: lekshmi-cpillai <lekshmi@ktes.isst.tadn.ibm.com>\n\n---\n testcases/kernel/syscalls/creat/creat07.c | 38 ++++++++++++++++-------\n 1 file changed, 27 insertions(+), 11 deletions(-)", "diff": "diff --git a/testcases/kernel/syscalls/creat/creat07.c b/testcases/kernel/syscalls/creat/creat07.c\nindex c7b85ee69..762022301 100644\n--- a/testcases/kernel/syscalls/creat/creat07.c\n+++ b/testcases/kernel/syscalls/creat/creat07.c\n@@ -19,6 +19,8 @@\n \n #define TEST_APP \"creat07_child\"\n \n+static int new_behavior;\n+\n static void verify_creat(void)\n {\n \tpid_t pid;\n@@ -33,16 +35,26 @@ static void verify_creat(void)\n \n \tTEST(creat(TEST_APP, O_WRONLY));\n \n-\tif (TST_RET != -1) {\n-\t\ttst_res(TFAIL, \"creat() succeeded unexpectedly\");\n-\t\treturn;\n+\tif (new_behavior) {\n+\t\t/* Kernel >= 6.11: write to executed file is allowed */\n+\t\tif (TST_RET != -1) {\n+\t\t\tSAFE_CLOSE(TST_RET);\n+\t\t\ttst_res(TPASS, \"creat() succeeded as expected (new behavior)\");\n+\t\t} else {\n+\t\t\ttst_res(TFAIL | TTERRNO, \"creat() failed unexpectedly\");\n+\t\t}\n+\t} else {\n+\t\t/* Kernel < 6.11: write to executed file returns ETXTBSY */\n+\t\tif (TST_RET != -1) {\n+\t\t\ttst_res(TFAIL, \"creat() succeeded unexpectedly\");\n+\t\t\tSAFE_CLOSE(TST_RET);\n+\t\t} else if (TST_ERR == ETXTBSY) {\n+\t\t\ttst_res(TPASS, \"creat() received ETXTBSY\");\n+\t\t} else {\n+\t\t\ttst_res(TFAIL | TTERRNO, \"creat() failed unexpectedly\");\n+\t\t}\n \t}\n \n-\tif (TST_ERR == ETXTBSY)\n-\t\ttst_res(TPASS, \"creat() received EXTBSY\");\n-\telse\n-\t\ttst_res(TFAIL | TTERRNO, \"creat() failed unexpectedly\");\n-\n \tSAFE_KILL(pid, SIGKILL);\n \tSAFE_WAITPID(pid, NULL, 0);\n }\n@@ -50,9 +62,13 @@ static void verify_creat(void)\n static void setup(void)\n {\n \tif ((tst_kvercmp(6, 11, 0)) >= 0) {\n-\t\ttst_brk(TCONF, \"Skipping test, write to executed file is \"\n-\t\t\t\"allowed since 6.11-rc1.\\n\"\n-\t\t\t\"2a010c412853 (\\\"fs: don't block i_writecount during exec\\\")\");\n+\t\tnew_behavior = 1;\n+\t\ttst_res(TINFO, \"Testing new behavior: write to executed file is \"\n+\t\t\t\"allowed since 6.11-rc1 (2a010c412853)\");\n+\t} else {\n+\t\tnew_behavior = 0;\n+\t\ttst_res(TINFO, \"Testing old behavior: write to executed file \"\n+\t\t\t\"returns ETXTBSY\");\n \t}\n }\n \n", "prefixes": [] }