]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: check that bc_nlevels never overflows
authorDarrick J. Wong <djwong@kernel.org>
Thu, 16 Sep 2021 19:22:08 +0000 (12:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 14 Oct 2021 16:19:32 +0000 (09:19 -0700)
commit2f6f87aafbb295e2ab0407ecf09010f6eec52d07
tree2a0519dce6ab1e02868ece89176759d571b64709
parentb2b4e95e085859fda7c54dd16d72e7dc1a1fdc09
xfs: check that bc_nlevels never overflows

Warn if we ever bump nlevels higher than the allowed maximum cursor
height.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Chandan Babu R <chandan.babu@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/libxfs/xfs_btree.c
fs/xfs/libxfs/xfs_btree_staging.c