From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 968C62EC83 for ; Fri, 6 Sep 2024 14:45:49 +0200 (CEST) Received: (qmail 18151 invoked by uid 550); 6 Sep 2024 12:45:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 18116 invoked from network); 6 Sep 2024 12:45:44 -0000 Date: Fri, 6 Sep 2024 08:45:35 -0400 From: Rich Felker To: jane400 Cc: musl@lists.openwall.com Message-ID: <20240906124533.GU10433@brightrain.aerifal.cx> References: <20240906114930.17884-1-jane400@postmarketos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240906114930.17884-1-jane400@postmarketos.org> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [musl] [PATCH] sys/prctl.h: use linux uapi header On Fri, Sep 06, 2024 at 01:49:30PM +0200, jane400 wrote: > The file also includes backports until 2023 for older kernels. > > There are no exisiting UAPI guards in the kernel for this header > and as complex projects like systemd sometimes use both, it was > easiest to just use the defintions from the kernel directly instead > of copying in them. This way we're never redefining stuff in end-user > applications and get the benefit of using the latest API that is > available on this system. Using both is not a supported usage. This comes up in multiple places other than sys/prctl.h, like lots of network stuff, and the applications doing it just need to be fixed. Generally we do not use uapi headers at all from musl, and offer a working compilation environment without uapi headers installed. This would also be a breaking change if we ever needed to call prctls internally from libc, as then building musl itself would depend on kernel headers.