Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2225894/?format=api
{ "id": 2225894, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2225894/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/6569b8bb96b90b70100df28e6921e6319487f83d.1776797518.git.sam@gentoo.org/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.2/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<6569b8bb96b90b70100df28e6921e6319487f83d.1776797518.git.sam@gentoo.org>", "list_archive_url": null, "date": "2026-04-21T18:51:59", "name": "libsanitizer: fix __sanitizer::struct_sock_fprog_sz availability (#183411) [PR124248]", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "89032b41b3ed5cd312698a19411e7f016d363dc4", "submitter": { "id": 83216, "url": "http://patchwork.ozlabs.org/api/1.2/people/83216/?format=api", "name": "Sam James", "email": "sam@gentoo.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/6569b8bb96b90b70100df28e6921e6319487f83d.1776797518.git.sam@gentoo.org/mbox/", "series": [ { "id": 500872, "url": "http://patchwork.ozlabs.org/api/1.2/series/500872/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500872", "date": "2026-04-21T18:51:59", "name": "libsanitizer: fix __sanitizer::struct_sock_fprog_sz availability (#183411) [PR124248]", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/500872/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2225894/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2225894/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gentoo.org", "sourceware.org; spf=pass smtp.mailfrom=gentoo.org", "server2.sourceware.org;\n arc=none smtp.remote-ip=140.211.166.183" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\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 4g0Whz0QMvz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 04:53:17 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 6EE084BA9021\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 18:53:15 +0000 (GMT)", "from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])\n by sourceware.org (Postfix) with ESMTP id 259934BA9002\n for <gcc-patches@gcc.gnu.org>; Tue, 21 Apr 2026 18:52:48 +0000 (GMT)", "from localhost\n (2.8.3.0.0.0.0.0.0.0.0.0.0.0.0.0.a.5.c.d.c.d.9.1.0.b.8.0.1.0.0.2.ip6.arpa\n [IPv6:2001:8b0:19dc:dc5a::382])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n (Authenticated sender: sam@gentoo.org)\n by smtp.gentoo.org (Postfix) with ESMTPSA id A0C85341F35;\n Tue, 21 Apr 2026 18:52:46 +0000 (UTC)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 6EE084BA9021", "OpenDKIM Filter v2.11.0 sourceware.org 259934BA9002" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 259934BA9002", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 259934BA9002", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776797568; cv=none;\n b=uoBW534AZ+k/2zcAiauo9iHhrqGVfB2J8IiaTdd/VeAaiAoQkeWiOg5UMnn7LDpIjtju7QHp6w66oIWPpSEZ3JCiWeDEAMFxCLtSa4iuQAfPV9U5ZOxtZwwjzQ/HHumGDPGx/ZgpstZhnxWdrqJGOMPVNvkwR/QBY3UT7PsVScA=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776797568; c=relaxed/simple;\n bh=KKm5tx/5EUgkTLa/eepSLJFPgvCHTrLYPje/3C2rOkY=;\n h=From:To:Subject:Date:Message-ID:MIME-Version;\n b=v9MWE2sjcxZINhJvGPJfqWJ9zrcDUpfU9t1q+FOUNLg+MkUvfyQPtByS06YnHLtL2FrUYHDzNfcSboXM0iP0wzuSVtkGvXgwFFeHMw5rcH0sf/30jMc+MTgSMIuZQ8pYyTPK/DzsBSrRDt3HY+LJdWgeupfE75RNMOqVdL7GM2U=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "From": "Sam James <sam@gentoo.org>", "To": "gcc-patches@gcc.gnu.org", "Cc": "Marian Buschsieweke <maribu@users.noreply.github.com>", "Subject": "[PATCH] libsanitizer: fix __sanitizer::struct_sock_fprog_sz\n availability (#183411) [PR124248]", "Date": "Tue, 21 Apr 2026 19:51:59 +0100", "Message-ID": "\n <6569b8bb96b90b70100df28e6921e6319487f83d.1776797518.git.sam@gentoo.org>", "X-Mailer": "git-send-email 2.54.0", "MIME-Version": "1.0", "X-Developer-Signature": "v=1; a=openpgp-sha256; l=2134; i=sam@gentoo.org;\n h=from:subject:message-id; bh=j7y9DjMZTgbuDQVcyJIQeRbtce2qKMU0k59M8eJGRpk=;\n b=owGbwMvMwCVW3ML5VeH+xAmMp9WSGDKfH89Kz1nxPqtAMrRE941+2rVzVy9djMxbpPds1l65v\n frtdRM7Oj6yMIhxMcwUU2RRXba74+7sMp/sUMdDMHNYmUCGSIs0MAABCwNfbmJeqZGOkZ6ptqGe\n IZChYxQPkdNj0MgsLi5NLdJNKyhyyMsvSSzJzM8r1ssvSM0rSC/QS8tMK8nIyC8qTgUaoZeXWmJ\n k6mjm5GRh4eJi6WRuZuJs5mRqamLobGRubGFiYOlmamTg4mZpaGnAwMUpAHON8kyG//WMt2W886\n Vu7bzNsWg1l7/UdI/FqzbcS7vH0Pl/lmB3SDfD//B/x6R/8P8+kKBse6Wv3Pv2pkV/ephdM7itt\n FhClzTpMQAA", "X-Developer-Key": "i=sam@gentoo.org; a=openpgp;\n fpr=5EF3A41171BB77E6110ED2D01F3D03348DB1A3E2", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "From: Marian Buschsieweke <maribu@users.noreply.github.com>\n\nCherry picked from LLVM commit dabd8cc2334917272fe73b70626fd3a5f9e63cf5.\n\n`struct sock_fprog` is not provided by glibc, but rather by the linux\nheaders (`#include <linux/filter.h`). It seems that glibc due to an\nimplementation detail internally includes `<linux/filter.h>` somewhere\nother C libs (e.g. musl) do not, which previously caused build failures\nand let to disabling `struct sock_fprog` on non-glibc Linux systems.\n\nThis adds the missing include and provides it again for all Linux\nsystems regardless of C lib.\n---\nBackport from upstream LLVM. Fixes runtime on musl. All it does is make\na Linux-specific symbol available on Linux systems, not just glibc.\n\nOK for trunk and later backports? Perhaps after branching?\n\n .../sanitizer_common/sanitizer_platform_limits_posix.cpp | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp\nindex ea8cc306268c..5872e3396f05 100644\n--- a/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp\n+++ b/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp\n@@ -76,6 +76,7 @@\n #include <sys/vt.h>\n #include <linux/cdrom.h>\n #include <linux/fd.h>\n+#include <linux/filter.h>\n #if SANITIZER_ANDROID\n #include <linux/fs.h>\n #endif\n@@ -516,6 +517,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);\n unsigned struct_seq_event_rec_sz = sizeof(struct seq_event_rec);\n unsigned struct_synth_info_sz = sizeof(struct synth_info);\n unsigned struct_vt_mode_sz = sizeof(struct vt_mode);\n+ unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);\n #endif // SANITIZER_LINUX\n \n #if SANITIZER_GLIBC\n@@ -543,7 +545,6 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);\n \n unsigned struct_audio_buf_info_sz = sizeof(struct audio_buf_info);\n unsigned struct_ppp_stats_sz = sizeof(struct ppp_stats);\n- unsigned struct_sock_fprog_sz = sizeof(struct sock_fprog);\n # endif // SANITIZER_GLIBC\n \n # if !SANITIZER_ANDROID && !SANITIZER_APPLE && !SANITIZER_HAIKU\n", "prefixes": [] }