]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: check log iovec size to make sure it's plausibly a buffer log format
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 14 Jan 2020 00:33:46 +0000 (16:33 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jan 2020 16:07:24 +0000 (08:07 -0800)
commit43ae4bb0549fdf4b1835827b1442248959943f71
tree9436eaf0077cc793ca8ebc34405d36633febfdae
parent40afe5f70c77127ffacc74a38e0641bfd6297061
xfs: check log iovec size to make sure it's plausibly a buffer log format

When log recovery is processing buffer log items, we should check that
the incoming iovec actually describes a region of memory large enough to
contain the log format and the dirty map.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/xfs_buf_item.c
fs/xfs/xfs_buf_item.h
fs/xfs/xfs_log_recover.c