summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-09-29 05:40:40 +0200
committerDave Chinner <david@fromorbit.com>2018-09-29 05:40:40 +0200
commitae29478766f4c8e16edca6fe1e25d73c47991ebe (patch)
tree0e37ce3de3e13f7a2f3c1e00651c25905c70fac6 /fs/xfs/xfs_inode.c
parentLinux 4.19-rc1 (diff)
downloadlinux-ae29478766f4c8e16edca6fe1e25d73c47991ebe.tar.xz
linux-ae29478766f4c8e16edca6fe1e25d73c47991ebe.zip
xfs: don't crash the vfs on a garbage inline symlink
The VFS routine that calls ->get_link blindly copies whatever's returned into the user's buffer. If we return a NULL pointer, the vfs will crash on the null pointer. Therefore, return -EFSCORRUPTED instead of blowing up the kernel. [dgc: clean up with hch's suggestions] Reported-by: wen.xu@gatech.edu Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
0 files changed, 0 insertions, 0 deletions