]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: complain if anyone tries to create a too-large buffer log item
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 8 Jan 2020 00:12:24 +0000 (16:12 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 16 Jan 2020 16:07:23 +0000 (08:07 -0800)
commitea0f6b6fec00c568208492a990b7263f3db5b7f2
tree98a405563d1d9789b2529b7f2e19abdb6df7e91e
parentf99a09bbacfb9129ecc570d4df9383b5b8ccfc65
xfs: complain if anyone tries to create a too-large buffer log item

Complain if someone calls xfs_buf_item_init on a buffer that is larger
than the dirty bitmap can handle, or tries to log a region that's past
the end of the dirty bitmap.

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