Searched hist:d2a047f31e86941fa896e0e3271536d50aba415e (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_ialloc.c | diff d2a047f31e86941fa896e0e3271536d50aba415e Sun Dec 04 19:32:50 CST 2016 Darrick J. Wong <darrick.wong@oracle.com> xfs: forbid AG btrees with level == 0
There is no such thing as a zero-level AG btree since even a single-node zero-records btree has one level. Btree cursor constructors read cur_nlevels straight from disk and then access things like cur_bufs[cur_nlevels - 1] which is /really/ bad if cur_nlevels is zero! Therefore, strengthen the verifiers to prevent this possibility.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
|
H A D | xfs_alloc.c | diff d2a047f31e86941fa896e0e3271536d50aba415e Sun Dec 04 19:32:50 CST 2016 Darrick J. Wong <darrick.wong@oracle.com> xfs: forbid AG btrees with level == 0
There is no such thing as a zero-level AG btree since even a single-node zero-records btree has one level. Btree cursor constructors read cur_nlevels straight from disk and then access things like cur_bufs[cur_nlevels - 1] which is /really/ bad if cur_nlevels is zero! Therefore, strengthen the verifiers to prevent this possibility.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
|