]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: update ->f_iocb_flags when ovl_change_flags() modifies ->f_flags
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 24 Nov 2022 17:03:11 +0000 (17:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:29:00 +0000 (11:29 +0100)
commit9732a4ebe0f17bb264832fe16ae30f9dbfd0500a
tree35f43de094a0bea36010dedd0165459bf2d4dfa8
parentc21e83124d7f2c311de5b1990f5792189a1c5757
ovl: update ->f_iocb_flags when ovl_change_flags() modifies ->f_flags

commit 456b59e757b0c558df550764a4fd5ae6877e93f8 upstream.

ovl_change_flags() is an open-coded variant of fs/fcntl.c:setfl() and it
got missed by commit 6518348f1994 ("keep iocb_flags() result cached in
struct file"); the same change applies there.

Reported-by: Pierre Labastie <pierre.labastie@neuf.fr>
Fixes: 6518348f1994 ("keep iocb_flags() result cached in struct file")
Cc: <stable@vger.kernel.org> # v6.0
Link: https://bugzilla.kernel.org/show_bug.cgi?id=216738
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/file.c