]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: check that bc_nlevels never overflows
authorDarrick J. Wong <djwong@kernel.org>
Thu, 28 Apr 2022 19:39:02 +0000 (15:39 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 28 Apr 2022 19:39:02 +0000 (15:39 -0400)
commit883b087c86d08df36bec5b0f78ac10b2e89981f1
treec1183f0fe985275580eaa57605745be8465cb3f6
parentec924d04b86af3edbc951b2fa90e4bea943352fa
xfs: check that bc_nlevels never overflows

Source kernel commit: 4c175af2ccd3e0d618b2af941e656fabc453c4af

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>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_btree.c
libxfs/xfs_btree_staging.c