Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1612269
| 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-29 21:20 +0200 |
| Message-ID | <tqrip-2Ue-9@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <tpWRl-6j4-37@gated-at.bofh.it> <tpXaF-6Gq-11@gated-at.bofh.it> <tpXDJ-6Qq-43@gated-at.bofh.it> <tpYgq-7p2-23@gated-at.bofh.it> <tpYgq-7p2-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Mar 28, 2017 at 3:16 PM, Ralph Sennhauser
<ralph.sennhauser@gmail.com> wrote:
> On Tue, 28 Mar 2017 08:08:51 -0400
> Amir Goldstein <amir73il@gmail.com> wrote:
>
>> On Tue, Mar 28, 2017 at 7:28 AM, Ralph Sennhauser
>> <ralph.sennhauser@gmail.com> wrote:
>> > Hi Amir,
>> >
>> > On Tue, 28 Mar 2017 07:03:11 -0400
>> > Amir Goldstein <amir73il@gmail.com> wrote:
>> >
>> >> Overlayfs now uses O_TMPFILE for copy up and it works fine with all
>> >> the file systems I tested (tmpfs, xfs, ext4).
>> >> If I am right and O_TMPFILE is broken in ubifs, you are most likely
>> >> the first person to test it (indirectly by overlayfs).
>> >>
>> >> Please try to reproduce the bug with following patch to disable
>> >> ubifs O_TMPFILE support:
>> >>
>> >> --- a/fs/ubifs/dir.c
>> >> +++ b/fs/ubifs/dir.c
>> >> @@ -1685,7 +1685,7 @@ const struct inode_operations
>> >> ubifs_dir_inode_operations = {
>> >> #ifdef CONFIG_UBIFS_ATIME_SUPPORT
>> >> .update_time = ubifs_update_time,
>> >> #endif
>> >> - .tmpfile = ubifs_tmpfile,
>> >> + //.tmpfile = ubifs_tmpfile,
>> >> };
>> >
>> > Get a unused warning during build but all seems to be working fine
>> > now.
>>
>> OK. I'll wait for ubifs developers to fix the bug.
>> Otherwise, I'll send a proper patch to disable ubifs O_TMPFILE
>> support. Will add tested-by you.
>
> Sounds like a good plan, there is still time for 4.11-rc5. Fine with
> you adding my tested-by in case it will come to this.
>
Ralph,
Can you please try to reproduce the problem with this command
on ubifs:
# create and link a tmpfile - then remove it
sudo rm -rf foo; sudo xfs_io -T -c "flink foo" . ; ls -l foo; sudo rm foo
That's the gist of xfstest generic/004.
You should expect the same behavior of corrupted fs after boot.
This issue should be reproduced since kernel 4.9 when ubifs tmpfile
support was added.
I hope this info can help the ubifs developers fix the problem
independently from overlayfs setup.
Thanks,
Amir.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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