Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5141104ybl; Tue, 10 Dec 2019 00:56:44 -0800 (PST) X-Google-Smtp-Source: APXvYqymWH69yaPraZEXiwDlrkE1btwRIbBxbGYEL35BqldRdKdqOjE0vEoDhdqd6HayKiKJliUj X-Received: by 2002:aca:4c9:: with SMTP id 192mr3212726oie.105.1575968204753; Tue, 10 Dec 2019 00:56:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575968204; cv=none; d=google.com; s=arc-20160816; b=pLtc5JFVksUol4q+wkxYnKyWkL5jvKrr+ayo+AtFe7UjQxXrQIf58+R434eJSSFm9y RmYjR0kbh9iTlVX47KkWMoNxNsJnRToVpmm3n6CvMrro20agM5+fd7YB945tBf8bPJWR 9HlNZxSBRFNKDL70TFNOhRTOymt4o+p6NfDmKPsfW5Vu7OKA5HBLESgDPoTzjessEYLt FNos06yZ1VB9R1GXJzmSorHJFF6ghAp4GJMXImW44VhKSvfjHu50wWY+HexFejBoyEix Yul3UJYjo2VRCZZpRx7iQ2SnY2NEorCc0Q/2NPQMJ8lw4PKKvxi6kERZxlR2PQE2g9S7 iNhg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=RJK6K1M5Cp/fJ7CYidmejg2bDY4KxxjABDbSEJbR8pQ=; b=VnP/pT/kBBXyyNwqVwQNrcK/PoZbdpN6+drpUknPr865JFPfrP5p+dOAMYHd2/gQvI 6N8oP2NwW7BN2FuyKbhApeBF9l0n6pw4fi/uVWlw3T7N/hHvcS7WxWUoH1N7Dx9GLwH9 6t1pM/d/tta3EdLupx7AqSty4E3Gwinkv3V5Pa5fHPbrCORNs8PXyBO/8MHI9OejD07v tirwdwC7ovbhi2GlOzR9QpNkBBbGD3MsndYsnoLMeE3NhEXnN95lxfhtvgg2H+e6ZNB7 pCvGDE/JSn6DsjiB83zXh6VY78DVoK0L/yXsghphX1JqH12VnDmOXQ+8dz+5vnkI4nb6 N/cg== ARC-Authentication-Results: i=1; mx.google.com; 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 l8si1634446otq.75.2019.12.10.00.56.30; Tue, 10 Dec 2019 00:56:44 -0800 (PST) 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; 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 S1726949AbfLJIyu (ORCPT + 99 others); Tue, 10 Dec 2019 03:54:50 -0500 Received: from ivanoab7.miniserver.com ([37.128.132.42]:50198 "EHLO www.kot-begemot.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726255AbfLJIyu (ORCPT ); Tue, 10 Dec 2019 03:54:50 -0500 Received: from tun252.jain.kot-begemot.co.uk ([192.168.18.6] helo=jain.kot-begemot.co.uk) by www.kot-begemot.co.uk with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iebI8-0001cm-5Y; Tue, 10 Dec 2019 08:54:48 +0000 Received: from jain.kot-begemot.co.uk ([192.168.3.3]) by jain.kot-begemot.co.uk with esmtp (Exim 4.92) (envelope-from ) id 1iebI5-0005XO-Rv; Tue, 10 Dec 2019 08:54:47 +0000 Subject: Re: [PATCH v1] uml: remove support for CONFIG_STATIC_LINK To: Johannes Berg , Richard Weinberger , Brendan Higgins Cc: Jeff Dike , linux-um , linux-kernel , davidgow@google.com References: <20191209230248.227508-1-brendanhiggins@google.com> <1406826345.111805.1575933346955.JavaMail.zimbra@nod.at> <2eecf4dc-eb96-859a-a015-1a4f388b57a2@cambridgegreys.com> <346757c8-c111-f6cf-21d2-b0bffd41b8a8@cambridgegreys.com> <7da5a054f533eabf2ffa110c236f011bf9d23954.camel@sipsolutions.net> From: Anton Ivanov Message-ID: Date: Tue, 10 Dec 2019 08:54:45 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <7da5a054f533eabf2ffa110c236f011bf9d23954.camel@sipsolutions.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -1.0 X-Spam-Score: -1.0 X-Clacks-Overhead: GNU Terry Pratchett Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/12/2019 08:28, Johannes Berg wrote: > On Tue, 2019-12-10 at 07:34 +0000, Anton Ivanov wrote: > >>> Further to this - any properly written piece of networking code which >>> uses the newer functions for name/service resolution will have the same >>> problem. You can be static only if you do everything "manually" the old >>> way. >> >> The offending piece of code is the glibc implementation of getaddrinfo(). >> >> If you use it and link static the resulting binary is not really static. > > However, this (getaddrinfo) really only applies if you use the vector > network driver, if you e.g. use only virtio then this particular problem > isn't present. > > Note sure if we implicitly call getaddrinfo from libpcap, but again, > that's just a single driver. > > IOW, we could just make CONFIG_STATIC_LINK depend on !VECTOR && !PCAP? +1 We also need to add VDE (wonder if anyone still uses that). We will need to add XDP when I finish it. If memory servces me right, libelf or libbpf has the same lovely features as NSS. This is not just NSS - it is creeping in with a lot of new libraries. Sometimes the libc guys fix that. For example, librt was like that when I started working on epoll and vector IO. Sometimes (as in the NSS case) they don't. So the static build containing those will be broken and we are better off making it conflict for those options. > > johannes > > > _______________________________________________ > linux-um mailing list > linux-um@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-um > -- Anton R. Ivanov Cambridgegreys Limited. Registered in England. Company Number 10273661 https://www.cambridgegreys.com/