]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ovl: take mnt_want_write() for removing impure xattr
authorAmir Goldstein <amir73il@gmail.com>
Wed, 3 Jan 2018 16:54:42 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 19:07:00 +0000 (20:07 +0100)
commit06b4cf20d166fcd17e5d4a9da24861a61bf62689
treea1a57285960effcdbd37ca8e4a58b0a781b8670b
parent65989bff55e8f2dae2b1ab4b13edbaabe9868da7
ovl: take mnt_want_write() for removing impure xattr

commit a5a927a7c82e28ea76599dee4019c41e372c911f upstream.

The optimization in ovl_cache_get_impure() that tries to remove an
unneeded "impure" xattr needs to take mnt_want_write() on upper fs.

Fixes: 4edb83bb1041 ("ovl: constant d_ino for non-merge dirs")
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/readdir.c