Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2409668rdb; Wed, 21 Feb 2024 06:59:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVSLE+hcG1UIEUAOm7uukXzb0H2Y0UqeY2n3Zu1C9WOiHvcVjme/GQ5Rnbp9vlFnl5Xnhg0Bfk1pHsXT5RYygCaSpZxsqoK/xZ9p6Jtxw== X-Google-Smtp-Source: AGHT+IEjiXnT87m87QAv6QoIOduWCsAYOJkKY/fu320RebKzeylS5IRD08IuPwMWCe6Sf36yasq6 X-Received: by 2002:a17:906:3387:b0:a38:51c2:68a5 with SMTP id v7-20020a170906338700b00a3851c268a5mr11815543eja.7.1708527562575; Wed, 21 Feb 2024 06:59:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708527562; cv=pass; d=google.com; s=arc-20160816; b=hmB34+5O8Nn7CqQS+05A1is1Cg7C2/HJTVzOnj03vEQrpx/Pe+SHdjnGagLg3XfmjJ +RY4r5bOICXsbCsPESH0V9BHBj461b1HJDMWp2u1RdbFV//H+EaLxJxFDM7y8PFQ0Rnb YMlVjQN1A8rQYN4vA3a/s0CrEF56lSHB3y/Sfx4I8+07r5do4gofMObi4lOIXfUj1Kqv hh1kglDrMHTix8ab6fIOIdGd7Q53ndJm/ozBB5hiHI4Oouoi7bSDIbrR6VZP/N5lqQdL ZYELaqWnTtodVYUnsx4EPEkSxF3Iv1w9VK8a4ZHATde0tInKMwww/DdljGatW4+Z3BH3 P1/Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=N+0G2ZdTsC9Iod1o884oqVOm5Ko8o0yA3zGwFZP/CtQ=; fh=NPb1r/b5rG730W8F78PGfm9rcZWDM7R5wfPLua0TSWE=; b=UteI60Omfvld+t/tsc1/ZG9CkrlbfdsAGEkdseY4AP7lFrGz4XxETnV9/S5zKGOwLZ iVOatip/GA38YTBweq7/HVo/FEgzOKUO0drPwCQNhALKkUipMbkyfNT2JzJpuvm4/eTt 5iCs3vj6CriU61O5LSyMBeGjSOpwzvbeF78hwDEb2eJoPP8TlzUc93QN8rRa+6cYb/Nr MdxQYhlKj62vLCovP/Pod6ovIUTjwuZpTaRf4khFOuP87dAXWq1PeMrL+iW/WZ0A3ygN zfsuFbTopkpUIMw5EZe+5j/LTpc2d5pIMNJB8MYrm1xjaqsDieB8mjNUUXihCWphb/zj yBHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=aladdin.ru dmarc=pass fromdomain=aladdin.ru); spf=pass (google.com: domain of linux-kernel+bounces-74951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aladdin.ru Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ku11-20020a170907788b00b00a3e781b3c10si3137502ejc.504.2024.02.21.06.59.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:59:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=aladdin.ru dmarc=pass fromdomain=aladdin.ru); spf=pass (google.com: domain of linux-kernel+bounces-74951-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aladdin.ru Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 553711F2531A for ; Wed, 21 Feb 2024 14:59:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 553D37FBD5; Wed, 21 Feb 2024 14:59:11 +0000 (UTC) Received: from mail-out.aladdin-rd.ru (mail-out.aladdin-rd.ru [91.199.251.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1B2AD79DD7; Wed, 21 Feb 2024 14:58:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.199.251.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708527550; cv=none; b=CKqLMzSVUKcWnwl0Ch1GzbKLD2yrdqlWHRpyAwe89rXOiqPrcGwSd96ialDFZpiMjXAr6Q795mnHU7SbZyCGTJmNyTZGekUPkHrg5rxnXdQlLCWOWfpNPC7KLWh5GJ5DprnQBOzAmf/LNWJ3tYZjX0KGFYNXXl07683sqnQJKD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708527550; c=relaxed/simple; bh=N+0G2ZdTsC9Iod1o884oqVOm5Ko8o0yA3zGwFZP/CtQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kZPyOVaKv69qJxVAQZvxCNvgvL0jsGhN6VJ5Crx8FhFDgRxSJM6MN+/jRPWTxR3CF/bC5LI7Q/kMRMLBFCXEvcgkzN+gMeJ+gADxy0/+YcAjlsmmmPdOWiNDIro5Qt0P7V5BlpfUwOayKrhi9E3/8XRbFGQxbhuIy2B8EI9tp5U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aladdin.ru; spf=pass smtp.mailfrom=aladdin.ru; arc=none smtp.client-ip=91.199.251.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=aladdin.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aladdin.ru From: Daniil Dulov To: Greg Kroah-Hartman , CC: Daniil Dulov , Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Arkadiusz Bokowy , , , Subject: [PATCH 5.10/5.15 0/1] Bluetooth: Fix deadlock in vhci_send_frame Date: Wed, 21 Feb 2024 17:57:43 +0300 Message-ID: <20240221145744.27895-1-d.dulov@aladdin.ru> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EXCH-2016-03.aladdin.ru (192.168.1.103) To EXCH-2016-01.aladdin.ru (192.168.1.101) Syzkaller reports a potential circular dependency leading to deadlock in 5.10 and 5.15 stable releases since the commit 92d4abd66f70 ("Bluetooth: vhci: Fix race when opening vhci device") that caused this crash was backported to these branches. The problem has been fixed by the following upstream patch that was adapted to 5.10 and 5.15. All of the changes made to the patch in order to adapt it are described at the end of commit message. This patch has already been backported to the following stable branches: v6.6 - https://lore.kernel.org/stable/20231230115814.038261305@linuxfoundation.org/ v6.1 - https://lore.kernel.org/stable/20231230115807.749489379@linuxfoundation.org/ Found by Linux Verification Center (linuxtesting.org) with Syzkaller.