[{"id":3680031,"web_url":"http://patchwork.ozlabs.org/comment/3680031/","msgid":"<aefK2iqHI24HTmkW@tucnak>","list_archive_url":null,"date":"2026-04-21T19:07:06","subject":"Re: [PATCH] libsanitizer: fix __sanitizer::struct_sock_fprog_sz\n availability (#183411) [PR124248]","submitter":{"id":671,"url":"http://patchwork.ozlabs.org/api/people/671/","name":"Jakub Jelinek","email":"jakub@redhat.com"},"content":"On Tue, Apr 21, 2026 at 07:51:59PM +0100, Sam James wrote:\n> From: Marian Buschsieweke <maribu@users.noreply.github.com>\n> \n> Cherry picked from LLVM commit dabd8cc2334917272fe73b70626fd3a5f9e63cf5.\n> \n> `struct sock_fprog` is not provided by glibc, but rather by the linux\n> headers (`#include <linux/filter.h`). It seems that glibc due to an\n> implementation detail internally includes `<linux/filter.h>` somewhere\n> other C libs (e.g. musl) do not, which previously caused build failures\n> and let to disabling `struct sock_fprog` on non-glibc Linux systems.\n> \n> This adds the missing include and provides it again for all Linux\n> systems regardless of C lib.\n> ---\n> Backport from upstream LLVM. Fixes runtime on musl. All it does is make\n> a Linux-specific symbol available on Linux systems, not just glibc.\n> \n> OK for trunk and later backports? Perhaps after branching?\n\nOk for trunk now.\n\n\tJakub","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\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=RWbN6lnr;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.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\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=RWbN6lnr","sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com","sourceware.org; spf=pass smtp.mailfrom=redhat.com","server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.129.124"],"Received":["from vm01.sourceware.org (vm01.sourceware.org [38.145.34.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 4g0XLy1LMfz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 05:23:04 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id D6BA14BA901A\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 19:23:02 +0000 (GMT)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 20A8E4BA2E3E\n for <gcc-patches@gcc.gnu.org>; Tue, 21 Apr 2026 19:22:35 +0000 (GMT)","from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-587-gOKiPNlfMO2sZV1vdWk4Wg-1; Tue,\n 21 Apr 2026 15:22:33 -0400","from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\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 mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 185D41800451; Tue, 21 Apr 2026 19:22:32 +0000 (UTC)","from tucnak.zalov.cz (unknown [10.44.48.12])\n by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id 9E87719560AB; Tue, 21 Apr 2026 19:22:31 +0000 (UTC)","from tucnak.zalov.cz (localhost [127.0.0.1])\n by tucnak.zalov.cz (8.18.1/8.18.1) with ESMTPS id 63LJ77ft943627\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Tue, 21 Apr 2026 21:07:07 +0200","(from jakub@localhost)\n by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 63LJ76xQ943626;\n Tue, 21 Apr 2026 21:07:06 +0200"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org D6BA14BA901A","OpenDKIM Filter v2.11.0 sourceware.org 20A8E4BA2E3E"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 20A8E4BA2E3E","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 20A8E4BA2E3E","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776799355; cv=none;\n b=XyJusiSP/mYw3kU88NJrZdhTxPZtgmX5+HWWyXWTX/gFaD6Mdcqcbig7qXHEomfyXyYFzshwsUYUqQvPWhFqb/75U3IBLMxegj8UYx4uo+X1Ge8K7jA+gifvWoZr4euSqW174rXdpa4thOiw1JsWmqShBYQYzooPRvIHAHAMYko=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776799355; c=relaxed/simple;\n bh=ZO1nBdgOXlUY5KqzjZSsHMvX9EiAcXICjiW/Cxwzvrg=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=nbEUYWcvmjfAO5LSbrgIJLJsJYPkRKjrTXROGwIWvRaTFSwg7EIyPVNPwMreX8jflUOFRpXFiQ5MknBlG4M1YgW+Gdi7qgl6jZwywwsssQBVvVUcJDGvMptv6XcohT0VrWu7/keV3YlwyxxL36mxAaxc9cHTQE61AtPAMXsCqww=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1776799354;\n h=from:from:reply-to:reply-to:subject:subject:date:date:\n message-id:message-id:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type:in-reply-to:in-reply-to:  references:references;\n bh=3NIfaRND9nxeut8o2cTnowLTx6+C5oBrWUH4n0+AmJo=;\n b=RWbN6lnrC56LA9chWtqOJNyTLBFOn+9kb4BhF/Z0ise1A5XLj+b9oPFjAgsIKhY1oXjzS1\n qNWo/s0BBb+COwkW072FyAa0VwUIFBjtSfXc4wvS9JvEMHaGXR90KumRb2rSMInHmD5rBD\n Y+PxJTvprqcP9jYMvoaChpsFwn9JEdQ=","X-MC-Unique":"gOKiPNlfMO2sZV1vdWk4Wg-1","X-Mimecast-MFC-AGG-ID":"gOKiPNlfMO2sZV1vdWk4Wg_1776799352","Date":"Tue, 21 Apr 2026 21:07:06 +0200","From":"Jakub Jelinek <jakub@redhat.com>","To":"Sam James <sam@gentoo.org>","Cc":"gcc-patches@gcc.gnu.org,\n Marian Buschsieweke <maribu@users.noreply.github.com>","Subject":"Re: [PATCH] libsanitizer: fix __sanitizer::struct_sock_fprog_sz\n availability (#183411) [PR124248]","Message-ID":"<aefK2iqHI24HTmkW@tucnak>","References":"\n <6569b8bb96b90b70100df28e6921e6319487f83d.1776797518.git.sam@gentoo.org>","MIME-Version":"1.0","In-Reply-To":"\n <6569b8bb96b90b70100df28e6921e6319487f83d.1776797518.git.sam@gentoo.org>","X-Scanned-By":"MIMEDefang 3.0 on 10.30.177.12","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"Ap3BVOoCeE8hq7qmxipBWUtg9ZJ51V3S1oV6P0IRfg0_1776799352","X-Mimecast-Originator":"redhat.com","Content-Type":"text/plain; charset=us-ascii","Content-Disposition":"inline","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>","Reply-To":"Jakub Jelinek <jakub@redhat.com>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"}}]