svn commit: r342277 - stable/11/sys/opencrypto

Andrey V. Elsukov ae at FreeBSD.org
Thu Dec 20 08:33:13 UTC 2018


Author: ae
Date: Thu Dec 20 08:33:11 2018
New Revision: 342277
URL: https://svnweb.freebsd.org/changeset/base/342277

Log:
  MFC r342030:
    Plug memory leak for AES_*_NIST_GMAC algorithms.
  
    swcr_newsession() allocates sw_ictx for these algorithms, thus we need
    to free() it in swcr_freesession().
  
    PR:		233907

Modified:
  stable/11/sys/opencrypto/cryptosoft.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/opencrypto/cryptosoft.c
==============================================================================
--- stable/11/sys/opencrypto/cryptosoft.c	Thu Dec 20 08:28:51 2018	(r342276)
+++ stable/11/sys/opencrypto/cryptosoft.c	Thu Dec 20 08:33:11 2018	(r342277)
@@ -1054,6 +1054,9 @@ swcr_freesession_locked(device_t dev, u_int64_t tid)
 
 		case CRYPTO_MD5:
 		case CRYPTO_SHA1:
+		case CRYPTO_AES_128_NIST_GMAC:
+		case CRYPTO_AES_192_NIST_GMAC:
+		case CRYPTO_AES_256_NIST_GMAC:
 			axf = swd->sw_axf;
 
 			if (swd->sw_ictx)


More information about the svn-src-stable mailing list