[Bug 299447] sys/kern/ssl_sendfile:eagain_vs_eof test failing intermittently in CI

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 Nov 2026 00:05:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299447

--- Comment #9 from Enji Cooper <ngie@FreeBSD.org> ---
Created attachment 277241
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=277241&action=edit
repro script

I added some diagnostic output in the test when the assertions fail in the
testcase in de6328af0c8c.

If my runs are consistent with the Jenkins CI failures, what's happening is the
full buffer is supposedly being sent, as opposed to it hitting a limit--which I
can't see being set anywhere in the test code, but maybe I'm missing a key
point.

```
% sh run_ssl_sendfile.sh ssl_sendfile:eagain_vs_eof
ssl_sendfile:eagain_vs_eof  ->  failed:
/usr/src/tests/sys/kern/ssl_sendfile.c:509: c.sbytes != -1: 2097152  [0.643s]

Results file id is usr_tests_sys_kern.20261113-000244-104086
Results saved to
/home/ngie/.kyua/store/results.usr_tests_sys_kern.20261113-000244-104086.db

0/1 passed (0 broken, 1 failed, 0 skipped)
ssl_sendfile:eagain_vs_eof  ->  failed:
/usr/src/tests/sys/kern/ssl_sendfile.c:509: c.sbytes != -1: 2097152  [0.471s]

Results file id is usr_tests_sys_kern.20261113-000245-190573
Results saved to
/home/ngie/.kyua/store/results.usr_tests_sys_kern.20261113-000245-190573.db

0/1 passed (0 broken, 1 failed, 0 skipped)
ssl_sendfile:eagain_vs_eof  ->  failed:
/usr/src/tests/sys/kern/ssl_sendfile.c:509: c.sbytes != -1: 2097152  [0.613s]

Results file id is usr_tests_sys_kern.20261113-000246-894703
Results saved to
/home/ngie/.kyua/store/results.usr_tests_sys_kern.20261113-000246-894703.db

0/1 passed (0 broken, 1 failed, 0 skipped)
ssl_sendfile:eagain_vs_eof  ->  failed:
/usr/src/tests/sys/kern/ssl_sendfile.c:509: c.sbytes != -1: 2097152  [0.432s]
^C[-- Signal caught; please wait for cleanup --]

Results file id is usr_tests_sys_kern.20261113-000248-580962
Results saved to
/home/ngie/.kyua/store/results.usr_tests_sys_kern.20261113-000248-580962.db

0/1 passed (0 broken, 1 failed, 0 skipped)
zsh: terminated  sh run_ssl_sendfile.sh ssl_sendfile:eagain_vs_eof
```
I've attached the repro script to the bug that I mentioned in comment # 4.

-- 
You are receiving this mail because:
You are on the CC list for the bug.