HomeFreeBSD

Improve locking in the IPV6_V6ONLY socket option handler.

Description

Improve locking in the IPV6_V6ONLY socket option handler.

Acquire the inp lock before checking whether the socket is already bound,
and around updates to the inp_vflag field.

MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D21867

Details

Provenance
markjAuthored on Oct 7 2019, 11:35 PM
Parents
rG4090e2170dd9: Assert that the PGA_{WRITEABLE,EXECUTABLE} flags do not leak.
Branches
Unknown
Tags
Unknown

Event Timeline