Fix use-afer-free regression in RAIDZ expansion
commitff6266ee9bd0d6a59355b9980345819e6f68b50b
authorAlexander Motin <mav@FreeBSD.org>
Sat, 14 Dec 2024 22:02:11 +0000 (14 17:02 -0500)
committerGitHub <noreply@github.com>
Sat, 14 Dec 2024 22:02:11 +0000 (14 14:02 -0800)
treebc445ce4821c6c4db964c2e4208002170213609d
parent586304ac444f888aae584fdbea5fbeac2b76cb32
Fix use-afer-free regression in RAIDZ expansion

We should not dereference rra after the last zio_nowait() is called.
It seems very unlikely, but ASAN in ztest managed to catch it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored by: iXsystems, Inc.
Closes #16868
module/zfs/vdev_raidz.c