HomeFreeBSD

tcp: Fix a locking issue related to logging

Description

tcp: Fix a locking issue related to logging

tcp_respond() is sometimes called with only a read lock.
The logging however, requires a write lock. So either
try to upgrade the lock if needed, or don't log the packet.

Reported by: syzbot+8151ef969c170f76706b@syzkaller.appspotmail.com
Reported by: syzbot+eb679adb3304c511c1e4@syzkaller.appspotmail.com
Reviewed by: markj, rrs
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D32983

Details

Provenance
tuexenAuthored on Nov 14 2021, 1:56 PM
Reviewer
markj
Differential Revision
D32983: tcp: Fix a locking issue
Parents
R10:c200441872e7: pmic: rockchip: Name the driver rk80{5,8}
Branches
Unknown
Tags
Unknown