get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2231515,
    "url": "http://patchwork.ozlabs.org/api/patches/2231515/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/0be15c11c3c526bbf6caf035b4530a9126bee133.1777576284.git.massimiliano.pellizzer@canonical.com/",
    "project": {
        "id": 15,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<0be15c11c3c526bbf6caf035b4530a9126bee133.1777576284.git.massimiliano.pellizzer@canonical.com>",
    "list_archive_url": null,
    "date": "2026-04-30T19:28:08",
    "name": "[SRU,Q,v2,4/6] crypto: authencesn - Fix src offset when decrypting in-place",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "99d69b2d7e06e72e8af14e3044a71aa7fd9834e0",
    "submitter": {
        "id": 89057,
        "url": "http://patchwork.ozlabs.org/api/people/89057/?format=api",
        "name": "Massimiliano Pellizzer",
        "email": "massimiliano.pellizzer@canonical.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/0be15c11c3c526bbf6caf035b4530a9126bee133.1777576284.git.massimiliano.pellizzer@canonical.com/mbox/",
    "series": [
        {
            "id": 502365,
            "url": "http://patchwork.ozlabs.org/api/series/502365/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=502365",
            "date": "2026-04-30T19:28:04",
            "name": "CVE-2026-31431",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/502365/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2231515/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2231515/checks/",
    "tags": {},
    "related": [],
    "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\" (4096-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20251003 header.b=Upfz71Cu;\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 4g644820PVz1yJr\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 01 May 2026 05:29:28 +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 1wIX4c-0001qH-R9; Thu, 30 Apr 2026 19:29:22 +0000",
            "from smtp-relay-internal-0.internal ([10.131.114.225]\n helo=smtp-relay-internal-0.canonical.com)\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <massimiliano.pellizzer@canonical.com>)\n id 1wIX4Z-0001jb-Jd\n for kernel-team@lists.ubuntu.com; Thu, 30 Apr 2026 19:29:19 +0000",
            "from mail-wr1-f71.google.com (mail-wr1-f71.google.com\n [209.85.221.71])\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 smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 800B73FE9F\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 19:29:19 +0000 (UTC)",
            "by mail-wr1-f71.google.com with SMTP id\n ffacd0b85a97d-4411a69f565so1049925f8f.2\n for <kernel-team@lists.ubuntu.com>; Thu, 30 Apr 2026 12:29:19 -0700 (PDT)",
            "from tuxedo-infinitybook (net-93-71-66-38.cust.vodafonedsl.it.\n [93.71.66.38]) by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-448e74324a5sm8133217f8f.12.2026.04.30.12.29.17\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 30 Apr 2026 12:29:18 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1777577359;\n bh=FwbWCrOAUHyJGzbZtpAccFJ/CmPxAyrzye0abOwEdiM=;\n h=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=Upfz71CuckgSvk6nIKVFTt5Y/+72bzYtvAs+aV8lylFfFWabP72t2Hpw9PyoUbe73\n sqcCvFqfHxx6xmx2yAY+eDQGvbvgmuBOCpp4rJMoeuBFg7TQON1J/a0KZ3t0VAQPyx\n nLl00AA1Si/FpKTJsJGYOJQzh4rvfiw/d3CU7noJmUJ+4r2a1iFvJab0998rwQPD1y\n mveuK5FKg7wmmwUK5bImftXczNBufLZDMTFvfRDFtEBlBQSNWFr2n8eYkdz+cJn1NX\n Aj5T1XHkZEpEkIYaqalWOMFRVn5cMhG0BtolCSrRkRzpkGmILt7WwaiYK6NQXbic/6\n EEgClZ0PyicNUifVrW6fyHxdM+HqPRL3qgtgsSmklbPoH0hU6LJAKZgCMnGTkN8V0S\n bxZYUlIE6Ro3O7p87nRmet2T3Mvv1CoBxuORhrHrAsDnIZ2ZMcbi4ADGYnV9DZ3AzD\n 2KLR2v+D1MORcHRHWMTAWYWcL4vlVDg7eWvkXoBJZxsNvFaP77YJmcfnL3utOVVKe5\n rH+FHrF0bTxJ1EqbN/tYHC8ExjWzxau67ymjRdFbnbyjKr3zll+wKN+mDudkCGyAw/\n XEsc1/wWamGK9UPz1GEMr+Eyy5XhlCSOuAiZjTFadyefYIMkckXdZk+odOs5+EU2Hj\n KHkoKOSjWZ6Rcjzj9RtkzbtY=",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777577359; x=1778182159;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=FwbWCrOAUHyJGzbZtpAccFJ/CmPxAyrzye0abOwEdiM=;\n b=EcTZ7KaYfMterB7OwmIINPglneCd6Gbq9BOktdQc/UkM/Qto4a9tVdTsvorw5zxDL3\n 6OteF2T2loE325GS8IxPwDUifui8BqIqpyXXzXAQSD3afzPOzcJNfZY/X1o/N/CQX4vF\n CdfnBbutJJQAubNhv4DsiEImgyJbiJsThPq86XeoMltZ2p1z2qnZ186mIo7POhJXJ2eF\n rXHrVJMhI0hE+T+pBFmWu+Ce9d6OhsKecF/QHoYO5xemhcnpB031HFh0oy3vxLpUhMRW\n 0FZ+Z8Y16KNDfcgxzpsJH5hTyJS9WhidDBXMkfL9566Y0u9mujbl1XDgJYRZTqs9I/tH\n wEdQ==",
        "X-Gm-Message-State": "AOJu0YydfEVl6436ag/CUPGPyU0F/nyP24h3oZ27T/JBSpSchOW9CwF4\n /ZeILTMUG6Jo7D72gNlvqRK/RyadkZ1jn9hHkWoXkUa6N5aoW4E2G+aMOfsLWKK5gRt7zphKPS4\n lsJdTPW+7/jptbP85U4NaDWm4UlXWVVu9lz5kuceSzu7mfFonPp7y0lEK1AtpTDmbpy7AWVD51R\n OmmE1tInnu0Umjlg==",
        "X-Gm-Gg": "AeBDiesRxz+Ia3ViB9zCUmkPxkvgqSA9sr17OJF3D/6A29DHn2gKRMtBv9JO3y2aJQi\n Jimqn7FoPXt2s3SaWbSncAAUvuvObGIk4/p1Eq9ZU1MIK4eygh6d/z7uzKGx3hWF5/14noTMO9I\n b5jmUZjuQZmNY5iUIW7pj8P4XUhgxCVV1Rk/QHkUGj9dttfHIUkeJi8Sjhzu6y91uEYjCJJt2kx\n RDOl/jcp6BmSQCsjPkGRM4fc0kpCRMgQg/80UZUXw4G5bkkUwVefz5dahZMWqqicgzKvXL2QnPd\n 03IbfY9l6LQH4APic6LSBTo76Px24+zKMEsHQ/kp2AFc3YHnMnLpefC0x2Aj0Y8kUlIY5qo4mrK\n d+ruSp3MV9KciAf/53G/Ag0Qkf69A60EC+lRI5Mu3kWjz4v03USiGFbjCmhf9IM7gkvRcNnt6j3\n E/4FfDAFTEFNSzfI04vlHZcGgbY2xjOTNl/47YEljhEGqjXJwYBuD2d5FSjDreXqptp1cm1X5ni\n +HHamIddAgeVg==",
        "X-Received": [
            "by 2002:a5d:584e:0:b0:43d:7d6f:f529 with SMTP id\n ffacd0b85a97d-4493eb6c1a8mr7450989f8f.31.1777577358913;\n Thu, 30 Apr 2026 12:29:18 -0700 (PDT)",
            "by 2002:a5d:584e:0:b0:43d:7d6f:f529 with SMTP id\n ffacd0b85a97d-4493eb6c1a8mr7450972f8f.31.1777577358508;\n Thu, 30 Apr 2026 12:29:18 -0700 (PDT)"
        ],
        "From": "Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>",
        "To": "kernel-team@lists.ubuntu.com",
        "Subject": "[SRU][Q][PATCH v2 4/6] crypto: authencesn - Fix src offset when\n decrypting in-place",
        "Date": "Thu, 30 Apr 2026 21:28:08 +0200",
        "Message-ID": "\n <0be15c11c3c526bbf6caf035b4530a9126bee133.1777576284.git.massimiliano.pellizzer@canonical.com>",
        "X-Mailer": "git-send-email 2.53.0",
        "In-Reply-To": "<cover.1777576284.git.massimiliano.pellizzer@canonical.com>",
        "References": "\n <177757626672.818044.11792928639290212185@tuxedo-infinitybook.public>\n <cover.1777576284.git.massimiliano.pellizzer@canonical.com>",
        "MIME-Version": "1.0",
        "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: Herbert Xu <herbert@gondor.apana.org.au>\n\nThe src SG list offset wasn't set properly when decrypting in-place,\nfix it.\n\nReported-by: Wolfgang Walter <linux@stwm.de>\nFixes: e02494114ebf (\"crypto: authencesn - Do not place hiseq at end of dst for out-of-place decryption\")\nSigned-off-by: Herbert Xu <herbert@gondor.apana.org.au>\n(cherry picked from commit 1f48ad3b19a9dfc947868edda0bb8e48e5b5a8fa)\nCVE-2026-31431\nSigned-off-by: Massimiliano Pellizzer <massimiliano.pellizzer@canonical.com>\n---\n crypto/authencesn.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/crypto/authencesn.c b/crypto/authencesn.c\nindex c0a01d738d9b..af3d584e584f 100644\n--- a/crypto/authencesn.c\n+++ b/crypto/authencesn.c\n@@ -228,9 +228,11 @@ static int crypto_authenc_esn_decrypt_tail(struct aead_request *req,\n \n decrypt:\n \n-\tif (src != dst)\n-\t\tsrc = scatterwalk_ffwd(areq_ctx->src, src, assoclen);\n \tdst = scatterwalk_ffwd(areq_ctx->dst, dst, assoclen);\n+\tif (req->src == req->dst)\n+\t\tsrc = dst;\n+\telse\n+\t\tsrc = scatterwalk_ffwd(areq_ctx->src, src, assoclen);\n \n \tskcipher_request_set_tfm(skreq, ctx->enc);\n \tskcipher_request_set_callback(skreq, flags,\n",
    "prefixes": [
        "SRU",
        "Q",
        "v2",
        "4/6"
    ]
}