Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216472/?format=api
{ "id": 2216472, "url": "http://patchwork.ozlabs.org/api/patches/2216472/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260326141813.285753-2-jacob.martin@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": "<20260326141813.285753-2-jacob.martin@canonical.com>", "list_archive_url": null, "date": "2026-03-26T14:18:13", "name": "[SRU,R,v2,1/1] UBUNTU: [Packaging] add stripped-down vmlinux with only BTF sections to flavour headers package", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "1e56e0233e34ae61f8b90c49450a395f45be6adf", "submitter": { "id": 85661, "url": "http://patchwork.ozlabs.org/api/people/85661/?format=api", "name": "Jacob Martin", "email": "jacob.martin@canonical.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ubuntu-kernel/patch/20260326141813.285753-2-jacob.martin@canonical.com/mbox/", "series": [ { "id": 497599, "url": "http://patchwork.ozlabs.org/api/series/497599/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ubuntu-kernel/list/?series=497599", "date": "2026-03-26T14:18:12", "name": "Enable BTF generation for out-of-tree module builds", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/497599/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216472/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216472/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=J+YGAWLA;\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 4fhQqV3jbhz1yGL\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 01:18:29 +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 1w5lXP-00018Q-VO; Thu, 26 Mar 2026 14:18:19 +0000", "from smtp-relay-internal-1.internal ([10.131.114.114]\n helo=smtp-relay-internal-1.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 <jacob.martin@canonical.com>)\n id 1w5lXO-00017u-CW\n for kernel-team@lists.ubuntu.com; Thu, 26 Mar 2026 14:18:18 +0000", "from mail-oi1-f199.google.com (mail-oi1-f199.google.com\n [209.85.167.199])\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-1.canonical.com (Postfix) with ESMTPS id 3731F3F0B1\n for <kernel-team@lists.ubuntu.com>; Thu, 26 Mar 2026 14:18:18 +0000 (UTC)", "by mail-oi1-f199.google.com with SMTP id\n 5614622812f47-4670643ebf8so1603898b6e.0\n for <kernel-team@lists.ubuntu.com>; Thu, 26 Mar 2026 07:18:18 -0700 (PDT)", "from localhost ([2001:67c:1562:8007::aac:47ab])\n by smtp.gmail.com with ESMTPSA id\n 5614622812f47-46a7063439dsm1754827b6e.1.2026.03.26.07.18.15\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 07:18:16 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20251003; t=1774534698;\n bh=RhwjNCzVybpErBHLG9GkQkfOjjLoALnW7MHdx2+0Lhc=;\n h=From:To:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=J+YGAWLAc1Pp+kO2kg8cSolPoUJZDqAX9roc6N8HFkK0iSKzufvpMoWzEkMIclmtb\n hR4I5AzMfSIBZNA7RK+uidN1kHfvqh9r7B5/HvOMHQWX5G5AJ0jmNiZ7X1YMAGYZcI\n XFBatkczIjpD3AugSl7i8OmqDJX0icLICJAvhiKihF2GeHQVvd7SFRUcJ2ukbiGj3T\n ig4ct8kUiHjUkgFt6XodrEzMdueX9QEuPgp7vLYxmXfyw7LiiIF/6pGJ+RR+EiSqmo\n Z+4wchMC1+HmGtT6M29u8f4hlIXwu/G1fNIv6A0uXX1vXwMGF5TMQCsU99SQztVvZF\n xuDmKHv/jtCiWOt73VnqdOWLD7nbI63umiiY7zLrtuDrFFuM7KOd6/8l0Fk04eOl7I\n /Zz8xPnxPYFQHw90xrhvMkHNbTa65fVYROdK6qf1tpG6fyMmO1IgirGb+1PYZSJbVM\n B++4qTxuz3HQqqbrJRUFeVUzZsBhN+k9lz5RNJt0WND7lMx7aOBniaC8DN52PFaxG6\n 2/9tgQoZvyG5rWxQDi18T8ztDomRhWPzfofCFHVIFO5r1XSveHkyKXwxNcbgJnA9BX\n RO+I9EhfgOoBxPltgYCle8aVotHCngB8GyWM9JFQyE3RLnPp4CZpM3UBhCWtqqc/7j\n YheH3JGWOL0XhutqR5OUBwA0=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1774534697; x=1775139497;\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=RhwjNCzVybpErBHLG9GkQkfOjjLoALnW7MHdx2+0Lhc=;\n b=VLGSjUFFSqoDk0n94yxkhrhLg5Mi61rr1QjBDpzEy6hQCacsgzufayeMyrN3RoO00F\n R7DySA4l+mpYFsg53Y0ueUg+KCEd00rHbzx25rlss2h+cAXasH4CxPh/xUQTuhJA374o\n K9jVmAq8ii4LgcpZoSvwxHGf5wvO1a9VeTgSieexBPv0Xqlt8j5KZMiB7k9neURwizZm\n l4ccfMYXpHYitSGuUKkyECbayQk7YQbDeWyINSsahrL4Ch1/Y65kxiFvIQ8VAfleZq4u\n LmTP5PCqziW6sn35ibgPpTLsPgeVAtnOXffuf+zOsQCFD7QUff+Ck/64TSMp6hr2+syJ\n LGbA==", "X-Gm-Message-State": "AOJu0YyXHX8J4QguTJjaawR0gujFhvy/3gWMENvRVLgtJ/hzsYSdD5LP\n AW96qthDNi42u3h5/A3AY98wh7/2CocYwjXYtodO8V6cSKq5sjHQIzn1AdIG+hb2Bnt/Yn131Jt\n y63C2BOWNosux2d4m5sebpIcXI2i98okEwhevCiBroGeZ2obmo44+7Cx8w5Tl5R376dtM0lZ6af\n KYD1OJ7VH1GFHyCg==", "X-Gm-Gg": "ATEYQzyZD+17zhoXf1mZ+pqA8xL0K4/wpaZHT5qPmLrsbBYMOLHWPTxI1Glf2rT+1Q1\n LVh5mBPW4cqtjL0p+UDblW+1fdqBmRYYUK6J7ETqI69vxNXHr9y2MmwGwqn+Un5UeE5cLbUGhXd\n nJUvV4V8QTdkfZrrSpC9Eqrpb11itC9UcgraR92MNaiVPd9lJ2PiKENSHjYBYHDmlOlD0dOyMZK\n wzTJY6vcDh+bS8eP1YDv33DrwYkdK8Ct4444j+Owu+GEuytTvQdo18t7LunsujcmleyVg4oBW1J\n mxhvV84yz4iD6aMr4UM4OvGfaL28z2GMdD1G3HMUhYRgPXGFIsQ7tRtefzH1DKZZdmX30SYwU9G\n 6/wNGU7K5gy2MIryHfQ==", "X-Received": [ "by 2002:a05:6808:c3ed:b0:467:5f1:fcac with SMTP id\n 5614622812f47-46a7a875f0emr743891b6e.5.1774534697008;\n Thu, 26 Mar 2026 07:18:17 -0700 (PDT)", "by 2002:a05:6808:c3ed:b0:467:5f1:fcac with SMTP id\n 5614622812f47-46a7a875f0emr743875b6e.5.1774534696603;\n Thu, 26 Mar 2026 07:18:16 -0700 (PDT)" ], "From": "Jacob Martin <jacob.martin@canonical.com>", "To": "kernel-team@lists.ubuntu.com", "Subject": "[SRU][R][PATCH v2 1/1] UBUNTU: [Packaging] add stripped-down vmlinux\n with only BTF sections to flavour headers package", "Date": "Thu, 26 Mar 2026 09:18:13 -0500", "Message-ID": "<20260326141813.285753-2-jacob.martin@canonical.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260326141813.285753-1-jacob.martin@canonical.com>", "References": "<20260326141813.285753-1-jacob.martin@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": "BugLink: https://bugs.launchpad.net/bugs/2133794\n\nOut-of-tree module builds warn about failed BTF generation without a\nvmlinux image with BTF information included with the kernel headers.\nGenerate a stripped down vmlinux with only .BTF and .BTF_ids sections to\nsilence this warning and allow for the automatic generation of BTF debug\ninformation during out-of-tree module builds.\n\nThis solution matches the one in Debian by Bastian Blank:\nhttps://salsa.debian.org/kernel-team/linux/-/commit/0dedced119aea5426f81a9318c36e0a6c7339547.\n\nSigned-off-by: Jacob Martin <jacob.martin@canonical.com>\n---\n debian/rules.d/2-binary-arch.mk | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk\nindex e79cd23290d7..d038df77d5cf 100644\n--- a/debian/rules.d/2-binary-arch.mk\n+++ b/debian/rules.d/2-binary-arch.mk\n@@ -274,6 +274,14 @@ endif\n \t# Copy over the compilation version.\n \tcp \"$(build_dir)/include/generated/compile.h\" \\\n \t\t\"$(hdrdir)/include/generated/compile.h\"\n+\t# Generate a stripped-down vmlinux with only BTF sections to enable BTF\n+\t# generation on out-of-tree module builds. Skip this on arches with\n+\t# do_tools_bpftool_stub=true, which declares the kernel is built with\n+\t# CONFIG_DEBUG_INFO_BTF disabled, and thus vmlinux lacks BTF info.\n+ifneq ($(do_tools_bpftool_stub),true)\n+\t$(CROSS_COMPILE)objcopy --only-section .BTF --only-section .BTF_ids $(build_dir)/vmlinux $(hdrdir)/vmlinux\n+\tchmod 644 $(hdrdir)/vmlinux\n+endif\n \t# Add UTS_UBUNTU_RELEASE_ABI since UTS_RELEASE is difficult to parse.\n \techo \"#define UTS_UBUNTU_RELEASE_ABI $(abinum)\" >> $(hdrdir)/include/generated/utsrelease.h\n \t# powerpc kernel arch seems to need some .o files for external module linking. Add them in.\n", "prefixes": [ "SRU", "R", "v2", "1/1" ] }