Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2228334/?format=api
{ "id": 2228334, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2228334/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260426035823.3634607-1-chihsheng@google.com/", "project": { "id": 59, "url": "http://patchwork.ozlabs.org/api/1.1/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": "" }, "msgid": "<20260426035823.3634607-1-chihsheng@google.com>", "date": "2026-04-26T03:58:23", "name": "syscalls/mmap09: Drop hardcoded /tmp path", "commit_ref": null, "pull_url": null, "state": "needs-review-ack", "archived": false, "hash": "1dccbd90ccc5331094442f313090bcea402a0590", "submitter": { "id": 93256, "url": "http://patchwork.ozlabs.org/api/1.1/people/93256/?format=api", "name": "Darren Chang", "email": "chihsheng@google.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260426035823.3634607-1-chihsheng@google.com/mbox/", "series": [ { "id": 501500, "url": "http://patchwork.ozlabs.org/api/1.1/series/501500/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=501500", "date": "2026-04-26T03:58:23", "name": "syscalls/mmap09: Drop hardcoded /tmp path", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501500/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2228334/comments/", "check": "success", "checks": "http://patchwork.ozlabs.org/api/patches/2228334/checks/", "tags": {}, "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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=BZmazD70;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256\n header.s=20251104 header.b=QV5iHJnH;\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 4g3CcQ3SLGz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 13:59:00 +1000 (AEST)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id B990A3E5323\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 26 Apr 2026 05:58:49 +0200 (CEST)", "from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [217.194.8.7])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 124613E14C8\n for <ltp@lists.linux.it>; Sun, 26 Apr 2026 05:58:45 +0200 (CEST)", "from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com\n [IPv6:2607:f8b0:4864:20::44a])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-7.smtp.seeweb.it (Postfix) with ESMTPS id A58962005D0\n for <ltp@lists.linux.it>; Sun, 26 Apr 2026 05:58:44 +0200 (CEST)", "by mail-pf1-x44a.google.com with SMTP id\n d2e1a72fcca58-82fbceb0181so5104209b3a.3\n for <ltp@lists.linux.it>; Sat, 25 Apr 2026 20:58:44 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1777175929; h=date :\n mime-version : message-id : to : subject : list-id : list-unsubscribe\n : list-archive : list-post : list-help : list-subscribe : from :\n reply-to : content-type : content-transfer-encoding : sender : from;\n bh=IoVA1euN0glfcm/LpmfND0JmhuHm0lKHZtBBstrF2tg=;\n b=BZmazD702ZhgojMUj0Ly58dtFiI1sjmYVZX4Dxi+agikyBLTwyrFz98LMJMEUaqsmptwv\n aYZ2VxieNI7/ifd3vYgMyPkmo+MTnMJpZp6X9agmUQ+kbBvtnB6xn7i+uPqyuXaScahU2Z8\n tUalzWCNECx8i82vEOX6oATqUqdD0Rs=", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=google.com; s=20251104; t=1777175923; x=1777780723; darn=lists.linux.it;\n h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject\n :date:message-id:reply-to;\n bh=9sygr3qrBESRAcPvs+AhK19P+zxdqoHLbDKdQZY942k=;\n b=QV5iHJnHuh4ttEVaP/dFi7YPwt96vjCM81hK17zIRB8Wps/S4tvlikjfYiRV7LhLc5\n aRTjGKmZxDFgBqGrsx80aPwbXldc4JABbxuVluiWX1EB/TvqLTfBvXHfFYXQaIYMzQZZ\n P9bsIblRNfskPmg658rXRxM5QQcNSvdfz7SV9DvTp03WUnSxYCqysjCBPWNHz59Wexfn\n gAuCjJP5V2ERCDg98IvOGABfAKaxqqrSHENKP05Jbtdo4+vSEcvCDs13GDIl0L0bAuhY\n +uOUST8PDBxzPpZa73I243MpKSGq5dg2h/tTiGSmKhiMmMdn7RxlWPb7AUFs/QUDd6kL\n bxug==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777175923; x=1777780723;\n h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state\n :from:to:cc:subject:date:message-id:reply-to;\n bh=9sygr3qrBESRAcPvs+AhK19P+zxdqoHLbDKdQZY942k=;\n b=NRTl+C+LxjUNU4cWdWEmKigxQEFaa8yMQG8LfsArXpax1OFf9lFZaIrrXtJWs5Fb79\n iRNURly/beeTLMaFmASLvvzQGc/n0EyTxbAbRsRmKV2yLdOX8gV3zx35rSSJupjOhdda\n yLL+HVc3zvZbnTFqdSHfUo4UBbu8gDvh5Q8Hrhie5CWzr80kAN1o4abnWVBaEvqy5Hjb\n enzgGdIi7HttSVYr2T5YwY5e68Is5ePyVtpfp4XlRMmPLoNb1P0lr3tt07c0EZXFONWR\n G64C68kPbfQflo3iUwDBQVXXVCw5wC2WBNPY49RqonjoVfqEmEqH6vZ5EqfTTVrWluZD\n YvBQ==", "X-Gm-Message-State": "AOJu0YyleU82vMFnrCsiOwPA2naQ/HQhlpq3LsHIv1Q72hO3SIbuhJC8\n 7msGqSjww07pJ9/sG1UqCPorSqjWVJQebJ5+KkSxJKVe9JrGPtMIR/5s5Ua4ihLunaRgb3HkL7H\n Tp0o1bvcw41BD9XBzpMCgX+b0H/Lnm8cHgqegQ5JsXVZ9WFVOTl1f/RraKOeFoSSFFb0UppVL4o\n ysIQ55VIh7jr5DpierhToLgVp2WkNF++JtFxanw+0oZZMeJfE=", "X-Received": "from pgc28.prod.google.com ([2002:a05:6a02:2f9c:b0:c79:22b6:a343])\n (user=chihsheng job=prod-delivery.src-stubby-dispatcher) by\n 2002:a05:6a20:2d0b:b0:3a0:cc67:396 with SMTP id\n adf61e73a8af0-3a0cc67219cmr36192180637.28.1777175922470;\n Sat, 25 Apr 2026 20:58:42 -0700 (PDT)", "Date": "Sun, 26 Apr 2026 03:58:23 +0000", "Mime-Version": "1.0", "X-Mailer": "git-send-email 2.54.0.rc2.544.gc7ae2d5bb8-goog", "Message-ID": "<20260426035823.3634607-1-chihsheng@google.com>", "To": "ltp@lists.linux.it", "X-Spam-Status": "No, score=-7.4 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL\n shortcircuit=no autolearn=disabled version=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on in-7.smtp.seeweb.it", "X-Virus-Scanned": "clamav-milter 1.0.9 at in-7.smtp.seeweb.it", "X-Virus-Status": "Clean", "Subject": "[LTP] [PATCH] syscalls/mmap09: Drop hardcoded /tmp path", "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>", "From": "Darren Chang via ltp <ltp@lists.linux.it>", "Reply-To": "Darren Chang <chihsheng@google.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": "In some environments (such as Android devices), the `/tmp` directory\nmight not exist, which causes the test to fail during setup when\ntrying to open `/tmp/mmaptest`.\n\nSince this test already utilizes the new LTP API with `.needs_tmpdir = 1`,\nthe framework automatically creates and chdirs into a unique temporary\ndirectory. Therefore, we can safely use a relative path for the test\nfile instead of hardcoding `/tmp`.\n\nSigned-off-by: Darren Chang <chihsheng@google.com>\n---\n testcases/kernel/syscalls/mmap/mmap09.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/testcases/kernel/syscalls/mmap/mmap09.c b/testcases/kernel/syscalls/mmap/mmap09.c\nindex 8c6b514ab..f2d695268 100644\n--- a/testcases/kernel/syscalls/mmap/mmap09.c\n+++ b/testcases/kernel/syscalls/mmap/mmap09.c\n@@ -43,7 +43,7 @@ static void verify_mmap(unsigned int nr)\n \n static void setup(void)\n {\n-\tfd = SAFE_OPEN(\"/tmp/mmaptest\", O_RDWR | O_CREAT, 0666);\n+\tfd = SAFE_OPEN(\"mmaptest\", O_RDWR | O_CREAT, 0666);\n \n \t/* set the file to initial size */\n \tSAFE_FTRUNCATE(fd, MAPSIZE);\n", "prefixes": [] }