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
Unknown Object (File)
Mon, Feb 3, 8:55 AM
Unknown Object (File)
Sun, Feb 2, 10:57 PM
Unknown Object (File)
Tue, Jan 7, 6:42 PM
Unknown Object (File)
Dec 18 2024, 1:36 AM
Unknown Object (File)
Dec 17 2024, 7:47 PM
Unknown Object (File)
Dec 11 2024, 11:04 PM
Unknown Object (File)
Dec 10 2024, 2:00 PM
Unknown Object (File)
Nov 25 2024, 5:28 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43425
Build 40313: arc lint + arc unit

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