aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2016-08-03 07:44:27 -0400
committerMiklos Szeredi <mszeredi@redhat.com>2016-08-03 07:57:56 -0400
commitc1892c37769cf89c7e7ba57528ae2ccb5d153c9b (patch)
tree47ce773ce58dd4f584ba8baffce973b9d55a1148 /net/lapb/lapb_in.c
parent523d939ef98fd712632d93a5a2b588e477a7565e (diff)
vfs: fix deadlock in file_remove_privs() on overlayfs
file_remove_privs() is called with inode lock on file_inode(), which proceeds to calling notify_change() on file->f_path.dentry. Which triggers the WARN_ON_ONCE(!inode_is_locked(inode)) in addition to deadlocking later when ovl_setattr tries to lock the underlying inode again. Fix this mess by not mixing the layers, but doing everything on underlying dentry/inode. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> Fixes: 07a2daab49c5 ("ovl: Copy up underlying inode's ->i_mode to overlay inode") Cc: <stable@vger.kernel.org>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions