Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3838619ybl; Mon, 12 Aug 2019 07:14:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqzst+F27t2HBgD7aHiPexa2K7GHOg1OzJesl8BeKUnEjDb8ob3n4Jg8VLmkVbolUjDj93EY X-Received: by 2002:a17:90a:ab0b:: with SMTP id m11mr24328678pjq.73.1565619288807; Mon, 12 Aug 2019 07:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565619288; cv=none; d=google.com; s=arc-20160816; b=Ch/aSUXWP5bXHemgX7vWtnKLdB2lWPyzXBwNGBLuHsQ5CjHfApOFZgXnoy0SCOrMn4 LUNf1SEtR4gdrOsFXfVgWcRfa6Ba21WWtaFqqVbPTJk0QKikC/OM4bMhsDpUnvExnst2 Ou+3u7l9SotJ0eQdyi+GQ+oG6ogtqd6E6+hPUiXER2b+G8eMPKEtLbHytvzd35ng3sjT Fxsl8sSgaUndQL3YWy4ViaEe+Nxh6Fgd7dF2JJRF9m2qFXJQnYE3TG9nWlPMl/vEftDV KUwqofi5E7eAff+vARHY7ZuAKx0soRwyqBh5QAUJxbNit6NeJTTgN53dFhhDpq9OGYPN zcBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=HckXkSELBT5jyRopE2pzV3JrBcZaAIu4qF7LSK+P/Zk=; b=k8zV9NlEGorMsh1nZXfR7QbO1cXWo733vNqrRWTbl2A5C1XVo5Uj0WWQHeVXf9C/GI Iesaz76sMHo2Q1V0OzhX9zIIr/Sbzh/OscIWXHIR97uiYw+/22oobvMaPo30zCts9538 qxhWVNswqpHD6OZcVt20MXXc/5CpvANzmyM7IuA34bIsyNneaYCJ4iBw3j3gI3ZXp0WN MQwH5t1X9U8eAzobgxeySvyH7GvPgXr8lrxQs4MiXvbe8BpNeRFVrSxTwbK+9Fvyl13z v8fsZJg5eeuyKSCB3UlgeSSzIHrBy+zLIy7XYHkmUl5laHn/W2r/McTssBh3xjLsof64 4r8g== 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 b18si56134688plz.389.2019.08.12.07.14.32; Mon, 12 Aug 2019 07:14:48 -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 S1727792AbfHLOL4 (ORCPT + 99 others); Mon, 12 Aug 2019 10:11:56 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:39728 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727206AbfHLOLz (ORCPT ); Mon, 12 Aug 2019 10:11:55 -0400 Received: by mail-qk1-f193.google.com with SMTP id 125so3974702qkl.6; Mon, 12 Aug 2019 07:11:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HckXkSELBT5jyRopE2pzV3JrBcZaAIu4qF7LSK+P/Zk=; b=Le6/ABehm9ETT3puLLGQvgwqe8JavRVTGi/pbQF7plDOxMcDXm16SYrE6mLxav5ZBO dMvA8Vdd5jBWf2FyP+ttnWFWtHZ84WDUP4gW6R8Fvg6ee2VWueZG5Jiqv/FEHeypiMzW bcDWHxIQGEgrYCp2ZG4oJUBNQe5jF331dQO+c9qj8gMnUgOm7YgF6t6mDbM6UjmnECc/ S7xBP6aud+w4DBN2DTYBotlDbOPNHMTVF62bnI7M7TB4kSVvyKgjraTDT7QPBT4Np8H/ HWK/Hxwj4T46cvmXeOzLxNOIPrN+ED9B3mV8FpyDZpDv27y6ILvL0GSu3UZrtCYcVGJT 18TA== X-Gm-Message-State: APjAAAWJ4P2+Zx2olBZ4OuAmDBhjbXOXANAnHSBw5zjV0bJFZ4JToosX G+IESdP4CTuQFjzrMiW4A86Y42uzKNebkl6e5wM= X-Received: by 2002:a05:620a:b:: with SMTP id j11mr30315011qki.352.1565619114553; Mon, 12 Aug 2019 07:11:54 -0700 (PDT) MIME-Version: 1.0 References: <20190730014924.2193-1-deepa.kernel@gmail.com> <20190730014924.2193-5-deepa.kernel@gmail.com> <53df9d81bfb4ee7ec64fabf1089f91d80dceb491.camel@codethink.co.uk> In-Reply-To: <53df9d81bfb4ee7ec64fabf1089f91d80dceb491.camel@codethink.co.uk> From: Arnd Bergmann Date: Mon, 12 Aug 2019 16:11:38 +0200 Message-ID: Subject: Re: [Y2038] [PATCH 04/20] mount: Add mount warning for impending timestamp expiry To: Ben Hutchings Cc: Deepa Dinamani , Alexander Viro , Linux Kernel Mailing List , Linux FS-devel Mailing List , y2038 Mailman List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 12, 2019 at 3:25 PM Ben Hutchings wrote: > On Sat, 2019-08-10 at 13:44 -0700, Deepa Dinamani wrote: > > On Mon, Aug 5, 2019 at 7:14 AM Ben Hutchings > > wrote: > > > On Mon, 2019-07-29 at 18:49 -0700, Deepa Dinamani wrote: > > > > The warning reuses the uptime max of 30 years used by the > > > > setitimeofday(). > > > > > > > > Note that the warning is only added for new filesystem mounts > > > > through the mount syscall. Automounts do not have the same warning. > > > [...] > > > > > > Another thing - perhaps this warning should be suppressed for read-only > > > mounts? > > > > Many filesystems support read only mounts only. We do fill in right > > granularities and limits for these filesystems as well. In keeping > > with the trend, I have added the warning accordingly. I don't think I > > have a preference either way. But, not warning for the red only mounts > > adds another if case. If you have a strong preference, I could add it > > in. > > It seems to me that the warning is needed if there is a possibility of > data loss (incorrect timestamps, potentially leading to incorrect > decisions about which files are newer). This can happen only when a > filesystem is mounted read-write, or when a filesystem image is > created. > > I think that warning for read-only mounts would be an annoyance to > users retrieving files from old filesystems. I agree, the warning is not helpful for read-only mounts. An earlier plan was to completely disallow writable mounts that might risk an overflow (in some configurations at least). The warning replaces that now, and I think it should also just warn for the cases that would otherwise have been dangerous. Arnd