Make stat/lstat/fstatat pass AT_NO_AUTOMOUNT to vfs_statx()
authorDavid Howells <dhowells@redhat.com>
Thu, 4 May 2017 22:30:16 +0000 (23:30 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 4 May 2017 23:52:03 +0000 (19:52 -0400)
commitdeccf497d804a4c5fca2dbfad2f104675a6f9102
treea6944cb2b90366ef2f06c0460cefe4685dbb8e4d
parent563f40019d16e5299e9edd3eac37846760637076
Make stat/lstat/fstatat pass AT_NO_AUTOMOUNT to vfs_statx()

stat/lstat/fstatat need to pass AT_NO_AUTOMOUNT to vfs_statx() as the
pre-statx code didn't set LOOKUP_AUTOMOUNT, even though fstatat() accepted
the AT_NO_AUTOMOUNT flag.

Fixes: a528d35e8bfc ("statx: Add a system call to make enhanced file info available")
Reported-by: Ian Kent <raven@themaw.net>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Ian Kent <raven@themaw.net>
cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/fs.h