| b9c7cba5 | 11-Jun-2018 |
Warner Losh <[email protected]> |
Fix a bug in the counting of blks.
We shouldn't count the bytes set in c_addr for TS_CLRI and TS_BITS nodes. Those block overload c_count to communicate how many blocks follow, not now many c_addr s
Fix a bug in the counting of blks.
We shouldn't count the bytes set in c_addr for TS_CLRI and TS_BITS nodes. Those block overload c_count to communicate how many blocks follow, not now many c_addr spaces are used. Dump would dump core (now) because memory layout moved around and we'd access elements past the end to make a count.
Reviewed by: kib@
show more ...
|
| 2d518c65 | 11-Jun-2018 |
Warner Losh <[email protected]> |
Add asserts to prevent overflows of c_addr.
Add some asserts that prevents the overflows of c_addr. This can't happen, absent bugs. However, certain large filesystems can cause problems. These have
Add asserts to prevent overflows of c_addr.
Add some asserts that prevents the overflows of c_addr. This can't happen, absent bugs. However, certain large filesystems can cause problems. These have been prevented by r334968, but a solution is needed. These asserts will help assure that solution is correct.
PR: 228807 Reviewed by: db
show more ...
|