diff options
author | Dave Chinner <david@fromorbit.com> | 2009-04-06 18:39:27 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@brick.lst.de> | 2009-04-06 18:39:27 +0200 |
commit | a6cb767e24b1dbedfcfa8077eab0aa2eab224038 (patch) | |
tree | fb564a9323f40f70d22e6d41c2d4709922291944 /fs/xfs/xfs_iget.c | |
parent | Revert "xfs: increase the maximum number of supported ACL entries" (diff) | |
download | linux-a6cb767e24b1dbedfcfa8077eab0aa2eab224038.tar.xz linux-a6cb767e24b1dbedfcfa8077eab0aa2eab224038.zip |
xfs: validate log feature fields correctly
If the large log sector size feature bit is set in the
superblock by accident (say disk corruption), the then
fields that are now considered valid are not checked on
production kernels. The checks are present as ASSERT
statements so cause a panic on a debug kernel.
Change this so that the fields are validity checked if
the feature bit is set and abort the log mount if the
fields do not contain valid values.
Reported-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_iget.c')
0 files changed, 0 insertions, 0 deletions