linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] overlayfs update for 4.8
@ 2016-07-29 11:20 Miklos Szeredi
  2016-07-29 19:26 ` Linus Torvalds
  0 siblings, 1 reply; 3+ messages in thread
From: Miklos Szeredi @ 2016-07-29 11:20 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, linux-fsdevel, linux-unionfs

Hi Linus,

Please pull from:

  git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git overlayfs-linus

First of all, this fixes a regression in overlayfs introduced by the dentry hash
salting.  I've moved the patch fixing this to the front of the queue, so if (god
forbid) something needs to be bisected in overlayfs this regression won't
interfere with that.

The biggest part is preparation for selinux support, done by Vivek Goyal.
Essentially this makes all operations on underlying filesystems be done with
credentials of mounter.  This makes everything nicely consistent.

There are also fixes for a number of known and recently discovered non-standard
behavior (thanks to Eryu Guan for testing and improving the test suites).

Thanks,
Miklos

---
Al Viro (1):
      qstr: constify instances in overlayfs

Andreas Gruenbacher (1):
      ovl: store ovl_entry in inode->i_private for all inodes

Miklos Szeredi (13):
      ovl: check mounter creds on underlying lookup
      ovl: use generic_delete_inode
      ovl: simplify permission checking
      ovl: fix sgid on directory
      ovl: update atime on upper
      ovl: permission: return ECHILD instead of ENOENT
      ovl: store real inode pointer in ->i_private
      ovl: share inode for hard link
      ovl: fix POSIX ACL setting
      ovl: fix warning
      ovl: disallow overlayfs as upperdir
      ovl: clear nlink on rmdir
      ovl: simplify empty checking

Vivek Goyal (7):
      ovl: move some common code in a function
      ovl: define ->get_acl() for overlay inodes
      ovl: modify ovl_permission() to do checks on two inodes
      ovl: do operations on underlying file system in mounter's context
      ovl: do not require mounter to have MAY_WRITE on lower
      ovl: dilute permission checks on lower only if not special file
      ovl: append MAY_READ when diluting write checks

Wei Yongjun (1):
      ovl: remove duplicated include from super.c

---
 fs/overlayfs/copy_up.c   |   1 +
 fs/overlayfs/dir.c       | 226 +++++++++++++++++++++++++------------------
 fs/overlayfs/inode.c     | 246 ++++++++++++++++++++++++++++-------------------
 fs/overlayfs/overlayfs.h |  30 ++++--
 fs/overlayfs/super.c     | 178 +++++++++++++++++++++++++++-------
 5 files changed, 445 insertions(+), 236 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] overlayfs update for 4.8
  2016-07-29 11:20 [GIT PULL] overlayfs update for 4.8 Miklos Szeredi
@ 2016-07-29 19:26 ` Linus Torvalds
  2016-07-29 20:00   ` Miklos Szeredi
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Torvalds @ 2016-07-29 19:26 UTC (permalink / raw)
  To: Miklos Szeredi; +Cc: Linux Kernel Mailing List, linux-fsdevel, linux-unionfs

On Fri, Jul 29, 2016 at 4:20 AM, Miklos Szeredi <miklos@szeredi.hu> wrote:
>
> First of all, this fixes a regression in overlayfs introduced by the dentry hash
> salting.  I've moved the patch fixing this to the front of the queue, so if (god
> forbid) something needs to be bisected in overlayfs this regression won't
> interfere with that.

Thanks, I had missed that completely, and while I build overlayfs for
testing, I don't have any actual tests of it.

I decided to just remove the whole "lookup_hash()" helper again, not
only because it's now not longer used, but because it clearly isn't a
good interface with the hash of the name depending on the base
directory.

The lookup_hash() creation commit still reverted cleanly, so I just did that.

Thanks,

            Linus

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [GIT PULL] overlayfs update for 4.8
  2016-07-29 19:26 ` Linus Torvalds
@ 2016-07-29 20:00   ` Miklos Szeredi
  0 siblings, 0 replies; 3+ messages in thread
From: Miklos Szeredi @ 2016-07-29 20:00 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Linux Kernel Mailing List, linux-fsdevel, linux-unionfs

On Fri, Jul 29, 2016 at 9:26 PM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:
> On Fri, Jul 29, 2016 at 4:20 AM, Miklos Szeredi <miklos@szeredi.hu> wrote:
>>
>> First of all, this fixes a regression in overlayfs introduced by the dentry hash
>> salting.  I've moved the patch fixing this to the front of the queue, so if (god
>> forbid) something needs to be bisected in overlayfs this regression won't
>> interfere with that.
>
> Thanks, I had missed that completely, and while I build overlayfs for
> testing, I don't have any actual tests of it.
>

If you want a quick overlayfs test, do "mkdir -p /lower /upper; ./run --ov" from

  git://git.infradead.org/users/dhowells/unionmount-testsuite.git

It takes 17sec on my laptop.

Thanks,
Miklos

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-07-29 20:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-29 11:20 [GIT PULL] overlayfs update for 4.8 Miklos Szeredi
2016-07-29 19:26 ` Linus Torvalds
2016-07-29 20:00   ` Miklos Szeredi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).