Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4745474imm; Mon, 17 Sep 2018 21:18:37 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda7ghP9tInDTAEnkcEJVRKI+XoSDVxwb06/6yuDihtTcO/+JKCXoeE+rxpeCejSktwH+mMX X-Received: by 2002:a17:902:654b:: with SMTP id d11-v6mr27491729pln.8.1537244317756; Mon, 17 Sep 2018 21:18:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537244317; cv=none; d=google.com; s=arc-20160816; b=kCX0TpuRjaWrErkroWHqYNsYs0xDIvcO7PcH7w/+sMf710rPqk1GsS+eyhqeZDqILc XUi+7LDDEJNaR0/bHDS+0EUsAit+EZzgaVFohdP2PvCFXjGgjPesae4OeziK/1dKdZ2H Rdwpwic3SHJS3S6284P8sZVa76DhsDah/ZaMlHGtKy2iC7Sok/evnYaTzdrOZ02TPaIv /CNgW8GEQt0IHRcILBkJMqTSl4RrHx44oP5XeegMjOBrFULfgE/c0dil1uv0UJJE60w8 0Ua3067N0Ec60laF9bi/YX6eeU8A/85u3A/NIxDNtJmZBlBaOpdnrA7OGjYHjfEU5lL2 6+Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Tdb8BaFLjnJKnep7iQRDeNe3brGvkSme9uGugiTMsyU=; b=ARo/QwYMfIlNRGbIU28NxFR7q/X0htZU/PPaVSOQil6VNeIMVZFfH+KYmqvkbcHH8b cVVLJ3uqTQaCTju0ZmgE+hNkJ3Etrk3dmdUKJm1sX5DO2v+wADl4/cGpBLnQFiw3h6aV dZ+iEdXjLO7hZVC4Yx9zTRAcaWyU1+2Db8Lg52gxWrU7eivAVsoG0oZAY7jbEgBWAYRh gLo7rBnj5ClH32r6i5fBr2x6R1melO31IrcbZkGVw4lhOioEC2TIOL2IeaGRDHZ5yrQn Sr3vQ4qtH6n7jz62mS6rTVnUcpKzV+sbbGrAwlsAHNotMDP+Hy0NoQ12wzIJPEUe2z0f ugfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HK6twWL0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 35-v6si16770313pgz.453.2018.09.17.21.18.09; Mon, 17 Sep 2018 21:18:37 -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=@gmail.com header.s=20161025 header.b=HK6twWL0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727471AbeIRJsp (ORCPT + 99 others); Tue, 18 Sep 2018 05:48:45 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39892 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbeIRJsp (ORCPT ); Tue, 18 Sep 2018 05:48:45 -0400 Received: by mail-pf1-f196.google.com with SMTP id j8-v6so342611pff.6; Mon, 17 Sep 2018 21:18:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=Tdb8BaFLjnJKnep7iQRDeNe3brGvkSme9uGugiTMsyU=; b=HK6twWL04sqHeB2s44D00uDR4wRnx3LuHd5x9If9Q3WyS1JEyYIDwSaMYWBGYdVSG2 s1b7t4X5tj7p+6OMDT4yE/506yzm9fLCGA6UYQner0lKL1VOWDzOL+lPDqhntQIAwt7f VqweTnkq6ppTlfJVYRXQ3EngK64KX3bOdhRIOiyUeP513g1Kar2S1b0zWA5BF5dCzUvh bTCipi4rfCZZSVHfYzSO6EokDpRcaO3cvj9yXcg0O6phI+4b3+L0tdoBAClOER51/csi 0MTmq73kcfnUvqm8eDMjbLG3mDPVh1bSpSWTUvMOL8gBpX/APFKPhGgcYPlvKqEaxhGj kINQ== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Tdb8BaFLjnJKnep7iQRDeNe3brGvkSme9uGugiTMsyU=; b=rdeMoE1xG/FnKwwvpYZXTEMNbjaqQkogpAiqmvhvvtd35+u3vI3hMxLTOGidEQ8yIS K1M4ssJ7GjnhDG3FD1kDaoWBonSQZL7aG4U0ow03rhXNmydtC+9gfj0dj/g8f3HhjwOg xpmK60lVZpmEVqwdriRh8LRh+YWRJLt/MWyedSjm9C/iseXodZbuTg8XVyeIoCtuRn2t +Ndw6Vco00rkYeZI6xM13LIlofs2eCmMqvKpSRd8KKO/NzpVpqf4Nh6phG7TGuGSkGGL L2H3N1702diStO7qxY42wUabSF7mfeIjIgUtengv5TQpMf65nutQCKjT8GAhv88yWreG m7Fg== X-Gm-Message-State: APzg51AOExB3BNO/6E1MjCg+cBYXcIdtofKGCgUgxUbKby4vcoV0h+kF NkJjkHPzq1oLI3ZO9pjAJuA= X-Received: by 2002:a63:4306:: with SMTP id q6-v6mr26490912pga.181.1537244282981; Mon, 17 Sep 2018 21:18:02 -0700 (PDT) Received: from ast-mbp ([2620:10d:c090:180::1:da33]) by smtp.gmail.com with ESMTPSA id l84-v6sm28767487pfg.3.2018.09.17.21.18.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Sep 2018 21:18:02 -0700 (PDT) Date: Mon, 17 Sep 2018 21:18:00 -0700 From: Alexei Starovoitov To: Jakub Kicinski 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: <20180918041758.rruwsw52jxpxh6bk@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> <20180917193952.6709fd1b@cakuba.netronome.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180917193952.6709fd1b@cakuba.netronome.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2018 at 07:39:52PM -0700, Jakub Kicinski wrote: > 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? that's a separate discussion. let's not mix it up with this fix. > > 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(). that's a good idea. libbpf_errno.c sounds more appropriate to me as well. > Also, I need to go relicense tools/include/tools/libc_compat.h ASAP > too :S argh. an oversight. pls send the patch.