From nobody Fri Jun 21 05:46:07 2024 X-Original-To: dev-commits-src-branches@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 4W55v33tLmz5PWd4; Fri, 21 Jun 2024 05:46:07 +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 4W55v33Hw0z4tjw; Fri, 21 Jun 2024 05:46:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718948767; 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=01s0ov1xkeT9yECFBiT4M+AdQFIU3s2WpG7TaGWbGok=; b=ksvQiFWadXcoHYRf2ntZx+4aASNXhVU+3oRLVduRehNQOpvlp/GhAGTsBCnyb4OcovuIxP apeqLF6EuQimjYK1TaE+i5l4gjQlm9hyctbk4lFMRTZlGRNwPKCj84Kjsei/QaYOb7YrX+ qn/Pnl2jynwErmF1h2r+m4woXDm8aR+ZIZncpTpAWYBv+n4Vv7jDp/ZMfdn3KfGpnFnzYD Dj0NmiaU5Pw9EsGNj7XnqOIBwbvYC2yq8mzOkIcf+zmj6py7j32RsBvMPbqPbKI4sgKBq6 pbiL+CF0i26FAYvNhH3vzp0bheVlwod9q7+FdCbSknJosFSbFIKO2s9tgu7+eQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718948767; a=rsa-sha256; cv=none; b=gQFa3bO4ccFEm7ztY/yjVtmqMAfs/DmbLstJTfkZHxY0dgXfc7gKDohZbOU7xVX0TCm89d XqtFhOREQ6B9jfZx6+M0K7Abgm3mmuq2biMwPXABxSP+vF/tza/n+dd8JeW92edm0pDPeV 3SIKsO+uGCGl8VB7j7wKy5TosH15kfGpHrfGgVvQT43NChCw6QHBF8WxwFQVl6anWJ85+Q GdjDzvnvTUvrE8RXKSHgWZcVTL3hejg5BVy74a4SpHywGjRtzWLqODpjU0SLtMFhrZaB69 m7jdxwZMdkFd+7b+xmzj7gZeHItEi7tmZQYqRiqeoLTwTHAdGHoUk2XgHGV+Ig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718948767; 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=01s0ov1xkeT9yECFBiT4M+AdQFIU3s2WpG7TaGWbGok=; b=vvp0DLbi3vK9CoZmW9+PyTQLJ6Jn/UQF/blT0IQeCV/RAky++npQW3YtdYAuJQt/9LROiV mcwskvevCcRoMN9FeipNjWUbr8ikqy5w4oHhg0/FPKVPb4/1QLT6+1RwxOenBvbHyDa/i2 +cHabuOhAD4pnGVzFqHAd7WcEAAbM3sbqkWESn1EMeTXZ1Cv1LyaoFFBc+8iMpWN+ocppA ye4p5reAx54EsU2nDtChJZd0NVzf8pMbf+SxoAOvgg8aXmkzbcy+0upEA7lsZP2KZnFryK twAoKB+gPRZV08JLrtfdcHkmsjqY/oKbRpXB7p+1GiUsfmifHBMebxWXaKskpg== 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 4W55v32vHkzwjh; Fri, 21 Jun 2024 05:46:07 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45L5k76U067236; Fri, 21 Jun 2024 05:46:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45L5k7Vn067233; Fri, 21 Jun 2024 05:46:07 GMT (envelope-from git) Date: Fri, 21 Jun 2024 05:46:07 GMT Message-Id: <202406210546.45L5k7Vn067233@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Xin LI Subject: git: 14454f417201 - stable/13 - gve: Make gve_free_qpls idempotent List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: delphij X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 14454f417201a6c1075768c1a571b22c6d4c57d2 Auto-Submitted: auto-generated The branch stable/13 has been updated by delphij: URL: https://cgit.FreeBSD.org/src/commit/?id=14454f417201a6c1075768c1a571b22c6d4c57d2 commit 14454f417201a6c1075768c1a571b22c6d4c57d2 Author: Shailend Chand AuthorDate: 2024-06-05 05:31:46 +0000 Commit: Xin LI CommitDate: 2024-06-21 05:45:58 +0000 gve: Make gve_free_qpls idempotent This fixes a panic caused by double free. PR: kern/279410 Differential Revision: https://reviews.freebsd.org/D45489 (cherry picked from commit b81cbb12410b000074483899e61e9e767ba3ec1d) --- sys/dev/gve/gve_qpl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/gve/gve_qpl.c b/sys/dev/gve/gve_qpl.c index 3c6d9af6feee..9a946a2a2f2d 100644 --- a/sys/dev/gve/gve_qpl.c +++ b/sys/dev/gve/gve_qpl.c @@ -182,6 +182,7 @@ gve_free_qpls(struct gve_priv *priv) for (i = 0; i < num_qpls; i++) gve_free_qpl(priv, i); free(priv->qpls, M_GVE_QPL); + priv->qpls = NULL; } }