]> git.hungrycats.org Git - linux/commitdiff
xfs: disable per-inode DAX flag
authorChristoph Hellwig <hch@lst.de>
Sun, 17 Sep 2017 21:06:27 +0000 (14:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Sep 2017 06:27:51 +0000 (08:27 +0200)
commit 742d84290739ae908f1b61b7d17ea382c8c0073a upstream.

Currently flag switching can be used to easily crash the kernel.  Disable
the per-inode DAX flag until that is sorted out.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/xfs_ioctl.c

index 9c0c7a920304edf68f82c6407abc43f4bd5ee8c7..06ca244c323ae3af6940478f08b834b7707101d6 100644 (file)
@@ -1008,11 +1008,12 @@ xfs_diflags_to_linux(
                inode->i_flags |= S_NOATIME;
        else
                inode->i_flags &= ~S_NOATIME;
+#if 0  /* disabled until the flag switching races are sorted out */
        if (xflags & FS_XFLAG_DAX)
                inode->i_flags |= S_DAX;
        else
                inode->i_flags &= ~S_DAX;
-
+#endif
 }
 
 static int