Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2191206imm; Tue, 2 Oct 2018 23:15:00 -0700 (PDT) X-Google-Smtp-Source: ACcGV61P8Bq5nBqI8HybQ0pUClXiEL+G/AiCXeyf/ndBU6o6ioawbSbompkeCqApKTz4oYTDSUbU X-Received: by 2002:a62:215b:: with SMTP id h88-v6mr19660399pfh.233.1538547300244; Tue, 02 Oct 2018 23:15:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538547300; cv=none; d=google.com; s=arc-20160816; b=Kx0uo4STe2cDLaNo51NEwTu2XEaVU0Q1fMS2GtHaI/S8MkRI5Vodc/+fbBuBaxUSpl WKmmsIpBl3FOwr790UOvVzmGBA3CP+/UIHdpWPvtan2KPEbsch+XAOgk4HwRpbZarOIS uV3yrN68aPk59ucQgNldEpMvfdwIFt02HgSOGLYzRnKyqHsB7y6FPDw5Hw90MmaG+JY1 8wbkKWUVf/4Fzj3e5gfDx5fB8MGnRSJCNwW3XXOOVYzLS1j5lE/Vn2rBWxZxGeFPXuSD 1zs9fb2yxD81Y0gn/6dCZTnZAEywdDAjwEaWkxAjDJBfrznecmHu3y+KYwOLfQduhqWi hgGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from; bh=G9XT5C05lNpG8G5ccY0uq+BRpbeIlx0ZNgTIRhDWRTI=; b=YTHxo4zIXBq38Y9AEwy2Hq7HlLDtwYRDBM31wZXMVQlSCi2uRY3JOaTwQpmkn0Iydv 5rznvO3I2Bz6QBrm4Fypaw895wdFAJgYSZA8yRakpJu9suzBH4SJGskSHeoyVZiXKZyu 22hluQCW+W5qPR2UHsXexWfNMsoZIMpFWNOApA8guyuZY3VpEGsV159zSftOvnX3gS7s XUhyQV9mHbQY+PRVi16Ok9uBZnDK+9HDGOCmSwLiYNyctDAN9OvB/j4JyxxtBAtFGjNM 9YxywbQscmT0/PeyXRV5J9IgnDIhQx6ZVL2L3OT5G+BN0m8hDjEYaoDe08Epz8NYuR32 RIag== 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 m11-v6si437922pgs.33.2018.10.02.23.14.44; Tue, 02 Oct 2018 23:15:00 -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 S1726835AbeJCNBe (ORCPT + 99 others); Wed, 3 Oct 2018 09:01:34 -0400 Received: from out01.mta.xmission.com ([166.70.13.231]:33953 "EHLO out01.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbeJCNBe (ORCPT ); Wed, 3 Oct 2018 09:01:34 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out01.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1g7aQg-0000QB-3B; Wed, 03 Oct 2018 00:14:38 -0600 Received: from [105.184.227.67] (helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1g7aQe-0005AX-LL; Wed, 03 Oct 2018 00:14:37 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: Thomas Gleixner Cc: Arnd Bergmann , avagin@virtuozzo.com, dima@arista.com, Linux Kernel Mailing List , 0x7f454c46@gmail.com, adrian@lisas.de, Andy Lutomirski , Christian Brauner , gorcunov@openvz.org, "H. Peter Anvin" , Ingo Molnar , Jeff Dike , Oleg Nesterov , xemul@virtuozzo.com, Shuah Khan , containers@lists.linux-foundation.org, criu@openvz.org, Linux API , the arch/x86 maintainers , Alexey Dobriyan , linux-kselftest@vger.kernel.org References: <20180919205037.9574-1-dima@arista.com> <874lej6nny.fsf@xmission.com> <20180924205119.GA14833@outlook.office365.com> <874leezh8n.fsf@xmission.com> <20180925014150.GA6302@outlook.office365.com> <87zhw4rwiq.fsf@xmission.com> <87mus1ftb9.fsf@xmission.com> <877ej2xc23.fsf_-_@xmission.com> <87in2jskew.fsf@xmission.com> Date: Wed, 03 Oct 2018 08:14:25 +0200 In-Reply-To: (Thomas Gleixner's message of "Wed, 3 Oct 2018 07:25:35 +0200 (CEST)") Message-ID: <87in2jo8u6.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1g7aQe-0005AX-LL;;;mid=<87in2jo8u6.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=105.184.227.67;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX18EXT0eot4PmYqwIsbJFcW/UPiz6Fuc6mk= X-SA-Exim-Connect-IP: 105.184.227.67 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on sa02.xmission.com X-Spam-Level: X-Spam-Status: No, score=-0.2 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,T_TM2_M_HEADER_IN_MSG autolearn=disabled version=3.4.0 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.4996] * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa02 1397; Body=1 Fuz1=1 Fuz2=1] X-Spam-DCC: XMission; sa02 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: ;Thomas Gleixner X-Spam-Relay-Country: X-Spam-Timing: total 582 ms - load_scoreonly_sql: 0.08 (0.0%), signal_user_changed: 3.4 (0.6%), b_tie_ro: 2.3 (0.4%), parse: 1.33 (0.2%), extract_message_metadata: 25 (4.2%), get_uri_detail_list: 1.97 (0.3%), tests_pri_-1000: 10 (1.8%), tests_pri_-950: 2.2 (0.4%), tests_pri_-900: 1.92 (0.3%), tests_pri_-400: 35 (6.0%), check_bayes: 32 (5.5%), b_tokenize: 13 (2.2%), b_tok_get_all: 8 (1.4%), b_comp_prob: 4.4 (0.8%), b_tok_touch_all: 3.1 (0.5%), b_finish: 0.87 (0.1%), tests_pri_-100: 12 (2.0%), check_dkim_signature: 0.93 (0.2%), check_dkim_adsp: 6 (1.0%), tests_pri_0: 469 (80.6%), tests_pri_10: 3.6 (0.6%), tests_pri_500: 13 (2.3%), rewrite_mail: 0.00 (0.0%) Subject: Re: Setting monotonic time? X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thomas Gleixner writes: > On Wed, 3 Oct 2018, Eric W. Biederman wrote: >> Direct access to hardware/drivers and not through an abstraction like >> the vfs (an abstraction over block devices) can legitimately be handled >> by hotplug events. I unplug one keyboard I plug in another. >> >> I don't know if the input layer is more of a general abstraction >> or more of a hardware device. I have not dug into it but my guess >> is abstraction from what I have heard. >> >> The scary difficulty here is if after restart input is reporting times >> in CLOCK_MONOTONIC and the applications in the namespace are talking >> about times in CLOCK_MONOTONIC_SYNC. Then there is an issue. As even >> with a fixed offset the times don't match up. >> >> So a time namespace absolutely needs to do is figure out how to deal >> with all of the kernel interfaces reporting times and figure out how to >> report them in the current time namespace. > > So you want to talk to Arnd who is leading the y2038 effort. He knowns how > many and which interfaces are involved aside of the obvious core timer > ones. It's quite an amount and the problem is that you really need to do > that at the interface level, because many of those time stamps are taken in > contexts which are completely oblivious of name spaces. Ditto for timeouts > and similar things which are handed in through these interfaces. Yep. That sounds right. Eric