From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C4841F543C; Tue, 17 Dec 2024 17:11:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734455492; cv=none; b=pGOAiw1KbpSu4GszPfTiuTvF4TIuX+GHWCKjOyhsyebQPa2DKQ3NCU7bL8Jr9xdj/mVnCfxrMZ0dXgTl0YHmY3p6/Nr6NZdMgiCarKKzfkPwSSdbwipQ9FbwPr1oJkFvt3vW/Sdpg5iyhRXRm1gz9fqBKfO46e4SXqsNLiKmdtI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734455492; c=relaxed/simple; bh=woxuRYY8bHPfxpHhZU7pwg3mUBvTiVhvJ3PLxFbcFQ0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=vAM1tzge0tIsjaLjMCyTX4BkbbiHyKIcaDuAzOWmZiabgUbfDFTHSxVaUl1W9LgqEsUCQWKB0UG8aRFuPOnMXZn59LuyJXH0V5AE+/qEtg7RIgjaeTgLie9SZu30aR3+xsJ/fIvF0CXJwmUIhvn/a5yLA6T411C7g2b3P4JtZ+8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LPvVtMr3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LPvVtMr3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6EF8AC4CED3; Tue, 17 Dec 2024 17:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734455492; bh=woxuRYY8bHPfxpHhZU7pwg3mUBvTiVhvJ3PLxFbcFQ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LPvVtMr3nR4+aHQx8zaeiHngnRJ8kyv161DynEi11LeOZBgeujP2QanTp5NtkoNGQ NAw3JzWW/SPdSUfPUrUDJ2uyIB9CgOJE33WbistL7JnFNj6I1XHS3ZY+LTd/NLcRMy w7cfZU4JPbyJSHkXxSycw+RjVQi8h5vEWGUKLoxs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Daniil Tatianin , "Rafael J. Wysocki" , Sasha Levin Subject: [PATCH 5.10 28/43] ACPICA: events/evxfregn: dont release the ContextMutex that was never acquired Date: Tue, 17 Dec 2024 18:07:19 +0100 Message-ID: <20241217170521.588026987@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241217170520.459491270@linuxfoundation.org> References: <20241217170520.459491270@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Daniil Tatianin [ Upstream commit c53d96a4481f42a1635b96d2c1acbb0a126bfd54 ] This bug was first introduced in c27f3d011b08, where the author of the patch probably meant to do DeleteMutex instead of ReleaseMutex. The mutex leak was noticed later on and fixed in e4dfe108371, but the bogus MutexRelease line was never removed, so do it now. Link: https://github.com/acpica/acpica/pull/982 Fixes: c27f3d011b08 ("ACPICA: Fix race in generic_serial_bus (I2C) and GPIO op_region parameter handling") Signed-off-by: Daniil Tatianin Link: https://patch.msgid.link/20241122082954.658356-1-d-tatianin@yandex-team.ru Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/acpica/evxfregn.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/acpi/acpica/evxfregn.c b/drivers/acpi/acpica/evxfregn.c index 3bb06f17a18b..da97fd0c6b51 100644 --- a/drivers/acpi/acpica/evxfregn.c +++ b/drivers/acpi/acpica/evxfregn.c @@ -201,8 +201,6 @@ acpi_remove_address_space_handler(acpi_handle device, /* Now we can delete the handler object */ - acpi_os_release_mutex(handler_obj->address_space. - context_mutex); acpi_ut_remove_reference(handler_obj); goto unlock_and_exit; } -- 2.39.5