Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1514936

Re: tmpfs returns incorrect data on concurrent pread() and truncate()

From Jakob Unterwurzacher <jakobunt@gmail.com>
Newsgroups linux.kernel
Subject Re: tmpfs returns incorrect data on concurrent pread() and truncate()
Date 2016-11-04 00:50 +0100
Message-ID <szzVD-2d3-13@gated-at.bofh.it> (permalink)
References <swzSa-6Mc-31@gated-at.bofh.it> <syR8e-6Wq-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


First of all, thanks for your replies!

On 02.11.2016 00:51, Hugh Dickins wrote:
> I don't think that there will be much appetite for changing the
> kernel's VFS to prevent that.  I hope that gocryptfs can provide
> the serialization that it needs for itself, or otherwise handle
> those zeroes without crashing.

Yes, I dropped the nonce sanity check, the MAC will catch the corruption
anyway.

Just FYI, xfstests generic/075 discovered this. The test itself does not check
the data it gets back, which is why it usually passes.

Best regards,
Jakob

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: tmpfs returns incorrect data on concurrent pread() and  truncate() Hugh Dickins <hughd@google.com> - 2016-11-02 01:00 +0100
  Re: tmpfs returns incorrect data on concurrent pread() and truncate() Dave Chinner <david@fromorbit.com> - 2016-11-02 02:10 +0100
    Re: tmpfs returns incorrect data on concurrent pread() and  truncate() Hugh Dickins <hughd@google.com> - 2016-11-02 02:40 +0100
      Re: tmpfs returns incorrect data on concurrent pread() and truncate() Dave Chinner <david@fromorbit.com> - 2016-11-02 05:10 +0100
      Re: tmpfs returns incorrect data on concurrent pread() and truncate() Theodore Ts'o <tytso@mit.edu> - 2016-11-02 14:30 +0100
  Re: tmpfs returns incorrect data on concurrent pread() and truncate() Jakob Unterwurzacher <jakobunt@gmail.com> - 2016-11-04 00:50 +0100

csiph-web