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 B42C01F866C; Tue, 17 Dec 2024 17:14:12 +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=1734455653; cv=none; b=SP7EiwVydG4mPVs4oLgcoe1x895o9qi+SeuaFe3hCr/Kr/dXUWqi2MP94K9qmBbfnzD/3GOemIu5ydQdVvYmo4F07zdsGfJt5VBaRkCWqZo9ok3XDnvACEGkObSdGd5LQ+BtQRbvuttkQot85OFhyicpELuCHWUEn7GGfRIMkdg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734455653; c=relaxed/simple; bh=+yel2INbR3+9kJNB2wWjkylhx6oTlT26YhFF2cV3g68=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I1uthAjFIt5RLdd1vaOnoQWmwol7b3YUEzd7CxcADNuem2FOLp5je/srHZ5nsOS8PpnBeAJZTQftatVZWbbnvgCFDuZQ+z53RLVlPyTRSLDh7929MJXo4g1TgUc9oOz/DVQta6KCVo/vQ6oFWWzx2W7jTp40QBbbMRV5tXKLtlg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1q8Sy1sF; 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="1q8Sy1sF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8C33C4CED3; Tue, 17 Dec 2024 17:14:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1734455652; bh=+yel2INbR3+9kJNB2wWjkylhx6oTlT26YhFF2cV3g68=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1q8Sy1sF7EWwLtgFLUkaAcX+CIan/sa8VRwnVyoZnn+2T0/DOVrokhTmXlksR+bqJ ns8vdfjHuRukpIWO1B+whJBUsV0N5YDZnLaj0r9eLCjcuyW89NUiTQ2wYTss+1j7jH p9QHXv5K80zKYf8bRGi17RFZ8ITYc9U1jnWsFAfI= 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.15 38/51] ACPICA: events/evxfregn: dont release the ContextMutex that was never acquired Date: Tue, 17 Dec 2024 18:07:31 +0100 Message-ID: <20241217170521.983384828@linuxfoundation.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241217170520.301972474@linuxfoundation.org> References: <20241217170520.301972474@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.15-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 b1ff0a8f9c14..7672d70da850 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