]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't try to adjust a TLS TOE socket that has been closed.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 9 Dec 2020 22:36:01 +0000 (14:36 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 30 Dec 2020 17:56:24 +0000 (09:56 -0800)
commit67278475000116086fea848f22a8d0d1be885e26
tree25fe05bb74029ea091d9fcad66fbea6952424839
parentb67e440755391b4a75363173ca16e170ccbf0394
Don't try to adjust a TLS TOE socket that has been closed.

The handshake timer can race with another thread sending a FIN or RST
to close a TOE TLS socket.  Just bail from the timer without
rescheduling if the connection is closed when the timer fires.

Reported by: Sony Arpita Das @ Chelsio QA
Reviewed by: np
Differential Revision: https://reviews.freebsd.org/D27583
sys/dev/cxgbe/tom/t4_tls.c