Page MenuHomeFreeBSD

Don't leak a session and lock if a GMAC key has an invalid length.
ClosedPublic

Authored by jhb on Apr 4 2017, 4:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 4:58 PM
Unknown Object (File)
Tue, Sep 30, 10:37 AM
Unknown Object (File)
Mon, Sep 29, 11:49 AM
Unknown Object (File)
Sun, Sep 28, 5:06 PM
Unknown Object (File)
Sun, Sep 28, 4:52 PM
Unknown Object (File)
Wed, Sep 17, 1:51 PM
Unknown Object (File)
Fri, Sep 12, 9:06 AM
Unknown Object (File)
Sep 7 2025, 5:54 AM
Subscribers

Details

Test Plan
  • Run a buggy gcm test that did not set the hash key only the cipher key (so the hash key length was 0). Observe panic on return to userland due to leaked lock.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

delphij added a subscriber: delphij.

Looks good to me.

This revision is now accepted and ready to land.Apr 4 2017, 5:06 PM
This revision was automatically updated to reflect the committed changes.