Patch "Make stat/lstat/fstatat pass AT_NO_AUTOMOUNT to vfs_statx()" has been added to the 4.11-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
Make stat/lstat/fstatat pass AT_NO_AUTOMOUNT to vfs_statx()
to the 4.11-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
make-stat-lstat-fstatat-pass-at_no_automount-to-vfs_statx.patch
and it can be found in the queue-4.11 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
deccf497d804a4c5fca2dbfad2f104675a6f9102Mon Sep 17 00:00:00 2001
From: David Howells <[email protected]>
Date: Thu, 4 May 2017 23:30:16 +0100
Subject: Make stat/lstat/fstatat pass AT_NO_AUTOMOUNT to vfs_statx()
From: David Howells <[email protected]>
commit deccf497d804a4c5fca2dbfad2f104675a6f9102 upstream.
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.
--- include/linux/fs.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
include/linux/fs.h +5 -3
@@ -2921,17 +2921,19 @@ extern int vfs_statx_fd(unsigned int, ststatic inline int vfs_stat (const char __user *filename,struct kstat *stat) { -return vfs_statx (AT_FDCWD , filename,0 , stat,STATX_BASIC_STATS ); +return vfs_statx (AT_FDCWD , filename,AT_NO_AUTOMOUNT , + stat,STATX_BASIC_STATS ); }static inline int vfs_lstat (const char __user *name,struct kstat *stat) { -return vfs_statx (AT_FDCWD , name,AT_SYMLINK_NOFOLLOW , +return vfs_statx (AT_FDCWD , name,AT_SYMLINK_NOFOLLOW |AT_NO_AUTOMOUNT , stat,STATX_BASIC_STATS ); }static inline int vfs_fstatat (int dfd,const char __user *filename,struct kstat *stat,int flags) { -return vfs_statx (dfd, filename, flags, stat,STATX_BASIC_STATS ); +return vfs_statx (dfd, filename, flags |AT_NO_AUTOMOUNT , + stat,STATX_BASIC_STATS ); }static inline int vfs_fstat (int fd,struct kstat *stat) {
Patches currently in stable-queue which might be from [email protected] are
queue-4.11/make-stat-lstat-fstatat-pass-at_no_automount-to-vfs_statx.patch