Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5126950ybl; Tue, 10 Dec 2019 00:35:37 -0800 (PST) X-Google-Smtp-Source: APXvYqwam28vRlPTbsAzPdPUn4i74AkCzaxFlL6L3g/ycIWJjgGNjwYTU49skbNz2XYjgNuJaYf+ X-Received: by 2002:aca:a902:: with SMTP id s2mr3088435oie.5.1575966937519; Tue, 10 Dec 2019 00:35:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575966937; cv=none; d=google.com; s=arc-20160816; b=wv/YFkuuFrUHNeUpV2tAZe1yJQNsvxbkU4toI6LJ1VjEp4srIVPgWROF3C6QroiCKa GB66hm+coFt7taSF0tpowoI5OkeGpNoIb3pv3LOUa2IO2BBd2nwTgZnY/BBVCPJAk0lx u3IN6jsNbrn+5i3bj4gjyqwjKPMMrnj04l0R23c6LkBoDfdooz+M+Y4hddMLh5rkGK8V lmG7LOHZVjXd6yoEiK678U8VatP8Ku9DCg730Z4NNx7ikW64P+CD0TSXXWBA5t9fDGbC vq5zHy5Ixm5QSV8QKGZJ7gGQM+eoyplg6sH0dHhHU3V+qjQh+VEMssFQcbe06I8t/g8r +BRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=E11ZgcewIe6chSurlcIWJAdMFYQsPkq/S9v2g3pZpJU=; b=JSJKdPhdhIstU4oWpHFxuwcmeChMo8kSTarkpDu54BjX+/WmI6WkFoBVU3rHQiLy/f fWkM6ivMx4OTbx9yLIgcH8Dh2el4fa+V9eKiURzceN97EUDJIcHeFgP1wAMlLprEo6q8 n65EXz7Nmd++ISpVub3kZR9ymMZySEe6WJ+5uknAp+OUaCEmWKcibTizAV/FTbsYanOc lBX/v6x6K92V4MlGw5Z7Vl4Vf+LUIMzVH/kTg0wssR/mUnaoJmIAV8P/lsWYB2S0sciV hgkvbkY8VM8od+Nz07xrTK4YnVUUxJYQYLwnHM/4W5IUvdkOJaBi7qrUoWs1QWIxwRom EPaA== 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 m26si1423078otn.307.2019.12.10.00.35.24; Tue, 10 Dec 2019 00:35:37 -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 S1726987AbfLJIeb convert rfc822-to-8bit (ORCPT + 99 others); Tue, 10 Dec 2019 03:34:31 -0500 Received: from lithops.sigma-star.at ([195.201.40.130]:55286 "EHLO lithops.sigma-star.at" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726750AbfLJIeb (ORCPT ); Tue, 10 Dec 2019 03:34:31 -0500 Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id DE3616126B4E; Tue, 10 Dec 2019 09:34:28 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id q_Z9Gqszl3oz; Tue, 10 Dec 2019 09:34:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 78A126126B50; Tue, 10 Dec 2019 09:34:28 +0100 (CET) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id qA8_bD_Ce_Zd; Tue, 10 Dec 2019 09:34:28 +0100 (CET) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 573736126B4E; Tue, 10 Dec 2019 09:34:28 +0100 (CET) Date: Tue, 10 Dec 2019 09:34:28 +0100 (CET) From: Richard Weinberger To: anton ivanov Cc: Brendan Higgins , Johannes Berg , Jeff Dike , linux-um , linux-kernel , davidgow Message-ID: <392256369.112046.1575966868218.JavaMail.zimbra@nod.at> In-Reply-To: <346757c8-c111-f6cf-21d2-b0bffd41b8a8@cambridgegreys.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> Subject: Re: [PATCH v1] uml: remove support for CONFIG_STATIC_LINK MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF68 (Linux)/8.8.12_GA_3809) Thread-Topic: remove support for CONFIG_STATIC_LINK Thread-Index: ya1XNgp+8/P69KzagcMtEIkLZe+uUw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- Ursprüngliche Mail ----- > Von: "anton ivanov" >> LIBC itself tries to dynamic load stuff internally. >> >> It is beyond our control and it claims that it will work only on EXACTLY >> the same version of libc library as the one used for static link. >> >> So you get a not-exactly static binary which is not properly moveable >> between systems. >> >> This is specifically in the name resolution, etc parts of libc which all >> of: pcap, vector, vde, etc rely on. >> >> Another alternative is to turn off static specifically for those. >> >> 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. glibc tries to load NSS and NIS stuff, yes. But what is the problem? The goal of CONFIG_STATIC_LINK is that you can run UML without dependencies, this used to work since ever. Lately it broke, but hey, let's fix it. I have tons of old statically linked UML systems on my disk which I can just run because they don't depend on specific libs. Thanks, //richard