Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7353760ybp; Wed, 16 Oct 2019 07:31:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeHebt21tXDltfqGn5taRT6rJfW28qX3S09V6yQEBtMGfLEyR8p8Che2OXc/MXmwVVNzeZ X-Received: by 2002:a50:fc9a:: with SMTP id f26mr39046486edq.217.1571236288988; Wed, 16 Oct 2019 07:31:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571236288; cv=none; d=google.com; s=arc-20160816; b=feYF5oZNVvNdaDCd73QLK8D7yW5BdxhQpLM27qL1RLR3B9Gnterq7mLFyxluS42wrm JcFhKYFGtXN0wWp/yeazkYT43MeMxhHmX3SOAWRVakpA+aP+hisFNyqFGVpmsicw38rJ K79miATkjLkIXLF7zPkAxdwRP2gnkv2dKkEeffGDGSmfqZj4zhuS759JHaSLuxoPPx4h 5zN/1LAgua6jvdwNCqpUDmMAQwSiULS0Sze6SAHWyIXDhITy6afk+XGnFIhwDkusT0xS PzTuOCH25PnXansYSYeaVQGlPC41G1hvnMEcXnYhcSJPJtPcPuzbfYz6czEDmC54EliF WEgg== 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=5zpmnpzfTHhkuzBNQXED3FTsifuFYMmJZB12aFkMhhE=; b=kypG+vXG9x++cVot+WBvwLK5VKSGV363s6QNg9JUj8Zu5TFr56aUrDftCD6WxBUAmB ujAP2pkyX/8N+dDs4zqZoC7z8hru6ym5hL69xjhvWgGfnqzTCIAT+KRPYDkkfLo6A7iH J0D3dFThI3tMHeupTuoSMKb6tVClb56QtUPLa7ITaPbuqgnKfJlJXizqaq7QixQsxpDv 3AMEv0oYSr4VmNJpXQsvL3+nkFbUQryZ4WDL2hNAKj6ZYYKsMHsun/qMwr7MpRbVKyFr 1H9qYteoTiBUvFl0CuqO0yg17OpNq8y5uDuCRjds69efEHKFSdN79bhCd/1kZ0GSBVI9 Q2uQ== 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 p15si16461253eda.294.2019.10.16.07.31.05; Wed, 16 Oct 2019 07:31:28 -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; 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 S2392500AbfJPKmr (ORCPT + 99 others); Wed, 16 Oct 2019 06:42:47 -0400 Received: from foss.arm.com ([217.140.110.172]:35746 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389345AbfJPKmr (ORCPT ); Wed, 16 Oct 2019 06:42:47 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 930B328; Wed, 16 Oct 2019 03:42:46 -0700 (PDT) Received: from [10.37.9.204] (unknown [10.37.9.204]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B02813F6C4; Wed, 16 Oct 2019 03:42:39 -0700 (PDT) Subject: Re: [PATCHv7 01/33] ns: Introduce Time Namespace To: Thomas Gleixner Cc: Dmitry Safonov , linux-kernel@vger.kernel.org, Dmitry Safonov <0x7f454c46@gmail.com>, Andrei Vagin , Adrian Reber , Andy Lutomirski , Arnd Bergmann , Christian Brauner , Cyrill Gorcunov , "Eric W. Biederman" , "H. Peter Anvin" , Ingo Molnar , Jann Horn , Jeff Dike , Oleg Nesterov , Pavel Emelyanov , Shuah Khan , containers@lists.linux-foundation.org, criu@openvz.org, linux-api@vger.kernel.org, x86@kernel.org, Andrei Vagin References: <20191011012341.846266-1-dima@arista.com> <20191011012341.846266-2-dima@arista.com> <80af93da-d497-81de-2a2a-179bb3bc852d@arm.com> From: Vincenzo Frascino Message-ID: <5f4c2f29-ca68-b19c-017f-d23730f6e871@arm.com> Date: Wed, 16 Oct 2019 11:44:38 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/16/19 11:39 AM, Thomas Gleixner wrote: > On Wed, 16 Oct 2019, Vincenzo Frascino wrote: > > < Trim 250+ lines ( 3+ pages) of pointlessly wasted electrons > > >>> --- a/init/Kconfig >>> +++ b/init/Kconfig >>> @@ -1096,6 +1096,13 @@ config UTS_NS >>> In this namespace tasks see different info provided with the >>> uname() system call >>> >>> +config TIME_NS >>> + bool "TIME namespace" >>> + default y >> >> Having CONFIG_TIME_NS "default y" makes so that the option is selected even on >> the architectures that have no support for time namespaces. >> The direct consequence is that the fallbacks defined in this patch are never >> selected and this ends up in kernel compilation errors due to missing symbols. >> >> The error below shows what happens on arm64 (similar behavior on other >> architectures): >> >> aarch64-linux-gnu-ld: kernel/time/namespace.o: in function `timens_on_fork': >> kernel/time/namespace.c:321: undefined reference to `vdso_join_timens' >> >> My proposal is to keep TIME_NS "default n" (just remove "default y"), let the >> architectures that enable time namespaces select it and make CONFIG_TIME_NS >> select GENERIC_VDSO_TIME_NS if arch has HAVE_GENERIC_VDSO. > > Nah. > > config TIME_NS > bool "TIME namespace" > depends on GENERIC_VDSO_TIME_NS > default y > > and in lib/vdso/Kconfig > > config GENERIC_VDSO_TIME_NS > bool > > and let architectures which have support for the VDSO bits select it. > Agreed, this is even better. > < Trim another gazillion of useless lines > > > See: https://people.kernel.org/tglx/notes-about-netiquette > > Thanks, > > tglx > -- Regards, Vincenzo