HomeFreeBSD

Handle negative return values from syncache_expand().

Description

Handle negative return values from syncache_expand().

These errors do not clear so to NULL, so the existing check was
treating these failures as success. The rest of do_pass_establish()
then tried to use the listen socket as if it was a connection socket
newly created by syncache_expand().

In addition, for negative return values, do not send a RST to the
peer.

Reported by: Sony Arpita Das @ Chelsio
Sponsored by: Chelsio Communications

(cherry picked from commit 1deaad936417ed2315476718fbd2648de08585bf)

Details

Provenance
jhbAuthored on Feb 17 2021, 9:28 PM
Parents
rG9db8b85a942d: linuxkpi: Remove unneeded {} in atomic_dec_and_lock_irqsave()
Branches
Unknown
Tags
Unknown