HomeFreeBSD

tcp: Fix a locking issue

Description

tcp: Fix a locking issue

INP_WLOCK_RECHECK_CLEANUP() and INP_WLOCK_RECHECK() might return
from the function, so any locks held must be released.

Reported by: syzbot+b1a888df08efaa7b4bf1@syzkaller.appspotmail.com
Reviewed by: markj
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D32975

Details

Provenance
tuexenAuthored on Nov 12 2021, 9:08 PM
Reviewer
markj
Differential Revision
D32975: tcp: Fix a locking issue
Parents
rG6913bf4c3d34: tests/divert: fix after 2ce85919bbba (IP source address validation)
Branches
Unknown
Tags
Unknown