[Bug 268390] Kyua KTLS tests (*bad_minor, *bad_major) fail randomly

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 15 Dec 2022 18:46:21 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268390

--- Comment #1 from John Baldwin <jhb@FreeBSD.org> ---
I have a series of reviews for this already.  I haven't yet patched it to
permit ECONNRESET errors from close().  However, it's curious that usleep()
makes a difference.  I would suspect that would not help as my understanding of
the race is that the receiving end of the socket pair notices that the error
and drops the connection before the sending end calls close() hence close()
returning ECONNRESET.  The usleep() should only make that worse as the error
detection and drop is triggered by receiving the packets, not by the call to
recvmsg().

https://github.com/CTSRD-CHERI/cheribsd/issues/1566 is the first review in the
series, though I haven't yet uploaded a workaround for spurious close() errors.
 The third patch deals with spurious errors from shutdown().

-- 
You are receiving this mail because:
You are the assignee for the bug.