Page MenuHomeFreeBSD

ktls: Add a regression test to exercise socket error handling
ClosedPublic

Authored by markj on Dec 16 2021, 5:27 PM.
Tags
None
Referenced Files
F131980824: D33517.id100163.diff
Sun, Oct 12, 4:44 PM
F131980822: D33517.id100159.diff
Sun, Oct 12, 4:44 PM
F131980819: D33517.id100219.diff
Sun, Oct 12, 4:44 PM
F131980817: D33517.id.diff
Sun, Oct 12, 4:44 PM
F131918055: D33517.diff
Sun, Oct 12, 5:12 AM
Unknown Object (File)
Thu, Oct 9, 9:11 PM
Unknown Object (File)
Tue, Oct 7, 9:55 PM
Unknown Object (File)
Fri, Sep 26, 8:36 PM
Subscribers

Details

Summary

Prior to commit 916c61a5ed37 ("Fix handling of errors from
pru_send(PRUS_NOTREADY)") this test triggered a kernel panic due to an
mbuf double free.

Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Dec 16 2021, 5:27 PM
tests/sys/kern/ktls_test.c
1743

Does the test need CBC? I would probably use an AES-GCM cipher (either 1.2 or 1.3) as the "default" cipher for testing things that aren't tied to a specific cipher suite.

markj marked an inline comment as done.

Use GCM instead of CBC

This revision is now accepted and ready to land.Dec 17 2021, 12:48 AM