From nobody Thu Dec 16 23:15:22 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id C665918E780F; Thu, 16 Dec 2021 23:15:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JFSdQ3q1zz3Mv6; Thu, 16 Dec 2021 23:15:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 63065112A9; Thu, 16 Dec 2021 23:15:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BGNFMJa082589; Thu, 16 Dec 2021 23:15:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BGNFMQf082588; Thu, 16 Dec 2021 23:15:22 GMT (envelope-from git) Date: Thu, 16 Dec 2021 23:15:22 GMT Message-Id: <202112162315.1BGNFMQf082588@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: d8b45c8e14c5 - main - inpcb: don't leak the port zone in in_pcbinfo_destroy() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: d8b45c8e14c53941e0bc43d20cfcbfad7691cd8f Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639696522; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zJkhO6HTvD1BZ5DClqXXTswLRyjfJmOxZFiuSFzFAFY=; b=RdKvUx6af6BAYlSA3o69er/P6fKhVsrttT7cvLIyStXmNnbGMEC/kcIftKGNrq5u5Y/SV1 mB1Jm8inRPeUBa9PkD5+2p8+pfJG4MmHcHBZvEn1FX1TOChbSq+NFKDAce+flVvd0oMWJW VDvf/v6L3M89uLg442NlyMQbDbe2kdWoiJWP15hLQKmU5fEaWPnLoYDbzROK/s33QfZld8 +8oSzTyUlf2LWDgTqOL/Nrj5N1gfcejK/pfP5Y7+5FMQCF9AQ431nm6XOtFEPWDsW5Jjzf /0BLMbZ9MK/Ip6TIulCZSszhGIbQS5UNb2m1+JbR9E1DsmnM1WWBTZqvDiqFiQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639696522; a=rsa-sha256; cv=none; b=hgVrSvpmAgqujkgPZkftzXMpNEO58p+5fC7CjAH5ufxep73diqi5cw+ThgC7AYlXmsYYWY QlIc+x5j/JqiuJI4da0Zqn2JUBiJSD+RZ5kp6szhtI6ZhawslTtgIZ+6a1NVirLk4icsGS vKE2fNMm2ZqCbkvYiOUKm9oWRhVhDAiIGNOzTR7bvUn4RBIxipAPGfUqEFwNQ7bDAQsba1 UOtth1ky0AMT0AFlwZvM83UF7xgyfEChBkJ4PeTzZkt93iXK0P98FYSpzNDQ2n889y2obM MzCiYz4AeTO+Bdce5KSeNVDLhIVarXlc7Yb+vXQFVFOivFEX3dvxqophsgQiNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=d8b45c8e14c53941e0bc43d20cfcbfad7691cd8f commit d8b45c8e14c53941e0bc43d20cfcbfad7691cd8f Author: Gleb Smirnoff AuthorDate: 2021-12-16 23:15:02 +0000 Commit: Gleb Smirnoff CommitDate: 2021-12-16 23:15:02 +0000 inpcb: don't leak the port zone in in_pcbinfo_destroy() --- sys/netinet/in_pcb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 4dc3c737b914..d9d36c1d64c4 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -559,6 +559,7 @@ in_pcbinfo_destroy(struct inpcbinfo *pcbinfo) hashdestroy(pcbinfo->ipi_lbgrouphashbase, M_PCB, pcbinfo->ipi_lbgrouphashmask); uma_zdestroy(pcbinfo->ipi_zone); + uma_zdestroy(pcbinfo->ipi_portzone); mtx_destroy(&pcbinfo->ipi_hash_lock); mtx_destroy(&pcbinfo->ipi_lock); }