Page MenuHomeFreeBSD

tcp: remove a condition in tcp_usr_detach() that never happens
ClosedPublic

Authored by glebius on Jul 4 2022, 7:51 PM.

Details

Summary

The comment from Robert Watson doubts that this condition ever happens.
Our analysis confirm that. Also, we found that if you manage to create
such a connection with help of some other bug, then after the "second
case" code is execute, the kernel will panic in other parts of the stack.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.