Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 2019 22:58:22 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r349617 - head/sys/kern
Message-ID:  <201907022258.x62MwMhW014515@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Tue Jul  2 22:58:21 2019
New Revision: 349617
URL: https://svnweb.freebsd.org/changeset/base/349617

Log:
  Invoke ext_free function when freeing an unmapped mbuf.
  
  Fix a mis-merge when extracting the unmapped mbuf changes from
  Netflix's in-kernel TLS changes where the call to the function that
  freed the backing pages from an unmapped mbuf was missed.
  
  Sponsored by:	Chelsio Communications

Modified:
  head/sys/kern/kern_mbuf.c

Modified: head/sys/kern/kern_mbuf.c
==============================================================================
--- head/sys/kern/kern_mbuf.c	Tue Jul  2 22:57:24 2019	(r349616)
+++ head/sys/kern/kern_mbuf.c	Tue Jul  2 22:58:21 2019	(r349617)
@@ -1282,6 +1282,9 @@ mb_free_ext(struct mbuf *m)
 			uma_zfree(zone_mbuf, mref);
 			break;
 		case EXT_PGS:
+			KASSERT(mref->m_ext.ext_free != NULL,
+			    ("%s: ext_free not set", __func__));
+			mref->m_ext.ext_free(mref);
 			uma_zfree(zone_extpgs, mref->m_ext.ext_pgs);
 			uma_zfree(zone_mbuf, mref);
 			break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907022258.x62MwMhW014515>