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


Groups > linux.kernel > #1610555

Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs

From Amir Goldstein <amir73il@gmail.com>
Newsgroups linux.kernel
Subject Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE") breaks ubifs
Date 2017-03-28 12:50 +0200
Message-ID <tpWRk-6j4-9@gated-at.bofh.it> (permalink)
References <tpUmu-4GO-29@gated-at.bofh.it> <tpVBU-5sY-31@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Mar 28, 2017 at 5:27 AM, Amir Goldstein <amir73il@gmail.com> wrote:
> On Tue, Mar 28, 2017 at 4:01 AM, Ralph Sennhauser
> <ralph.sennhauser@gmail.com> wrote:
>> Hi Amir
>>
>> Commit d8514d8edb5b ("ovl: copy up regular file using O_TMPFILE")
>> breaks squashfs with an ubifs overlay (both ubi volumes of the same
>> container).
>>
>
> Hi Ralph,
>
> I am confused by the description above. Which are the 'both ubi volumes'?
>
> Can you provide exact command of overlayfs mount, preferably
> also a script to generate the lower/upper images and mount them
> to remove any mkfs option doubts from test setup.
>
>> Renaming a file results in an error "UBIFS error (ubi0:1 pid 1394):
>> ubifs_add_orphan: orphaned twice". This corrupts the the filesystem and
>> the next attempt to mount the overlay will fail.
>>

Looking at the ubifs code, it does not appear that ubifs_link() ever calls
ubifs_delete_orphan() for the case of linking a temp file (nlink == 0),
so this looks like a ubifs bug.

Is ubifs being tested with xfstests? This should have been caught by test
generic/004 (link tempfile then delete it).

A quick fix for ubifs+overlayfs would be to disable ubifs O_TMPFILE
support (because it is broken) and then overlayfs won't try to copy up
using tmpfile.

Amir.

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


Thread

[REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-28 10:10 +0200
  Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Amir Goldstein <amir73il@gmail.com> - 2017-03-28 11:30 +0200
    Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Amir Goldstein <amir73il@gmail.com> - 2017-03-28 12:50 +0200
      Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Richard Weinberger <richard@nod.at> - 2017-03-29 23:10 +0200
    Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular  file using O_TMPFILE") breaks ubifs Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-28 12:50 +0200
      Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Amir Goldstein <amir73il@gmail.com> - 2017-03-28 13:10 +0200
        Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular  file using O_TMPFILE") breaks ubifs Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-28 13:40 +0200
          Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular  file using O_TMPFILE") breaks ubifs Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-28 14:20 +0200
            Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Amir Goldstein <amir73il@gmail.com> - 2017-03-29 21:20 +0200
              Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular  file using O_TMPFILE") breaks ubifs Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-29 23:30 +0200
                Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Richard Weinberger <richard@nod.at> - 2017-03-30 00:20 +0200
                Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular  file using O_TMPFILE") breaks ubifs Ralph Sennhauser <ralph.sennhauser@gmail.com> - 2017-03-30 08:00 +0200
                Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Amir Goldstein <amir73il@gmail.com> - 2017-03-30 08:40 +0200
                Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Richard Weinberger <richard@nod.at> - 2017-03-30 09:20 +0200
          Re: [REGRESSION 4.11] Commit d8514d8edb5b ("ovl: copy up regular file  using O_TMPFILE") breaks ubifs Amir Goldstein <amir73il@gmail.com> - 2017-03-28 14:20 +0200

csiph-web