[GIT PULL] overlayfs fixes for 5.11-rc7

From: Miklos Szeredi
Date: Thu Feb 04 2021 - 04:20:41 EST


Hi Linus,

Please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git tags/ovl-fixes-5.11-rc7

- Fix capability conversion and minor overlayfs bugs that are related to
the unprivileged overlay mounts introduced in this cycle.

- Fix two recent (v5.10) and one old (v4.10) bug.

- Clean up security xattr copy-up (related to a SELinux regression).

Thanks,
Miklos

---
Amir Goldstein (1):
ovl: skip getxattr of security labels

Liangyan (1):
ovl: fix dentry leak in ovl_get_redirect

Miklos Szeredi (4):
ovl: add warning on user_ns mismatch
ovl: perform vfs_getxattr() with mounter creds
cap: fix conversions on getxattr
ovl: avoid deadlock on directory ioctl

Sargun Dhillon (1):
ovl: implement volatile-specific fsync error behaviour

---
Documentation/filesystems/overlayfs.rst | 8 ++++
fs/overlayfs/copy_up.c | 15 ++++----
fs/overlayfs/dir.c | 2 +-
fs/overlayfs/file.c | 5 ++-
fs/overlayfs/inode.c | 2 +
fs/overlayfs/overlayfs.h | 1 +
fs/overlayfs/ovl_entry.h | 2 +
fs/overlayfs/readdir.c | 28 +++++---------
fs/overlayfs/super.c | 38 +++++++++++++++----
fs/overlayfs/util.c | 27 +++++++++++++
security/commoncap.c | 67 +++++++++++++++++++++------------
11 files changed, 136 insertions(+), 59 deletions(-)