fuse: always revalidate if exclusive create
stable inclusion from stable-v5.10.160 commit 17f386e6b7695afdb10474431dfd754c92feaedd category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7P7OH Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=17f386e6b7695afdb10474431dfd754c92feaedd -------------------------------- commit df8629af upstream. Failure to do so may result in EEXIST even if the file only exists in the cache and not in the filesystem. The atomic nature of O_EXCL mandates that the cached state should be ignored and existence verified anew. Reported-by:Ken Schalk <kschalk@nvidia.com> Signed-off-by:
Miklos Szeredi <mszeredi@redhat.com> Signed-off-by:
Wu Bo <bo.wu@vivo.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment