svn commit: r332321 - stable/10/sys/dev/ath

Ed Maste emaste at FreeBSD.org
Mon Apr 9 12:55:10 UTC 2018


Author: emaste
Date: Mon Apr  9 12:55:09 2018
New Revision: 332321
URL: https://svnweb.freebsd.org/changeset/base/332321

Log:
  MFC r327529: ath: fix possible memory disclosure in ioctl handler
  
  Submitted by:	Domagoj Stolfa <domagoj.stolfa at gmail.com>

Modified:
  stable/10/sys/dev/ath/if_ath.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/ath/if_ath.c
==============================================================================
--- stable/10/sys/dev/ath/if_ath.c	Mon Apr  9 12:53:15 2018	(r332320)
+++ stable/10/sys/dev/ath/if_ath.c	Mon Apr  9 12:55:09 2018	(r332321)
@@ -5910,7 +5910,7 @@ ath_ioctl_diag(struct ath_softc *sc, struct ath_diag *
 		 * pointer for us to use below in reclaiming the buffer;
 		 * may want to be more defensive.
 		 */
-		outdata = malloc(outsize, M_TEMP, M_NOWAIT);
+		outdata = malloc(outsize, M_TEMP, M_NOWAIT | M_ZERO);
 		if (outdata == NULL) {
 			error = ENOMEM;
 			goto bad;


More information about the svn-src-all mailing list