Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216546/?format=api
{ "id": 2216546, "url": "http://patchwork.ozlabs.org/api/patches/2216546/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260326173532.1858716-2-youssef.abdulrahman@oss.qualcomm.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": "<20260326173532.1858716-2-youssef.abdulrahman@oss.qualcomm.com>", "list_archive_url": null, "date": "2026-03-26T17:35:32", "name": "[1/1] crypto: sha256 - fix crash at kexec", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "d9a4dd11e046d0f796f1c7bf6d7d230c004fa683", "submitter": { "id": 92981, "url": "http://patchwork.ozlabs.org/api/people/92981/?format=api", "name": "Youssef Samir", "email": "youssef.abdulrahman@oss.qualcomm.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260326173532.1858716-2-youssef.abdulrahman@oss.qualcomm.com/mbox/", "series": [ { "id": 497633, "url": "http://patchwork.ozlabs.org/api/series/497633/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=497633", "date": "2026-03-26T17:35:32", "name": "Fix potential page fault caused by sha256 calculation", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497633/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216546/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216546/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\" (2048-bit key;\n unprotected) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256\n header.s=qcppdkim1 header.b=Mp2qBVJ8;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com\n header.a=rsa-sha256 header.s=google header.b=Tke0jq9c;\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 4fhWCG4wBLz1yGL\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 04:35:53 +1100 (AEDT)", "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 1w5ocP-0005qY-Mc; Thu, 26 Mar 2026 17:35:41 +0000", "from mx0b-0031df01.pphosted.com ([205.220.180.131])\n by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)\n (Exim 4.86_2) (envelope-from <youssef.abdulrahman@oss.qualcomm.com>)\n id 1w5ocN-0005oj-ES\n for kernel-team@lists.ubuntu.com; Thu, 26 Mar 2026 17:35:39 +0000", "from pps.filterd (m0279869.ppops.net [127.0.0.1])\n by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id\n 62QF9ndr1666746\n for <kernel-team@lists.ubuntu.com>; Thu, 26 Mar 2026 17:35:37 GMT", "from mail-qt1-f200.google.com (mail-qt1-f200.google.com\n [209.85.160.200])\n by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4d4tjak8ug-1\n (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT)\n for <kernel-team@lists.ubuntu.com>; Thu, 26 Mar 2026 17:35:37 +0000 (GMT)", "by mail-qt1-f200.google.com with SMTP id\n d75a77b69052e-5093b92f327so8790531cf.1\n for <kernel-team@lists.ubuntu.com>; Thu, 26 Mar 2026 10:35:37 -0700 (PDT)", "from hu-yabdulra-ams.qualcomm.com ([212.136.9.4])\n by smtp.gmail.com with ESMTPSA id\n a640c23a62f3a-b9b20263997sm140804466b.14.2026.03.26.10.35.34\n for <kernel-team@lists.ubuntu.com>\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 26 Mar 2026 10:35:34 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h=\n content-transfer-encoding:date:from:in-reply-to:message-id\n :mime-version:references:subject:to; s=qcppdkim1; bh=TGJdWq0Ia8h\n nA5/udDR4l/gLx//zRKMf97sbEA9yJB4=; b=Mp2qBVJ8ATFAFaaQPPVufJ8Rsz8\n mWDCnit8f8X+8J9HP4/ItQGvn7TxJPnsW/ws1Fzm7fbhr4CvHrw8O9WR03ieNL/4\n 2IsA/tyQO2mQLANN8sPefC4Iplib7ycPYHdx1eZLMppNrFkkhJzxr/YA1rr0SpwT\n jU10NUQvzAzDXtdNuv41JHgditmITroBl7a0Lf39kQMWKt4UVf7xESopbUlsGs1h\n WQvTcjRJEEIHZE5+TAoEf8hiv69ZCaY3wbUXCXj+BgBdcoGZvgKgJOxMr+r5FtPO\n EXsBVvDdhCxxEaU5WwURTGMPHGV9CbsctAIKizk3S4jthwR2G7nu5dqMHiQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=oss.qualcomm.com; s=google; t=1774546536; x=1775151336;\n darn=lists.ubuntu.com;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:to:from:from:to:cc:subject:date:message-id\n :reply-to; bh=TGJdWq0Ia8hnA5/udDR4l/gLx//zRKMf97sbEA9yJB4=;\n b=Tke0jq9cNgRM2TRMWwEiqFgpsqFk4MmmXAvyWCH6IjbEUdX3piXQwa1ywoYwnzqQGu\n VzDMHT4hzU2TWPoj+HtSHUJelBat0nzoed1AhruuJjdXVjuPYjFKKBPHL2vgNBphXLvx\n 8TNHeoTXnBMxpAuRuEq1ZCpwVgt+/jt++8VWzVCpxugyT/JcCcSQ9vJ0NLLgreTzBjem\n fonm1q9QOqoxayFBXggyswGGXebPgOt1JmiltXkfq6P6uXxexMPHYV8NysESc27hCch8\n xn9Znam/u9UC+e2VvBlCbw5KreTbEyOmQJna2xDz6tFfp/BgooC7q6gbtfTREbCOVxTW\n LPnA==" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774546536; x=1775151336;\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=TGJdWq0Ia8hnA5/udDR4l/gLx//zRKMf97sbEA9yJB4=;\n b=Y+b5R6htKPqbYdp/fEyKfv+5be26ymd8dEYTw8MMr6J7+VJrv5+iq7Q+WsrSxG2mlD\n RHAa60SW4GyFbL5GYe+RZIvCHGBxF1nTbyHm6JJ9eCP/m0OoMsyiegoi/XlJw5NU5CSb\n d1Dqahz///TecnIB5WSbXmjTjOIs2II128UXLOFkEIokHM8JLZlj09/X8BJrgt2l/ybr\n WEDTB50c30/ii7UBx5CbTtPF0/jdZY9FMgPqikor62DuI3yXsL5S+yljdy1OC7S4eTky\n uzzs+9k3K8G5fWrvqnCs9zdWzYHQJ2zcWr13SRz94tntBvU+dvFMd804eH1HxkIXSaw5\n sIjw==", "X-Gm-Message-State": "AOJu0Yyc1pd9I7MeUKz6m03f8Qc+knBtlR6GIBDiEdcfZYrQVP7DJs9D\n Cz7QnPkpeGhQ60O95COiB84zcm9dL1KjcBT2+134lhH6T1F5SkRANxKyqmPrm1Xp6f2mbXvRIV+\n JByXjMW5p9wft/SK5ppQkz08vfoWvRrqjQ1/lUuL5D/+GbbiIrl8ffouv2IFn/dJppDCX+UtCEn\n o=", "X-Gm-Gg": "ATEYQzzwNmi/P9NsLp4QcHbk/gkya1NOQmuVlLWimnsRbhbgv71rZq+E1UFD1WYqw7z\n pCaSwc/a8yK/ZTrjwf57HG7HPI1E+/cnxOGvxLKTPuSaObVizVWNp8Kxwn/miTZDna8Yko1jOeh\n XgUvtqxZ2OQUXsmKdD6IyninbNQZBaLU07jvBSGUaBA/eA+9yPI9uDnWWb1DZ3Mk+Jj4iHl+nOr\n 753hlf4faOsL/IYAbi3fbil0EIzEQYKJzLpvjPJJTSlaroqV4y8N/a6aGbx06l4hmuGc0OhcjiV\n WtnV0vjV7dc4A/IbF47SstFI0dm+QiDK0ycvAFuSxloGsKCNMF9XkPlha+w/egj2q6xnbjSTfBr\n L7lCQorIG2o+fd5HIrT8TlloFsAs8MidiQ0yXUYQ7IdnzgGB50IC+yC2TrXWRGw==", "X-Received": [ "by 2002:a05:622a:356:b0:50b:51eb:c353 with SMTP id\n d75a77b69052e-50b80d3aef2mr116956951cf.31.1774546536196;\n Thu, 26 Mar 2026 10:35:36 -0700 (PDT)", "by 2002:a05:622a:356:b0:50b:51eb:c353 with SMTP id\n d75a77b69052e-50b80d3aef2mr116956471cf.31.1774546535573;\n Thu, 26 Mar 2026 10:35:35 -0700 (PDT)" ], "From": "Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>", "To": "kernel-team@lists.ubuntu.com", "Subject": "[PATCH 1/1] crypto: sha256 - fix crash at kexec", "Date": "Thu, 26 Mar 2026 18:35:32 +0100", "Message-ID": "<20260326173532.1858716-2-youssef.abdulrahman@oss.qualcomm.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260326173532.1858716-1-youssef.abdulrahman@oss.qualcomm.com>", "References": "<20260326173532.1858716-1-youssef.abdulrahman@oss.qualcomm.com>", "MIME-Version": "1.0", "X-Proofpoint-ORIG-GUID": "vaWPb64NakLL1d0zW1AxQKW3q3mQqfeC", "X-Authority-Analysis": "v=2.4 cv=Nr3cssdJ c=1 sm=1 tr=0 ts=69c56e69 cx=c_pps\n a=JbAStetqSzwMeJznSMzCyw==:117 a=dNlqnMcrdpbb+gQrTujlOQ==:17\n a=Yq5XynenixoA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22\n a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=danhDmx_AAAA:8\n a=xNf9USuDAAAA:8 a=VabnemYjAAAA:8 a=VwQbUJbxAAAA:8 a=ag1SF4gXAAAA:8\n a=EUspDBNiAAAA:8 a=brA3WTdBms0wRUNslVgA:9 a=uxP6HrT_eTzRwkO_Te1X:22\n a=gKebqoRLp9LExxC7YDUY:22 a=Yupwre4RP9_Eg_Bd0iYG:22", "X-Proofpoint-GUID": "vaWPb64NakLL1d0zW1AxQKW3q3mQqfeC", "X-Proofpoint-Spam-Details-Enc": "AW1haW4tMjYwMzI2MDEyNiBTYWx0ZWRfX3g3reMUh2xks\n e2xcKX3gOqe4hr/CVQRPOdwk74yF176LGa01eV1QqXDBpYjljHBKmO31B8hFo8D2Xx7h0u7rxqw\n K9cSl8dYY9h0vBUsPthZY3LjopOfA/6TdE4Q3/QKCSP0a6rHN7HXRg3rVnudqDwY2GiB+U38zmd\n fgqPG7xcoP07MlRLoeNROt5/4I2Ov5ZSc57fg7q85rYnBltyP87Vi/dcWF/JmO9x7aeq3CWf9xL\n myayUy/5OBXu9PBzkRHIM8mCKCn3e7+fu0+lypbv/wwZFNXHjN6OLs6EJh3U5wXO2xTyDSAIuo3\n gkr4pXh+OYVEBPfToB9HcGkFR3+UtgoNGKwlG0Vv/LtAXbBiwxgEdimjjZFVLGQa00J1DY4j5EK\n pWesDAN0CwGh5yH1hM+CPt7Bmgo0f5asJwQwL86BR8NVAStHy8e2GoUQBLfc7RfXynbSgbEZss/\n I/l76RVLG2zXfjL3l6w==", "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-03-26_03,2026-03-26_01,2025-10-01_01", "X-Proofpoint-Spam-Details": "rule=outbound_notspam policy=outbound score=0\n clxscore=1011 suspectscore=0 impostorscore=0 bulkscore=0 adultscore=0\n priorityscore=1501 lowpriorityscore=0 phishscore=0 malwarescore=0 spamscore=0\n classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0\n reason=mlx scancount=1 engine=8.22.0-2603050001 definitions=main-2603260126", "Received-SPF": "pass client-ip=205.220.180.131;\n envelope-from=youssef.abdulrahman@oss.qualcomm.com;\n helo=mx0b-0031df01.pphosted.com", "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: Breno Leitao <leitao@debian.org>\n\nBugLink: https://bugs.launchpad.net/bugs/2146472\n\nLoading a large (~2.1G) files with kexec crashes the host with when\nrunning:\n\n # kexec --load kernel --initrd initrd_with_2G_or_more\n\n UBSAN: signed-integer-overflow in ./include/crypto/sha256_base.h:64:19\n 34152083 * 64 cannot be represented in type 'int'\n ...\n BUG: unable to handle page fault for address: ff9fffff83b624c0\n sha256_update (lib/crypto/sha256.c:137)\n crypto_sha256_update (crypto/sha256_generic.c:40)\n kexec_calculate_store_digests (kernel/kexec_file.c:769)\n __se_sys_kexec_file_load (kernel/kexec_file.c:397 kernel/kexec_file.c:332)\n ...\n\n(Line numbers based on commit da274362a7bd9 (\"Linux 6.12.49\")\n\nThis started happening after commit f4da7afe07523f\n(\"kexec_file: increase maximum file size to 4G\") that landed in v6.0,\nwhich increased the file size for kexec.\n\nThis is not happening upstream (v6.16+), given that `block` type was\nupgraded from \"int\" to \"size_t\" in commit 74a43a2cf5e8 (\"crypto:\nlib/sha256 - Move partial block handling out\")\n\nUpgrade the block type similar to the commit above, avoiding hitting the\noverflow.\n\nThis patch is only suitable for the stable tree, and before 6.16, which\ngot commit 74a43a2cf5e8 (\"crypto: lib/sha256 - Move partial block\nhandling out\"). This is not required before f4da7afe07523f (\"kexec_file:\nincrease maximum file size to 4G\"). In other words, this fix is required\nbetween versions v6.0 and v6.16.\n\nSigned-off-by: Breno Leitao <leitao@debian.org>\nFixes: f4da7afe07523f (\"kexec_file: increase maximum file size to 4G\") # Before v6.16\nReported-by: Michael van der Westhuizen <rmikey@meta.com>\nReported-by: Tobias Fleig <tfleig@meta.com>\nReviewed-by: Eric Biggers <ebiggers@kernel.org>\nSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>\n(cherry picked from commit 70165dc3ec8cff702da7b8b122c44575ee3111d6 linux-6.12.y)\nSigned-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>\n---\n include/crypto/sha256_base.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/include/crypto/sha256_base.h b/include/crypto/sha256_base.h\nindex e0418818d63c..e3e610cfe8d3 100644\n--- a/include/crypto/sha256_base.h\n+++ b/include/crypto/sha256_base.h\n@@ -44,7 +44,7 @@ static inline int lib_sha256_base_do_update(struct sha256_state *sctx,\n \tsctx->count += len;\n \n \tif (unlikely((partial + len) >= SHA256_BLOCK_SIZE)) {\n-\t\tint blocks;\n+\t\tunsigned int blocks;\n \n \t\tif (partial) {\n \t\t\tint p = SHA256_BLOCK_SIZE - partial;\n", "prefixes": [ "1/1" ] }