Page MenuHomeFreeBSD

ktls: Don't leak ktls session objects for certain errors.
ClosedPublic

Authored by jhb on Nov 11 2022, 1:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 1:59 PM
Unknown Object (File)
Oct 2 2024, 11:51 PM
Unknown Object (File)
Sep 28 2024, 3:58 AM
Unknown Object (File)
Sep 23 2024, 9:34 PM
Unknown Object (File)
Sep 17 2024, 4:08 PM
Unknown Object (File)
Sep 17 2024, 11:21 AM
Unknown Object (File)
Sep 6 2024, 2:19 AM
Unknown Object (File)
Sep 4 2024, 6:40 AM
Subscribers

Details

Summary

ktls_cleanup() does not free ktls session objects, it merely
cleans (and frees) members of the object.

Change callers to use ktls_free() or ktls_destroy() instead.

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 48279
Build 45165: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Nov 11 2022, 1:58 AM
sys/kern/uipc_ktls.c
747

Possibly this could use ktls_free() instead as the refcount should always be 1 at this point.

markj added inline comments.
sys/kern/uipc_ktls.c
747

I think I slightly prefer that.

This revision is now accepted and ready to land.Nov 11 2022, 5:02 PM