Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1295354ybl; Fri, 6 Dec 2019 14:52:06 -0800 (PST) X-Google-Smtp-Source: APXvYqze87dPZs5zijWj7BhjtDMNsFNR1kJhZuSLR5MmnQ2r1fSv4nl5HveBZ2jNnfNnI6AfwzTI X-Received: by 2002:aca:f516:: with SMTP id t22mr15256764oih.34.1575672725956; Fri, 06 Dec 2019 14:52:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575672725; cv=none; d=google.com; s=arc-20160816; b=FDIgQLiOIzLOm8Vn527yarhJ1xBHgSEP88owmxKWArhDcEMC1VNPlYeaLc3N+U2l8M PiRMnYbLdWK1no1y5izbF/Vgt/W5SIdBY/xFhPFONE8vANxEr/N/HzVf+b89QI0CMo6M 94mVf7JA3KRsJ7itK5pgEXIggB2/bTHgSVoRxnXh2th/uyU+9jozF8qsxxsvhX7v5331 +1ZKkXZXRJRfgn/HsMKluoFQCtIFy9Pw2ekzphPEQWXwZywsfsEJBSNnGaoDdJsMLNau wnLEpra9GcXebvHqt1LkTEX0lO4nAX+W77gTfoNmMgB/e3HJGRMgzs34bvTZ78PgAq9w 9tOw== 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=0riUqAQ9KJmR0KLv8Y1JmTN4AxBmbDidTAabyI8WLM4=; b=y6q/ebi2nnN0Z+ls9rlf85gOsWxS4RPSFcgnR7WHYx3AUUMv2Gc9rwt/psBFZHLzWp A1hDB0TfTY73kObjFz6tZ9IJIkKEKyaWrWwRXDHjOvxNB3qBazgWuFL0fdEjC56upxiU 4n57t0qgvXNxeV04GYnv46TJZ06GJSw2HgzIQDp8V9Mk/nVDspIH3VkmDFL3KMtriVg0 dG/drWOhIWX/8RFge9DLS0Xiwj9Kf/a8YYzY4Ij97Myo06dzgMeTx52PlzYZA+qoY7lp Ig/gumDKC6HdAlCdgOt0nDo04NcwACbCcY5DSq0OGaMy5dmPVd0qzKby0j3O/hR2viLq FqzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CvjmPGaH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si7912906ota.299.2019.12.06.14.51.40; Fri, 06 Dec 2019 14:52:05 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=CvjmPGaH; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726395AbfLFWuI (ORCPT + 99 others); Fri, 6 Dec 2019 17:50:08 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41124 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfLFWuI (ORCPT ); Fri, 6 Dec 2019 17:50:08 -0500 Received: by mail-pl1-f193.google.com with SMTP id bd4so3321954plb.8 for ; Fri, 06 Dec 2019 14:50:07 -0800 (PST) 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=0riUqAQ9KJmR0KLv8Y1JmTN4AxBmbDidTAabyI8WLM4=; b=CvjmPGaHYt7Fk59w4IG3gtg0H9jfBUJVTLvrLXYNwz4/vYsyQCo/BqVFbHMBCdohie m1wjjW1JIZrxT+rnv7yLmtkImyIg8S3FR4+/tTZHVh8rx5vH/OnbKrjhrEeh8s5lbga+ wcEAeIvHfLLKUZzgERgHazKD/Fv0y4D54zAo0Yx08lw89jvflreRxCzTt8doK3NjGW4Q sJV3nNzOfX9/WTfasTD9cp+KQRGRIG3smUZFkjF71SFrlpTzMmFPjWFUdLo1ae+BdoP0 LsrWqzgOKTnDXeuoLdREH0M3rq6+DTRfPjXrPYubssoe+l+m59gmOpRwDv4j+cTH+X5e 1a4Q== 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=0riUqAQ9KJmR0KLv8Y1JmTN4AxBmbDidTAabyI8WLM4=; b=TJjMt7f4HZ6iRDjA6wSZ79furNxrnyr+ZJCNEbpmmCKYzVeau5oWIVd8hnGuicwEy8 jz7UymljZtU3eAstVV1p9extfv0ILbolM6rmorpBPs+pxHBmTv28n9/P0RytYAVuR5M+ C5ZthcH5/yjQ2KQammyJ+/pzXzogFsNAVocVaJcdUcWVM2ttqPlG4/cqNOa6HS/sVYr4 oMhCzLYUkZ9dxVpbI3SQuydBWkjVv8m8lNeIC0rfGfDjG/PNzhuGWd+C+lYbwc43mz0M MomAxEKnIzw7DSnNeu2s8DRWbG4S35L0vY5/qHv6qRaIIz1k/ut27S5FENQxYqbwWY07 YDFQ== X-Gm-Message-State: APjAAAXMn6SpnTrT/7+2fio4cXP6kynHl5yAK8jchkr3ZRRttTbPWzpQ PfBXo3FcTCRDKZRvKRWpMMlscn3JxljyLwbov+6upA== X-Received: by 2002:a17:902:7c84:: with SMTP id y4mr16526668pll.297.1575672606927; Fri, 06 Dec 2019 14:50:06 -0800 (PST) MIME-Version: 1.0 References: <20191206020153.228283-1-brendanhiggins@google.com> <20191206020153.228283-3-brendanhiggins@google.com> In-Reply-To: From: Brendan Higgins Date: Fri, 6 Dec 2019 14:49:55 -0800 Message-ID: Subject: Re: [RFC v1 2/2] uml: remove support for CONFIG_STATIC_LINK To: Anton Ivanov Cc: Jeff Dike , Richard Weinberger , johannes.berg@intel.com, linux-um@lists.infradead.org, Linux Kernel Mailing List , David Gow 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 Thu, Dec 5, 2019 at 11:41 PM Anton Ivanov wrote: > > On 06/12/2019 02:01, Brendan Higgins wrote: > > CONFIG_STATIC_LINK appears to have been broken since before v4.20. It > > doesn't play nice with CONFIG_UML_NET_VECTOR=y: > > > > /usr/bin/ld: arch/um/drivers/vector_user.o: in function > > `user_init_socket_fds': vector_user.c:(.text+0x430): warning: Using > > 'getaddrinfo' in statically linked applications requires at runtime the > > shared libraries from the glibc version used for linking > > > > And it seems to break the ptrace check: > > > > Checking that ptrace can change system call numbers...check_ptrace : > > child exited with exitcode 6, while expecting 0; status 0x67f > > [1] 126822 abort ./linux mem=256M > > > > Given the importance of ptrace in UML, CONFIG_STATIC_LINK seems totally > > broken right now; remove it in order to fix allyesconfig for ARCH=um. > > > > Signed-off-by: Brendan Higgins [...] > The ptrace check was discussed on the list this week - it is the enable > constructors commit in 5.3-rc1. > > A patch reverting it was submitted by Johannes yesterday. > > I did not try disabling/enabling static link - good catch. > > Otherwise, I agree - static link should probably go. > > Adding PCAP throws even more warnings and the AF_XDP work I have in > progress generates a whole page of them. Considering that the resulting > executable is not really static there is no point keeping the option. Sounds good. I will send this out again as a non-RFC patch.