]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: validate log feature fields correctly
authorDave Chinner <david@fromorbit.com>
Mon, 6 Apr 2009 16:39:27 +0000 (18:39 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 6 Apr 2009 16:39:27 +0000 (18:39 +0200)
commit9d116a7e0846b5a24bed26727ac5afea670fec7e
treefb564a9323f40f70d22e6d41c2d4709922291944
parenta92b1a830f3162d123491b4c16fe3bf231360af0
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>
fs/xfs/xfs_log.c