]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: don't allow reflinked dir/dev/fifo/socket/pipe files
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Oct 2016 16:11:31 +0000 (09:11 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Wed, 5 Oct 2016 01:06:40 +0000 (18:06 -0700)
commit720886e5d3d6362b172d015c6cb1a1bff3864939
tree36e8e8f19aaa7fc813cb243509c625fd73027621
parentac569283c7036c93bc27070a6abdb03269856260
xfs: don't allow reflinked dir/dev/fifo/socket/pipe files

Only non-rt files can be reflinked, so check that when we load an
inode.  Also, don't leak the attr fork if there's a failure.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_inode_fork.c