Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4683164imm; Mon, 17 Sep 2018 19:40:25 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZquNr1pODi4DvnEt6eBD76IhzGRxXXb/9zanJYLB0S8HDaTyY4TUvCYRgcIq1XKECehhZv X-Received: by 2002:a63:4a09:: with SMTP id x9-v6mr24857514pga.34.1537238425827; Mon, 17 Sep 2018 19:40:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537238425; cv=none; d=google.com; s=arc-20160816; b=TI16ODV8oUiJXPAiXZTkr+mudLdjDpCLKMfUn1Q5ffpYLGlLG+Ft6AZ16LmfrqnM/+ tzXa3yKGGxXFi2Un0iJALTWPlLf5yHAA5a29xO/Q2DtghIXJz58fKDW6nTQVJJNgO8r4 iOaGF8r41FqvFE8onzN5IL3YrUjNboL4RZY/u60r88DKZaQI2GuVLma0+nzPYMD4iP7g Q7jbE4KkltKXonYvRYD3I4WDe8m0oQ7LRtxQIe9HWuT0fGxel6qyDVJ7o2gryjNtxIkT l1t3bex2bTLDAbKegCVWS4/XpB2ru/d+cuJuI69jB2Q4FK7UxhcnWSPVmv1P9aNw+IGi w6gA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=uhZtkHSpXX133fPIuV6zCz/NSCnTt1F/5Lk50DIbj/k=; b=XKsSJeBAtJHk+mEHRif841p5jP753ZjJdZG4jMK2UlKdEDFojJm52fBJWOqKkGoAEE ubUnOMMBOiGUHeWhcfJMnyi7HlkL6gXPExmzPYhzCibdDSm8rH8oqU+u49NY/rnv92ao 8rZwoecJIwbdPDO+Mn1Gmh+uwsrLjKMqNKHsk9JP95I5Fe763Kpt+9y0rXT/260cIsQe tgaZ9NpUZwZdnan8nxfzhalC+yZBqOMlQ0cTy4yk+5nRwkcSArk7iGW039gpKkGWGrFN Hzz+JgDyy4Ig7dkvR9mE3FPqhMreYZEgdTWNat5ALxDNV3EblIZESk4BG+ipHyCM2Xj+ jsGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=1nNmqYD9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x3-v6si16134475pln.232.2018.09.17.19.40.09; Mon, 17 Sep 2018 19:40:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=1nNmqYD9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728634AbeIRIKS (ORCPT + 99 others); Tue, 18 Sep 2018 04:10:18 -0400 Received: from mail-qt0-f173.google.com ([209.85.216.173]:34884 "EHLO mail-qt0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726878AbeIRIKS (ORCPT ); Tue, 18 Sep 2018 04:10:18 -0400 Received: by mail-qt0-f173.google.com with SMTP id j7-v6so400152qtp.2 for ; Mon, 17 Sep 2018 19:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=uhZtkHSpXX133fPIuV6zCz/NSCnTt1F/5Lk50DIbj/k=; b=1nNmqYD9fol0fzvqRkqGlTvQHkYf7xKcKpQxY86IhXNHzyE33xZNC34rtMY+cqGTQP vWSunv1xSsssADP4nvwvolMxrZNEb93iBl7leGToPNt4MrNb0oeJ0kvrsiE9hsJX81a2 +d/piJE4c8ym57b8XWQSDNKio73+iJByZ8QP4Q69myyrFJHhhNFVOerX3gqqN9dRs+uR S2P7ilyJmn14RLENoFa37I1/9C6cAzTkvEwL9gz1C4HxPIKl88vWE5KwzWue7OwKryGP 6UxhKI0dRLBEqmg8MAhWwNcyu67id2mPRm4L44pZ2R0vqIVPLbTqa3P1t+26kDZWUnAD AIlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=uhZtkHSpXX133fPIuV6zCz/NSCnTt1F/5Lk50DIbj/k=; b=Hv7a/r4yWhhU6vICzLsNrtrfYiYZ1bbrQP/bUC9qP7ZDzrulDYY78bQbDdkfMa+/X8 4BfCwqK+fqK9XfK7HwKxngJR9cnufXRwMqypeLCEv6jsdMWDkgQR6Mr+PvrciGQzPZfJ sY7vVjefFBnrKRNOkAIVKfg+tOsvCPmlm8SuL2jrvLSUeS2JAybtmsGwrFBAjQhPxrIZ IN7Rvsh45qzLNfFuWX04mw0xD+BOQ6+RJhbge6zxaoNjA+oSm3iWchEquIQVXAs7TBPf aQdDwtNHjIv0FbhY2h/5t6yfdyeCfhvk7a6LkvYNiY5aWi3g4Z52sOI7JfoO8oIbReDr IGTg== X-Gm-Message-State: APzg51AtYlP20xjHBrNHAIt52GWGWqqGIp1HY5rHsQc0X0ILLHl8JUPD TD7nRnh4Wjf7ZsVCVx0DDTisew== X-Received: by 2002:ac8:1699:: with SMTP id r25-v6mr19936647qtj.23.1537238399169; Mon, 17 Sep 2018 19:39:59 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id e206-v6sm8602337qkb.4.2018.09.17.19.39.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Sep 2018 19:39:58 -0700 (PDT) Date: Mon, 17 Sep 2018 19:39:52 -0700 From: Jakub Kicinski To: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo , Daniel Borkmann , Thomas Richter , Hendrik Brueckner , Jiri Olsa , Namhyung Kim , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [RFC/fix] Re: libbpf build broken on musl libc (Alpine Linux) Message-ID: <20180917193952.6709fd1b@cakuba.netronome.com> In-Reply-To: <20180918005256.7uutwda4s3ofoxpd@ast-mbp> References: <20180910172903.GB15516@kernel.org> <20180911122218.0d2eb3f9@cakuba> <20180911121543.GB22689@kernel.org> <20180911212451.hvnyfwyvcs4yojqy@ast-mbp> <20180913183240.GF30969@kernel.org> <20180913185629.su22fnimluoezntg@ast-mbp> <20180917151636.GA21790@kernel.org> <20180918005256.7uutwda4s3ofoxpd@ast-mbp> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Sep 2018 17:52:59 -0700, Alexei Starovoitov wrote: > LGPL-2.1 in the above? Could we possibly make it dual licensed LGPL + BSD? > The rest looks good to me. > Should we take it via bpf-next tree? > If you feel there is an urgency to fix musl build, we can take it via > bpf tree too. > > Jakub, thoughts? you've been messing with strerror last.. Sorry for the mess, I didn't know libc compat is such a pain. I kind of knowingly ignored the existing str_error_r(), as it didn't seem excessively clean. Yet, two months later I have no better ideas.. We could as well switch back to the XSI version, which we used before I needed access to reallocarray() (I mean change the str_error() to be a plain XSI wrapper). Perhaps placing the new helper in libbpf_errno.c file would make sense? The only reason for this separate file to exist is in fact to make use of XSI-compliant strerror_r(). Also, I need to go relicense tools/include/tools/libc_compat.h ASAP too :S