HomeFreeBSD

Fix null dereference in spa_vdev_remove_cancel_sync()

Description

Fix null dereference in spa_vdev_remove_cancel_sync()

We don't really need to access space map to know where the metaslab
ends, while msp->ms_sm might be NULL.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Fixes #17164
Fixes #17359
Closes #17361

Details

Provenance
mavAuthored on May 22 2025, 2:47 PM
GitHub <noreply@github.com>Committed on May 22 2025, 2:47 PM
Parents
rGa6f20250de7f: Update 69-vdev.rules.in
Branches
Unknown
Tags
Unknown