Commit d7389c5
Always perform bounds-checking in metaslab_free_concrete
The vd->vdev_ms access can overflow due to on-disk corruption, not just
due to programming bugs. So it makes sense to check its boundaries even
in production builds.
Sponsored by: ConnectWise
Reviewed by: Alek Pinchuk <[email protected]>
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Alan Somers <[email protected]>
Closes openzfs#171361 parent 6fe338f commit d7389c5
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5406 | 5406 | | |
5407 | 5407 | | |
5408 | 5408 | | |
| 5409 | + | |
5409 | 5410 | | |
5410 | 5411 | | |
5411 | 5412 | | |
5412 | | - | |
| 5413 | + | |
5413 | 5414 | | |
5414 | | - | |
| 5415 | + | |
5415 | 5416 | | |
5416 | 5417 | | |
5417 | 5418 | | |
| |||
0 commit comments