Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1630937
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Arnd Bergmann <arnd@arndb.de> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits |
| Date | Tue, 25 Apr 2017 21:50:01 +0200 |
| Message-ID | <tAeDf-up-9@gated-at.bofh.it> (permalink) |
| References | <tu4nf-13d-3@gated-at.bofh.it> <tu4nf-13d-1@gated-at.bofh.it> <tu4Qi-1sE-1@gated-at.bofh.it> <tubf3-5sB-1@gated-at.bofh.it> |
| X-Original-To | Deepa Dinamani <deepa.kernel@gmail.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=zsDBkd4SWIy2VmT2HUVqP5lUvzhU6367S+Dq9Ww/yE0=; b=XfXYXJmIGg9AeACcXoIYbbRG6QO38FKXfN6U9NWHZI/tbtIgGR+rZqcdk142W/XOv9 4gY8qOOMC5gNILH/Hw7ltIeCZDxGjHKjtVShC8Ds5m8GwaYC+ewkpX/xf/Qxn43zLW73 d/gdPnnwMHK8v5MxSFm8tPOSliJ6SYdCuAqJ49brU0uiq97R+r2tDktK/W3c9I5mUJka bB9wD2f05KAtmb+IZ+PXHpO8W+/FevP2E7EwNnLfReQHGe4G9VRUK3UmCHSCQX64hae3 vzxPOz5b42e0NTI9bEQpv60NYVu9UqBSfIt9Nk9pHBpalBPETnpU34fadM+bMVB2HMNJ 30og== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=zsDBkd4SWIy2VmT2HUVqP5lUvzhU6367S+Dq9Ww/yE0=; b=KKO7xepO2bDhlBzkjluu821nj22COzt2BFXzCUmj4gz9jYpkRUV+cM/Ye5Fd002sT3 iw5XZ33p6mvybxu/zd6NeUEiKgUsQFeYNhfo6bhZDdMHcvOl96lTgbUymCyd3ZbI38KW n0UssDQgPfD8dP9POPeAnNLSWF6zSIkOKHryFKKZoD1AXBiaWtVMB5tJWqPa/V8YdlR+ V5BaDYGV+q42bgardiOsiHtaqMGYLYP8T39c55Ub74gv50DmihL+juFOA1VM1jjgy2E8 10NVgVMBWRmGPMUIEAgDFsS0Ml+/eisnS6PdPcLNvqqBp1/TWGRfcUqlOnd2KrlsWMwS QI0Q== |
| X-Gm-Message-State | AN3rC/5bR0hPf3yiVK6RNssqdeCXj2GUfFAZ3iOvh6mTlGok6YExqOMi LiUD6YOY303JceE251NvsS9DgClzj0MtTRU= |
| X-Received | by 10.157.39.138 with SMTP id c10mr17756567otb.125.1493149665800; Tue, 25 Apr 2017 12:47:45 -0700 (PDT) |
| MIME-Version | 1.0 |
| X-Google-Sender-Auth | LtAaq2HpbyhqISW6egUMTQ4WKho |
| Content-Type | text/plain; charset=UTF-8 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 65 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Linus Torvalds <torvalds@linux-foundation.org>, Al Viro <viro@zeniv.linux.org.uk>, "Theodore Ts'o" <tytso@mit.edu>, "adilger.kernel@dilger.ca" <adilger.kernel@dilger.ca>, "linux-ext4@vger.kernel.org" <linux-ext4@vger.kernel.org>, Thomas Gleixner <tglx@linutronix.de>, linux-fsdevel <linux-fsdevel@vger.kernel.org>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, y2038 Mailman List <y2038@lists.linaro.org> |
| X-Original-Date | Tue, 25 Apr 2017 21:47:45 +0200 |
| X-Original-Message-ID | <CAK8P3a002GSya0oxiLnJjDjcsfULSfmOTkf=JMTJEaV0a=dKjQ@mail.gmail.com> |
| X-Original-References | <1491680267-11171-1-git-send-email-deepa.kernel@gmail.com> <1491680267-11171-3-git-send-email-deepa.kernel@gmail.com> <CA+55aFymxtrw8tr6Q9vLrP7nJ5zOjShstpyQOxxr-m1Wkv9gNg@mail.gmail.com> <CABeXuvo6UyvV2yqcju+Mxh8Mmsihrpf209D8p+u68SV5nHf2-A@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1630937 |
Show key headers only | View raw
On Sun, Apr 9, 2017 at 4:58 AM, Deepa Dinamani <deepa.kernel@gmail.com> wrote:
>>> Allow read only mounts for filesystems that do not
>>> have maximum timestamps beyond the y2038 expiry
>>> timestamp.
>>
>> This option seems arbitrary and pointless.
>>
>> Nobody sane should ever enable it except for testing, but for testing
>> it would be much better to simply specify what the limit should be:
>> 2038 is not magical for all filesystems, because the base may be
>> different.
>
> Yes, the way the patch is right now, it is meant only for testing
> y2038 readiness.
> The feature is meant for system wide tests and not individual filesystem tests.
There is one global option that I want to see, and that is for completely
disabling all components that are known to be broken in y2038.
We could do this with just a compile-time option that primarily
turns off all drivers using the 32-bit time_t, but the same compile-time
option can also force the file system to be read-only.
I don't see this just as something we want to do for testing, but
also as a safeguard for people shipping embedded systems with
long service life: If something can go wrong after write-mounting
an ext3 file system after 2038, it's better to force a behavior now
that can be reasonably expected not to change.
Between doing a compile-time option or a boot-time option, doing
it purely compile-time is probably better as it gives us the possible
additional checking when we hide the time_t definition.
We can do the boot-time option as well, to set a particular limit
other than the one enforced at compile time. Passing a year
number like "fstimestampcheck=2099" would address Linus'
concern about the cutoff being arbitrary.
I would also make the default limit higher than 2038, as at
least the Apple HFS/HFS+ file systems break only a bit later
in 2040. However, I don't think any other file system breaks
until 2099 (some Microsoft file systems), which would be
the next reasonably default cutoff IMO.
>> And honestly, for testing, it would be much better to just make it a
>> mount option rather than some crazy system-wide one.
>
> The patch allows the y2038 number to be changed at compile time. I can
> extend the sysctl and boot option to allow changing of this limit also
> if that is preferred.
>
> We also proposed the mount option route in the RFC. But, we received
> no preferences/ comments. We proceeded with the sysctl option because
> this allows us to extend this feature into disallowing writes on non
> updatable time filesystems.
>
> I could change this to providing a mount option instead if you think
> that is better.
I don't see much value in a mount option that prevents the use,
but maybe a mount option to override the global setting to make
an exception for someone who does want to mount a particular
(known-broken) file system despite having the stricter global setting.
Arnd
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits Arnd Bergmann <arnd@arndb.de> - 2017-04-25 21:50 +0200
Re: [PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits Linus Torvalds <torvalds@linux-foundation.org> - 2017-04-25 22:10 +0200
Re: [Y2038] [PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits Linus Torvalds <torvalds@linux-foundation.org> - 2017-04-25 22:40 +0200
Re: [Y2038] [PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits Arnd Bergmann <arnd@arndb.de> - 2017-04-25 23:30 +0200
Re: [Y2038] [PATCH v5 2/5] vfs: Add checks for filesystem timestamp limits Arnd Bergmann <arnd@arndb.de> - 2017-04-25 22:40 +0200
csiph-web