<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/fs/overlayfs, branch linux-4.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2017-07-27T22:10:16Z</updated>
<entry>
<title>ovl: fix random return value on mount</title>
<updated>2017-07-27T22:10:16Z</updated>
<author>
<name>Amir Goldstein</name>
</author>
<published>2017-07-11T12:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=98cc417e0b95d8cf2baeba5a2159d46be2e0941c'/>
<id>urn:sha1:98cc417e0b95d8cf2baeba5a2159d46be2e0941c</id>
<content type='text'>
commit 8fc646b44385ff0a9853f6590497e43049eeb311 upstream.

On failure to prepare_creds(), mount fails with a random
return value, as err was last set to an integer cast of
a valid lower mnt pointer or set to 0 if inodes index feature
is enabled.

Reported-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Fixes: 3fe6e52f0626 ("ovl: override creds with the ones from ...")
Signed-off-by: Amir Goldstein &lt;amir73il@gmail.com&gt;
Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ovl: mark parent impure on ovl_link()</title>
<updated>2017-07-27T22:10:16Z</updated>
<author>
<name>Amir Goldstein</name>
</author>
<published>2017-07-11T12:58:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=aedd116d5a5993cb5ece0eeecb97f828413e742a'/>
<id>urn:sha1:aedd116d5a5993cb5ece0eeecb97f828413e742a</id>
<content type='text'>
commit ea3dad18dc5f778cfd931311a91a9315aa0065a3 upstream.

When linking a file with copy up origin into a new parent, mark the
new parent dir "impure".

Fixes: ee1d6d37b6b8 ("ovl: mark upper dir with type origin entries "impure"")
Signed-off-by: Amir Goldstein &lt;amir73il@gmail.com&gt;
Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>ovl: don't set origin on broken lower hardlink</title>
<updated>2017-06-28T11:41:22Z</updated>
<author>
<name>Miklos Szeredi</name>
</author>
<published>2017-06-28T11:41:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fbaf94ee3cd5cfa85fe2d4d04be968820cb00556'/>
<id>urn:sha1:fbaf94ee3cd5cfa85fe2d4d04be968820cb00556</id>
<content type='text'>
When copying up a file that has multiple hard links we need to break any
association with the origin file.  This makes copy-up be essentially an
atomic replace.

The new file has nothing to do with the old one (except having the same
data and metadata initially), so don't set the overlay.origin attribute.

We can relax this in the future when we are able to index upper object by
origin.

Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
Fixes: 3a1e819b4e80 ("ovl: store file handle of lower inode on copy up")
</content>
</entry>
<entry>
<title>ovl: copy-up: don't unlock between lookup and link</title>
<updated>2017-06-28T11:41:22Z</updated>
<author>
<name>Miklos Szeredi</name>
</author>
<published>2017-06-28T11:41:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e85f82ff9b8ef503923a3be8ca6b5fd1908a7f3f'/>
<id>urn:sha1:e85f82ff9b8ef503923a3be8ca6b5fd1908a7f3f</id>
<content type='text'>
Nothing prevents mischief on upper layer while we are busy copying up the
data.

Move the lookup right before the looked up dentry is actually used.

Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
Fixes: 01ad3eb8a073 ("ovl: concurrent copy up of regular files")
Cc: &lt;stable@vger.kernel.org&gt; # v4.11
</content>
</entry>
<entry>
<title>ovl: filter trusted xattr for non-admin</title>
<updated>2017-05-29T13:15:27Z</updated>
<author>
<name>Miklos Szeredi</name>
</author>
<published>2017-05-29T13:15:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a082c6f680da298cf075886ff032f32ccb7c5e1a'/>
<id>urn:sha1:a082c6f680da298cf075886ff032f32ccb7c5e1a</id>
<content type='text'>
Filesystems filter out extended attributes in the "trusted." domain for
unprivlieged callers.

Overlay calls underlying filesystem's method with elevated privs, so need
to do the filtering in overlayfs too.

Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
</content>
</entry>
<entry>
<title>ovl: mark upper merge dir with type origin entries "impure"</title>
<updated>2017-05-29T09:48:00Z</updated>
<author>
<name>Amir Goldstein</name>
</author>
<published>2017-05-24T12:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f3a1568582cc207663a4d5e37da790334372855b'/>
<id>urn:sha1:f3a1568582cc207663a4d5e37da790334372855b</id>
<content type='text'>
An upper dir is marked "impure" to let ovl_iterate() know that this
directory may contain non pure upper entries whose d_ino may need to be
read from the origin inode.

We already mark a non-merge dir "impure" when moving a non-pure child
entry inside it, to let ovl_iterate() know not to iterate the non-merge
dir directly.

Mark also a merge dir "impure" when moving a non-pure child entry inside
it and when copying up a child entry inside it.

This can be used to optimize ovl_iterate() to perform a "pure merge" of
upper and lower directories, merging the content of the directories,
without having to read d_ino from origin inodes.

Signed-off-by: Amir Goldstein &lt;amir73il@gmail.com&gt;
Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
</content>
</entry>
<entry>
<title>ovl: mark upper dir with type origin entries "impure"</title>
<updated>2017-05-19T07:33:49Z</updated>
<author>
<name>Amir Goldstein</name>
</author>
<published>2017-05-11T13:42:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee1d6d37b6b884383b501089be93ce94f2153028'/>
<id>urn:sha1:ee1d6d37b6b884383b501089be93ce94f2153028</id>
<content type='text'>
When moving a merge dir or non-dir with copy up origin into a non-merge
upper dir (a.k.a pure upper dir), we are marking the target parent dir
"impure". ovl_iterate() iterates pure upper dirs directly, because there is
no need to filter out whiteouts and merge dir content with lower dir. But
for the case of an "impure" upper dir, ovl_iterate() will not be able to
iterate the real upper dir directly, because it will need to lookup the
origin inode and use it to fill d_ino.

Signed-off-by: Amir Goldstein &lt;amir73il@gmail.com&gt;
Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
</content>
</entry>
<entry>
<title>ovl: remove unused arg from ovl_lookup_temp()</title>
<updated>2017-05-19T07:33:49Z</updated>
<author>
<name>Miklos Szeredi</name>
</author>
<published>2017-05-19T07:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=3d27573ce32b47ba54e6680c77c26a700d67cc16'/>
<id>urn:sha1:3d27573ce32b47ba54e6680c77c26a700d67cc16</id>
<content type='text'>
Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
</content>
</entry>
<entry>
<title>ovl: handle rename when upper doesn't support xattr</title>
<updated>2017-05-19T07:33:49Z</updated>
<author>
<name>Amir Goldstein</name>
</author>
<published>2017-05-16T21:12:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=21a228781104ae6fed7e720137ab024575071feb'/>
<id>urn:sha1:21a228781104ae6fed7e720137ab024575071feb</id>
<content type='text'>
On failure to set opaque/redirect xattr on rename, skip setting xattr and
return -EXDEV.

On failure to set opaque xattr when creating a new directory, -EIO is
returned instead of -EOPNOTSUPP.

Any failure to set those xattr will be recorded in super block and
then setting any xattr on upper won't be attempted again.

Signed-off-by: Amir Goldstein &lt;amir73il@gmail.com&gt;
Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
</content>
</entry>
<entry>
<title>ovl: don't fail copy-up if upper doesn't support xattr</title>
<updated>2017-05-18T14:11:24Z</updated>
<author>
<name>Miklos Szeredi</name>
</author>
<published>2017-05-18T14:11:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6266d465bde044a105f6c2d4e244680f951a2d70'/>
<id>urn:sha1:6266d465bde044a105f6c2d4e244680f951a2d70</id>
<content type='text'>
Signed-off-by: Miklos Szeredi &lt;mszeredi@redhat.com&gt;
</content>
</entry>
</feed>
