HomeFreeBSD

smp: Initialize arg->cpus sooner in smp_rendezvous_cpus_retry()

Description

smp: Initialize arg->cpus sooner in smp_rendezvous_cpus_retry()

Otherwise, if !smp_started is true, then smp_rendezvous_cpus_done() will
harmlessly perform an atomic RMW on an uninitialized variable.

Reported by: KMSAN
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

Details

Provenance
markjAuthored on May 3 2021, 4:43 PM
Parents
rG02e7a6514e63: bhyve: Set SO_REUSEADDR on the gdb stub socket
Branches
Unknown
Tags
Unknown