[GIT PULL] fix overlayfs deadlock in file_remove_privs()

From: Miklos Szeredi
Date: Wed Aug 03 2016 - 12:31:42 EST


Hi Al,

Please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/mszeredi/vfs.git for-viro

This fixes the deadlock introduced by making the suid removal actually work on
overlayfs.

Responsible commit 07a2daab49c5 ("ovl: Copy up underlying inode's ->i_mode to
overlay inode") unfortunately slipped through my testing and 4.7 was released
with this bug.

Two more patches are cleaning away unneeded exports of related helpers.

Thanks,
Miklos

---
Miklos Szeredi (3):
vfs: fix deadlock in file_remove_privs() on overlayfs
vfs: remove file_needs_remove_privs()
vfs: make dentry_needs_remove_privs() internal

---
fs/inode.c | 7 +++----
fs/internal.h | 1 +
include/linux/fs.h | 5 -----
3 files changed, 4 insertions(+), 9 deletions(-)