get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/2222773/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2222773,
    "url": "http://patchwork.ozlabs.org/api/patches/2222773/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260413155730.fnnhbyzqmmrxgfur@lida.tpb.lab.eng.brq.redhat.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": "<20260413155730.fnnhbyzqmmrxgfur@lida.tpb.lab.eng.brq.redhat.com>",
    "list_archive_url": null,
    "date": "2026-04-13T15:57:30",
    "name": "Syscall param clock_settime(tp) points to uninitialised byte(s)",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "aae04bf070b1b9744999478c807aeed3dab0b9cb",
    "submitter": {
        "id": 88822,
        "url": "http://patchwork.ozlabs.org/api/people/88822/?format=api",
        "name": "Martin Cermak",
        "email": "mcermak@redhat.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260413155730.fnnhbyzqmmrxgfur@lida.tpb.lab.eng.brq.redhat.com/mbox/",
    "series": [
        {
            "id": 499725,
            "url": "http://patchwork.ozlabs.org/api/series/499725/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=499725",
            "date": "2026-04-13T15:57:30",
            "name": "Syscall param clock_settime(tp) points to uninitialised byte(s)",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/499725/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2222773/comments/",
    "check": "fail",
    "checks": "http://patchwork.ozlabs.org/api/patches/2222773/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=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=B3crLU2q;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=IuKDnXyN;\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fvX9l2j6Pz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 14 Apr 2026 01:57:45 +1000 (AEST)",
            "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 8AB413E4B3E\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 13 Apr 2026 17:57:43 +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 C4D033C5676\n for <ltp@lists.linux.it>; Mon, 13 Apr 2026 17:57:39 +0200 (CEST)",
            "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\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 04DAA60070F\n for <ltp@lists.linux.it>; Mon, 13 Apr 2026 17:57:38 +0200 (CEST)",
            "from mail-wr1-f71.google.com (mail-wr1-f71.google.com\n [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS\n (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id\n us-mta-321-Ol7oBoSKPAakCYmjBBXO_g-1; Mon, 13 Apr 2026 11:57:34 -0400",
            "by mail-wr1-f71.google.com with SMTP id\n ffacd0b85a97d-43d1bfbd219so3330995f8f.0\n for <ltp@lists.linux.it>; Mon, 13 Apr 2026 08:57:34 -0700 (PDT)",
            "from lida.tpb.lab.eng.brq.redhat.com ([213.175.46.86])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-43d6fc9d525sm16444801f8f.36.2026.04.13.08.57.32\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Mon, 13 Apr 2026 08:57:32 -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=1776095863; h=date : to :\n message-id : mime-version : content-type : subject : list-id :\n list-unsubscribe : list-archive : list-post : list-help :\n list-subscribe : from : reply-to : sender : from;\n bh=iytvKNxM3qLY0zit/coRruxLPKlVTror/Er2Ln3b0ms=;\n b=B3crLU2qDp3Z3COUjBhzOPkCWTQYgi5BFfpAm7CxBHIkEpnRv2+K7gtig57NhDvOozKWC\n BQl55eBxaM7vhG+9af8Drull+AN67Ve9adnJNEo3U6TgN3q3tWSfKdYc09iA3d4cMG9kBFc\n UtILAQ4HTLlAGiVk4HRPmmP+fv3CG/0=",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776095857;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type;\n bh=YYGhYzIXlx8G5otRk5q0c4CeWFZICKhio3rXkh5gUAE=;\n b=IuKDnXyNm4hxWLOld99CU4ltc99t2PTHc35kAG0zWv5RqdN5wChaZL1E4EpJsrSAPhJBff\n a/OGV3j/YBXgBStK80kHb/aAdX/jDXpBVQxOGZbq4wwn/eCCIHfbZ//qLf6m5H5XJwjQ0s\n 1jdU/aaEdGuwgBNAUlm4hqlbhGGjOTk="
        ],
        "X-MC-Unique": "Ol7oBoSKPAakCYmjBBXO_g-1",
        "X-Mimecast-MFC-AGG-ID": "Ol7oBoSKPAakCYmjBBXO_g_1776095854",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776095853; x=1776700653;\n h=user-agent:content-disposition:mime-version:message-id:subject:to\n :from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=qxKUdX6Ej9lDsdublRnxchwmAfIb4Xh2pz8kUuawL2c=;\n b=rbMm9iJLq3esvqvNezZWuOlA7wnW/2DFc2tpBQbW72RplDsKAw5TFIoqzpegifKxk2\n DoiqVUst9MCRCY30ODYPMOYV96/5lw4uIrsPuQplE1v5CtKS0ntq0pgw0kZXc7xMUDt6\n 0XqJtRO/KgPF1VVdMiawCGLH7n5u7GI3bEll7vT+x/oM9oaWDUc2G8ROLrZLUZ9YK/ZD\n YpSEl0XoDCzvQetmv/eMwucDUn4aEYdwMMqzeSHonae7vNDRB1DJwbkZWBeqswFEdZiV\n 5p+UdIpXZEYZW2+HGWAR26mtX5auG/Epni8C5bM6JKtwmyFsIQjJWjZtG0eqSHEMiR52\n e/bQ==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ9jtMotDtNlyLmfB2icj0drbLiOm/E+q2J1Q5IWZxz2K9Ye20riBNRLhwePxwBgfVkqGoo=@lists.linux.it",
        "X-Gm-Message-State": "AOJu0Yz9fMMpW4m3luM8IHHHFI6Knz9DqaTR/iiJaugH2WOdf06Nxe5V\n B0F662YZvT/L5mAZHFGGdkIgH9hyeru/aOpB8pVQmi+VJIOAcntb9y4Q4dtQjRJu5tWvWJB2+Ae\n roKnPkzqHPtI0hzTvpIaywrTQgmHO2pKp9gr6z3D1TJKLU/chfN4s",
        "X-Gm-Gg": "AeBDiesJax50EuKcJ3Fkja7fx8/yfSZmm5ntk0r5yFHQXj/BN5M7LbfF4JacXDJj1r6\n ugjYm9AFd0+AsEVNWrTOIeR+CkurxJzLR9OlLby5Q+E3FFrZuzXXZmwv/ipMm9S2KzA+gKLe8y0\n DbimYjg3lc5JqnVMUNiVY6gGEvMDeKpFd5c1SXE9vVv8+yzg7P4eTH05xlVL98/odQp1eYh8lZa\n h+XeRnnqk6sXX13kj0i5R4TF+zsCYEWRz8aVx1iubmBWj0e6XkHddeU6chK7mOt25VVFECcgIC3\n kN1GkiCP2QrSyJZEWXUYTXZQZdKBcPOQ3P4PIO7269D2fm7a+W/Uf3UG9UiEA+VhcYO0/2aZGHj\n E4DKasUBHt5vDMjdMhJTtHs6mTHNzWxSSgg==",
        "X-Received": [
            "by 2002:a05:6000:230c:b0:43d:7a97:78a2 with SMTP id\n ffacd0b85a97d-43d7a977965mr5472557f8f.28.1776095853481;\n Mon, 13 Apr 2026 08:57:33 -0700 (PDT)",
            "by 2002:a05:6000:230c:b0:43d:7a97:78a2 with SMTP id\n ffacd0b85a97d-43d7a977965mr5472518f8f.28.1776095852918;\n Mon, 13 Apr 2026 08:57:32 -0700 (PDT)"
        ],
        "Date": "Mon, 13 Apr 2026 17:57:30 +0200",
        "To": "Petr Vorel <pvorel@suse.cz>, Cyril Hrubis <chrubis@suse.cz>,\n valgrind-developers@lists.sourceforge.net, ltp@lists.linux.it",
        "Message-ID": "<20260413155730.fnnhbyzqmmrxgfur@lida.tpb.lab.eng.brq.redhat.com>",
        "MIME-Version": "1.0",
        "User-Agent": "NeoMutt/20180716",
        "X-Mimecast-Spam-Score": "0",
        "X-Mimecast-MFC-PROC-ID": "blge84PQ3t5aRTA_bt-mmpoT0MML0UJ2Ns6zK9hvWUM_1776095854",
        "X-Mimecast-Originator": "redhat.com",
        "Content-Type": "multipart/mixed; boundary=\"lbb252ntq2nnxcsn\"",
        "Content-Disposition": "inline",
        "X-Spam-Status": "No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,SPF_HELO_PASS,SPF_PASS\n shortcircuit=no autolearn=disabled 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] Syscall param clock_settime(tp) points to uninitialised\n byte(s)",
        "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": "Martin Cermak via ltp <ltp@lists.linux.it>",
        "Reply-To": "Martin Cermak <mcermak@redhat.com>",
        "Errors-To": "ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it",
        "Sender": "\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"
    },
    "content": "Hello there,\n\none LTP nit attached.\n\nCheers,\nm.\nFrom 1acc76579c81b37814b0111044e1a1f8282cfbfb Mon Sep 17 00:00:00 2001\nFrom: Martin Cermak <mcermak@redhat.com>\nDate: Mon, 13 Apr 2026 17:48:43 +0200\nSubject: [PATCH] Avoid Syscall param clock_settime(tp) points to uninitialised\n byte(s)\n\nWithout this update, clock_settime03 fails under valgrind with an error like the following:\n\nel10 x86_64 # ./vg-in-place --track-origins=yes  ./auxprogs/auxchecks/ltp-full-20260130/testcases/kernel/syscalls/clock_settime/clock_settime03\n==1638250== Memcheck, a memory error detector\n==1638250== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.\n==1638250== Using Valgrind-3.27.0.GIT and LibVEX; rerun with -h for copyright info\n==1638250== Command: ./auxprogs/auxchecks/ltp-full-20260130/testcases/kernel/syscalls/clock_settime/clock_settime03\n==1638250==\ntst_test.c:2047: TINFO: LTP version: 20260130\ntst_test.c:2050: TINFO: Tested kernel: 6.12.0-218.el10.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 31 08:07:36 EDT 2026 x86_64\ntst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/6.12.0-218.el10.x86_64/build/.config'\ntst_test.c:1875: TINFO: Overall timeout per run is 0h 00m 34s\nclock_settime03.c:35: TINFO: Testing variant: syscall with old kernel spec\nclock_settime03.c:103: TPASS: clock_settime(): Y2038 test passed\n==1638252==\n==1638252== HEAP SUMMARY:\n==1638252==     in use at exit: 0 bytes in 0 blocks\n==1638252==   total heap usage: 17 allocs, 17 frees, 13,761 bytes allocated\n==1638252==\n==1638252== All heap blocks were freed -- no leaks are possible\n==1638252==\n==1638252== For lists of detected and suppressed errors, rerun with: -s\n==1638252== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\n\nSummary:\npassed   1\nfailed   0\nbroken   0\nskipped  0\nwarnings 0\n==1638250== Syscall param clock_settime(tp) points to uninitialised byte(s)\n==1638250==    at 0x496215D: syscall (in /usr/lib64/libc.so.6)\n==1638250==    by 0x416780: syscall_supported_by_kernel (tst_clocks.c:24)\n==1638250==    by 0x416780: tst_clock_settime (tst_clocks.c:104)\n==1638250==    by 0x40DB67: tst_wallclock_restore (tst_wallclock.c:63)\n==1638250==    by 0x407E06: do_cleanup (tst_test.c:1671)\n==1638250==    by 0x407E06: do_exit (tst_test.c:1054)\n==1638250==    by 0x40B280: run_tcases_per_fs (tst_test.c:2025)\n==1638250==    by 0x40B280: tst_run_tcases (tst_test.c:2065)\n==1638250==    by 0x404D8D: main (tst_test.h:755)\n==1638250==  Address 0x1ffefffbe0 is on thread 1's stack\n==1638250==  in frame #1, created by tst_clock_settime (tst_clocks.c:92)\n==1638250==  Uninitialised value was created by a stack allocation\n==1638250==    at 0x416710: tst_clock_settime (tst_clocks.c:92)\n==1638250==\n==1638250==\n==1638250== HEAP SUMMARY:\n==1638250==     in use at exit: 0 bytes in 0 blocks\n==1638250==   total heap usage: 10 allocs, 10 frees, 10,552 bytes allocated\n==1638250==\n==1638250== All heap blocks were freed -- no leaks are possible\n==1638250==\n==1638250== For lists of detected and suppressed errors, rerun with: -s\n==1638250== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)\nel10 x86_64 #\n---\n lib/tst_clocks.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/lib/tst_clocks.c b/lib/tst_clocks.c\nindex 704ce9551..107938e4e 100644\n--- a/lib/tst_clocks.c\n+++ b/lib/tst_clocks.c\n@@ -19,7 +19,7 @@ typedef int (*mysyscall)(clockid_t clk_id, void *ts);\n int syscall_supported_by_kernel(long sysnr)\n {\n \tint ret;\n-\tstruct __kernel_timespec foo;\n+\tstruct __kernel_timespec foo = { 0, };\n \n \tret = syscall(sysnr, 0, &foo);\n \tif (ret == -1 && errno == ENOSYS)\n",
    "prefixes": []
}