Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp105688ybt; Tue, 30 Jun 2020 15:49:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFbSbSZTNLHnk/Dn1OJkjCzNgA4kASI/Tj3rlrEFq16IYIa3KvmYGSQ1o9Y45ohcZHr16b X-Received: by 2002:a17:906:2304:: with SMTP id l4mr19841506eja.104.1593557392382; Tue, 30 Jun 2020 15:49:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593557392; cv=none; d=google.com; s=arc-20160816; b=CuPINlWPawMV08FO1qHeAYXsKuzdGIQswFvDP9MjYoCv20gP1ScGWKwCitzNsr2/QD 7tdQVoWJomtcYPE9+3mTv6/qZAxvRcsr/CP2jBknUiR7WQKoqafupoNgptX+Tav3HBDv 5TFUKnYvRt1xCg4VcFS5KSAgPZKDg6pEVNv0KsvwenZXO+qc5VJZ3i2muHb2bb5R5BoC zdqi6/9iSL/RSjoNS2QVZVOfNZ9eCtQk00a4rAMPEJJYeZ4c7j24LfMDalX9XBaZO3Vn PTuvCmc5f8DoXB4TeuthZkNcea3lKMXnv/9gbXOfqBfH40LC7je3uRb+WjrSwo5M7N3a 3+7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YepCmL6Zy9anQ1sRlkkP9pvK3CUKQhUxGu+AG0KM++s=; b=uM+k0L+mIgNIwxZs+1VcNe4PiVf8IL5yIc0BFu3wtijtVD+e0sxPKA04GXdZQIeYeq OVcIz4ybekZaAliNyZS0xQ70krRfCJGPiOWefDXzWib7jroB3IhI2eygluWxAZ7WWTtS TLC/DG7KNK+gvCbI+H0RsCuSfuHlb4ze7Mdn2pvedipO9rn3yKi4yAOP52G8uGePxMsX 9GDq3pBP86wyL5AR05/rpYSxE4HcVnUfUi4y7EfxQI7ZwWibeui0VQwP/rDF0KpEfk+2 9SPO1OhgRMTQFLsI3fkD620GoGwlXHwUd0nS67V/v3iB5E3aswshR8XgqbFwto7EUkYL 45+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qyc38uIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lw6si2449464ejb.506.2020.06.30.15.49.28; Tue, 30 Jun 2020 15:49:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qyc38uIz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726142AbgF3Wr2 (ORCPT + 99 others); Tue, 30 Jun 2020 18:47:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725763AbgF3Wr1 (ORCPT ); Tue, 30 Jun 2020 18:47:27 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C5E6C061755 for ; Tue, 30 Jun 2020 15:47:27 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id 67so5999278pfg.5 for ; Tue, 30 Jun 2020 15:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=YepCmL6Zy9anQ1sRlkkP9pvK3CUKQhUxGu+AG0KM++s=; b=qyc38uIzl7LUPoPWYqmsVtcrkFkEFPYPjRsgow45zKixNGo4PHTtBt3ksWSl7XXu71 CS/SEVvVpa91HNNzi4tR6UFsh3Co+aQqR8gsykxuPh8O3Ui2uVT4+bgISieRS0xcGydD dFIAXdd4MqjONAI2uBn8b7SORUq5ecF+ml7P63tc4jYqBxp9CFmRGclfqC5EXBPN5kSM 9TcWO0iCKcrv3x908dRs7nbFwlPDzAlWl/93/VfuBfTRQClV1w3pg3I/FJWrJQ6olYtc t46Wc9+scrXGJ/C7pmnbxLUVwaqKUlLbVmPYaZs/ghcNWPysFWEhxpJz7zMqKmJrRVIY XoLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YepCmL6Zy9anQ1sRlkkP9pvK3CUKQhUxGu+AG0KM++s=; b=hHMHvgeydyhN2RXbz2tevkicwd8PAeYTginpW6fSjUXQ4gNjlVnS5KP7n8oTNRB9H6 D4ZhtXxu7FBBu7KoqIb7/yVQR8EfompQylYH/i+3KFv5g4q1bF+1uAf/YzXdX0RRUgaD sZW/UekskXujtXejnn6jG9DdMSO7aVAA9soAOPbCvbN+NtZ2b17WLrnLyLEb+L5NyW06 tVzP6DVCMtDmxhrGq3lvBDl8cLGsHpcbCxe3z80/uBd17eqDFi7HuOV7xIUKmUs5zk2T o822x7IzRObqOuw2aYtiXrDYHPVR4OpbmTntd5wMuwBjvl+sTTyOeji5F93mUgFgFVZw rJog== X-Gm-Message-State: AOAM531RFWbmsnaWsrOlWngoWitlBsfxCxzYi3HzIBVSV7ua6Jb48LAy vyuUYCn3nmPX54DMPIEQeWls6vTSL7hQQ49Sl5fwnA== X-Received: by 2002:a63:4c08:: with SMTP id z8mr16421730pga.201.1593557246515; Tue, 30 Jun 2020 15:47:26 -0700 (PDT) MIME-Version: 1.0 References: <20200624212319.403689-1-ignat@cloudflare.com> In-Reply-To: <20200624212319.403689-1-ignat@cloudflare.com> From: Brendan Higgins Date: Tue, 30 Jun 2020 15:47:15 -0700 Message-ID: Subject: Re: [RFC PATCH] Revert "um: Make CONFIG_STATIC_LINK actually static" To: Ignat Korchagin Cc: Jeff Dike , Richard Weinberger , Anton Ivanov , linux-um , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 2:23 PM Ignat Korchagin wrote: > > This reverts commit 3363179385629c1804ea846f4e72608c2201a81e. > > This change is too restrictive. I've been running UML statically linked kernel > with UML_NET_VECTOR networking in a docker "FROM: scratch" container just fine. > As long as we don't reference network peers by hostname and use only IP > addresses, NSS is not needed, so not used. In other words, it is possible to > have statically linked UML and UML_NET_VECTOR (and other networking types) and > use it, although with some restrictions, so let's not disable it. > > Additionally, it should be at least theoretically possible to use another libc > (like musl, bionic etc) for static linking. I was able with some hacks to > compile UML against musl, although the executable segfaults for now. But this > option prevents even the research to be done. The reason that we removed support for static linking when these networking options are enabled is because gcc doesn't support loading NSS when statically linked, which consequently breaks allyesconfig for UML under gcc. That is still the case with your revert. I fully support the goal behind what you are trying to do. However, I do not want to see this patch accepted unless it is accompanied by an alternative change that still allows UML to compile under allyesconfig. You said that in the current state, researching a solution is possible? Can you not research a solution with your patch applied to your own branch? Cheers