Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2192125imm; Tue, 2 Oct 2018 23:16:07 -0700 (PDT) X-Google-Smtp-Source: ACcGV61/shUO0eyWy25JEjMwhnAH6KEmU8jfMaQKVWScmimy0MLYagVA58Bh1VmAoRXfZrpQjanP X-Received: by 2002:a62:c05a:: with SMTP id x87-v6mr19634317pff.149.1538547367119; Tue, 02 Oct 2018 23:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538547367; cv=none; d=google.com; s=arc-20160816; b=IRMsPkTykDP3Ld+BK3ysaB0bMhS+me7I0zpW2afc7ablBr4TsYi1W9ZropgZ7GGzWR +Rs8hTvjPfd86/bXjXVTdyAilHW7nSEHJiI/j1OAV9QqKMdBCpMQOSvBtiZ+F29BMDjJ qD+zPQnG/duJLRGzcucaXc+TggTIN8DvZzA6FJ4+fGVK3MLr6vSncQTDrpOc5jhEaVnK bWNbZz5AwkTu4KbqsYjVb/JvgdA6wnsGYHS6jW+Rpofxi5Ye7uq5AtR3S6KDWRjmx9Dp ezYA8wz3C7XUCeBwqg9OZ73KJJARDjHmGsFCkCOghRYrBlQEMdqKfnTQKfZPRiZrACkw AB3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=ZK6wy2ihMjCBJjPz4slZtWnfJQ36gedTTrYTTGrQMNY=; b=xL4EeesZcvsFIIJvLW6i/r7WU3EaskJJn5PWVUV4jIATu6mBYA2cHJXxA716fBK510 FKpdlzozj4iIe6rLR8HCkMgYlnKImKYQo77LSIesb5hP8fI9DAdghO3RRzOZXU+30zDk O77pcn/35yHaboIUPeKS/+hlrLxls3ckeupRPeJQEmblHLrb6StFH3rvntIBBnk4U/WP RSFQFCGvRPpIvZldXJmwCGAeIRNWQpcVnpZ4B5EtV6KguOP1Be/jQSYS44CuysPAlS7l oDrSgPrQP6kE4s8bmnYdd6H5ewWAv27wgxfeN+itCjsL1Ljonxm7f/zrVmm6pE7F/ufK FzBA== 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 r12-v6si419622pgg.209.2018.10.02.23.15.51; Tue, 02 Oct 2018 23:16:07 -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 S1726907AbeJCNCK (ORCPT + 99 others); Wed, 3 Oct 2018 09:02:10 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:33095 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726405AbeJCNCJ (ORCPT ); Wed, 3 Oct 2018 09:02:09 -0400 Received: from p5492e4c1.dip0.t-ipconnect.de ([84.146.228.193] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1g7aQn-0007Zx-Gy; Wed, 03 Oct 2018 08:14:45 +0200 Date: Wed, 3 Oct 2018 08:14:44 +0200 (CEST) From: Thomas Gleixner To: "Eric W. Biederman" 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 Subject: Re: Setting monotonic time? In-Reply-To: Message-ID: 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> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Oct 2018, Thomas Gleixner wrote: > 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. Plus you have to make sure, that any new interface will have that treatment. For y2038 that's easy as we just require to use timespec64 for new ones. For your problem that's not so trivial. Thanks, tglx