HomeFreeBSD

CAM: Keep periph_links when restoring CCB in camperiphdone().

Description

CAM: Keep periph_links when restoring CCB in camperiphdone().

While recovery command executed, some other commands from the periph
may complete, that may affect periph_links of this CCB. So restoring
original CCB we must keep current periph_links as more up to date.

I've found this triggering assertions with debug kernel and suspect
some memory corruptions otherwise when spun down disk receives two
or sometimes more concurrent requests.

Approved by: so
Security: FreeBSD-EN-22:17.cam
Sponsored by: iXsystems, Inc.

(cherry picked from commit 404f001161b975164d8b52d9f404d07ac7584027)
(cherry picked from commit 84849cfd1dc016917402511bc5a55d3d7317ce39)

Details

Provenance
mavAuthored on Apr 28 2022, 1:39 AM
markjCommitted on Jul 25 2022, 9:09 PM
Parents
rG277c0c4d2512: pam_exec: fix segfault when authtok is null
Branches
Unknown
Tags
Unknown