]> Git Repo - linux.git/commit - fs/xfs/xfs_inode.c
xfs: check for dinode realtime flag corruption
authorChristoph Hellwig <[email protected]>
Mon, 10 Aug 2009 14:32:18 +0000 (11:32 -0300)
committerFelix Blyakher <[email protected]>
Wed, 12 Aug 2009 06:08:21 +0000 (01:08 -0500)
commitb89d4208de3de442c9025919c4261be0b38e79a4
tree3c47c8d10c3ef50e2423528d0d8db7a738928621
parente0c222c411e22f086e929cd69fdcc89336164ec1
xfs: check for dinode realtime flag corruption

Ramon tested XFS with a modified version of fsfuzzer and hit a NULL
pointer dereference in __xfs_get_blocks due to the RT device target
pointer being NULL.

To fix this reject inode with the realtime bit set on a a filesystem
without an RT subvolume during inode read.

Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Eric Sandeen <[email protected]>
Reviewed-by: Felix Blyakher <[email protected]>
Reported-by: Ramon de Carvalho Valle <[email protected]>
Tested-by: Ramon de Carvalho Valle <[email protected]>
Signed-off-by: Felix Blyakher <[email protected]>
fs/xfs/xfs_inode.c
This page took 0.051841 seconds and 4 git commands to generate.