Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1297001pxx; Fri, 30 Oct 2020 06:59:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjRO9aXdD9HpsTi1TqmoAG81GjZCUN4/KYEn1jbfL9s8cU6wzTe25r/ejVpgqAU36WKWsT X-Received: by 2002:a17:906:6453:: with SMTP id l19mr2597330ejn.366.1604066391694; Fri, 30 Oct 2020 06:59:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604066391; cv=none; d=google.com; s=arc-20160816; b=hgRyWn8P7RhaZdCYB5DOoBeSbMADlHoWOZnFYzZcOO7//+74HGJmOOXI3eM6K391+c xOVl3AE87baUt40aB8w4mkm4KWJtDjclPZXyQBsRfzewofu4DSAwm5irDp5foSb2Zp/9 VPecc5wSRap5UCYQ+XdGo+klf5m+WRUedvHLRM2jasUpCTwQVh1frICXfDzhMkumfqQ4 N9oYUVQJ7Drnvl8BlE3jSWYRFl8cSlRRYkyYtnbTQ01amjdGkD0kT9eP8FqwjXNkX3fs u3fRTbcYySiWIuM50RvCAa2BxtzhSyFz3XMLZbqxFmy9jpM1vQFsAs+RkpzGxHDrGGye jksA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=s7aje11WNpdoALitlddl7+15GzkMvX5ex2nsu5HGwwE=; b=JusSIRGRBfyfRYg1Dvvvy+U26XeDwbBSF1qCmTCIzQLItDL54qz4df3EXdhUTYreG4 N9PKef9JefJed/C5JBnbnZXrU85XElrD+rJ3THsRWqL1jtNfiMlLbk/1MsMLCEfnOa+l h3S+FWyQi9PHCZDCLv6oB9VLIxLiKeee43FHxI9zfowHsFcV0V6VCN+aDivmc4i+6fPH 8pWo5aNFFmgSJr9xhdfcORzZf95PzXTBPMp6H/STQpmqfY2/ixNRyk2eWfqb2p7MNMVQ Pkx4RWUmYAp8vXsrmHnMm1d67aaGoYx0y5jHZR7vqxZKVepjVtO5i8nr4swSfgeiPtpc tQpg== 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 z2si4493209eju.580.2020.10.30.06.59.29; Fri, 30 Oct 2020 06:59:51 -0700 (PDT) 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 S1726596AbgJ3N5n (ORCPT + 99 others); Fri, 30 Oct 2020 09:57:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:53856 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725939AbgJ3N5k (ORCPT ); Fri, 30 Oct 2020 09:57:40 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 95BF6ACAE; Fri, 30 Oct 2020 13:57:39 +0000 (UTC) Date: Fri, 30 Oct 2020 14:58:16 +0100 From: Cyril Hrubis To: Lukasz Majewski Cc: Andrei Vagin , Dmitry Safonov , Thomas Gleixner , GNU C Library , linux-kernel@vger.kernel.org Subject: Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces Message-ID: <20201030135816.GA1790@yuki.lan> References: <20201030110229.43f0773b@jawa> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201030110229.43f0773b@jawa> 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. And what's exactly wrong with moving the system time forward for a duration of the test? -- Cyril Hrubis chrubis@suse.cz