diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-11-28 03:23:31 (GMT) |
---|---|---|
committer | Niv Sardi <xaiki@sgi.com> | 2008-12-01 00:06:44 (GMT) |
commit | bac8dca9f9b1dfcf9c4ecb4f9ca17185b828cc20 (patch) | |
tree | fa26840c5e85eeed63575615c140f2913e6d9189 /fs/xfs/xfs_vnodeops.c | |
parent | b5a20aa2657063cbf3b47fc700603180de4bb554 (diff) | |
download | linux-fsl-qoriq-bac8dca9f9b1dfcf9c4ecb4f9ca17185b828cc20.tar.xz |
[XFS] fix NULL pointer dereference in xfs_log_force_umount
xfs_log_force_umount may be called very early during log recovery where
If we fail a buffer read in xlog_recover_do_inode_trans we abort the mount.
But at that point log recovery has started delayed writeback of inode
buffers. As part of the aborted mount we try to flush out all delwri
buffers, but at that point we have already freed the superblock, and set
mp->m_sb_bp to NULL, and xfs_log_force_umount which gets called after
the inode buffer writeback trips over it.
Make xfs_log_force_umount a little more careful when accessing mp->m_sb_bp
to avoid this.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_vnodeops.c')
0 files changed, 0 insertions, 0 deletions