Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1792191pxb; Sat, 14 Nov 2020 02:27:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbFeMkRXGAEZkbtjE3GrQoZ1uAA89azpMBsRkr29H5oZS3BG6aGjJHuQBlbzG2AnRz8zjE X-Received: by 2002:a17:906:cc4f:: with SMTP id mm15mr6036519ejb.267.1605349673452; Sat, 14 Nov 2020 02:27:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605349673; cv=none; d=google.com; s=arc-20160816; b=Y3zjeLQM8zs812HcKodXWhkvfO96GXUVOxglQD8tG7GCU5dmRp4ImsEifoMDXGe6hq ygqIVp5UktlJH8D0THp14PQ9fnkSxhk1ksVVc2qJkHuqA1QwKvePy3zWWAsV2zFX3Zg7 LVF1ApzRh4K31t3ACdSp2WcEVOvX0/XsYcSj4oL1/zfhhiIttqPNw5GrcJTpcLvluBns HsLBDLWT5JT42RzdLsKv+IRf/btNk0OyBOvSYs9GSabuVZ64xQJSWMUWLRwwpFy3qxB3 77wb6OK5kTigItZ+OTiea4asxTzs5usS7O/stXACiU2KyfXICyB6H6+ErQoOyPN4i69l AfZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=03nIXD60RVA/BfSbNS/UIF7khAcdQtjaCSRcsDzTfNw=; b=GQBCzfwG1+/azXl2fyaZpMvHenzDmDbCtWZrHQMeVg4aCHeceHh/EAb6Gm8tDBr6FG 9YNVr49dnvVaZI1IFeZjYjLxJ9dNFvzsVUoQd2oV+ntWL9PA4eHs5eJWDd5+WU5SUkWO uA/sDbeSYJh9dJT/QEP3gCSOk1KJhfkG3yQLMGVBzhpRryOZbxsm63aFz8qVaNI9Dili /L2UiE5JzYn/VFHvrQ7UQg1QaQsR89lEu5RELpafpZm4jVG8L74GD9u9aLhKlmkLT/lz reJs9I3Pz/UuqLJQ3uBY/gYsiOWjC2mnPRowpQdVShRz/YaxIAu8yoKiBfPze2LheuSN ceRg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si7361286ejk.247.2020.11.14.02.27.31; Sat, 14 Nov 2020 02:27:53 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726723AbgKNKZH convert rfc822-to-8bit (ORCPT + 99 others); Sat, 14 Nov 2020 05:25:07 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:34222 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbgKNKZH (ORCPT ); Sat, 14 Nov 2020 05:25:07 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id CF8D51C0BC1; Sat, 14 Nov 2020 11:25:04 +0100 (CET) Date: Sat, 14 Nov 2020 11:25:03 +0100 From: Pavel Machek To: Lukasz Majewski Cc: Andrei Vagin , Dmitry Safonov , Thomas Gleixner , GNU C Library , Arnd Bergmann , linux-kernel@vger.kernel.org Subject: Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces Message-ID: <20201114102503.GB1000@bug> References: <20201030110229.43f0773b@jawa> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20201030110229.43f0773b@jawa> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > I do have a question regarding the Linux time namespaces in respect of > adding support for virtualizing the CLOCK_REALTIME. > > According to patch description [1] and time_namespaces documentation > [2] the CLOCK_REALTIME is not supported (for now?) to avoid complexity > and overhead in the kernel. > > Is there any plan to add support for it in a near future? > > Why I'm asking? > > It looks like this kernel feature (with CLOCK_REALTIME support > available) would be very helpful for testing Y2038 compliance for e.g. > glibc 32 bit ports. > > To be more specific - it would be possible to modify time after time_t > 32 bit overflow (i.e. Y2038 bug) on the process running Y2038 > regression tests on the host system (64 bit one). By using Linux time > namespaces the system time will not be affected in any way. If big slowdown is acceptable... you can play games with ptrace. Project called "subterfugue" should have examples how to do that. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html