Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp59506lql; Fri, 12 Apr 2024 03:52:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTTzG38iunycmjQZX6wMKOzx4xEx129ZVtJ+kjrZu0NW1oWaDcHPE0eaj8dKFMEO+t8f4DwV69z2k5YyCro2P6N2fymz7j211xZ1PXug== X-Google-Smtp-Source: AGHT+IGrZlWPgESMqIwgexvO0D8fqTArqVyxpLSy3ceuLEbYnM7FU/FuMmI2NgMZk0h2MQeiizz8 X-Received: by 2002:a17:902:da90:b0:1e0:62bc:68d4 with SMTP id j16-20020a170902da9000b001e062bc68d4mr2784490plx.14.1712919154969; Fri, 12 Apr 2024 03:52:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712919154; cv=pass; d=google.com; s=arc-20160816; b=tcxe8ea5YwpoX1mPYcItx1U9W0xCp/sp/YESOuTlb52QCbRsL7vlNf7HCYtmNnY1qS HucPGQ2Hnlcr9J5K50AzONpZ+xZYyVHpmf9zJWBSBAgBXUj/M6feWOfvDzRd5+UDe40H DinJmEUHxl884FoPr5TunnSy6KmpyZUkVhWV/58EQV+ej0IgxfMDVjHiAN8O+mW+6ANP wn0U/q22yVzi0mH5MdSBZRaMSadiupvXNH0D4bRuBS29jAFAQBv4yllXDWuhr9Ux2TN5 kQcmUEwcE/95FbZPUobPPB4qjc6d3aWZlp2ZNgFNMQPoIxswY2qm7huGutWntwBb7fB+ /0sQ== 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:references:in-reply-to:message-id :date:subject:cc:to:from; bh=DcFboIt9uyHyI8O4/isfJDyL14BSHCa4pzaPkYd3koU=; fh=D1GEPBt/J/faEDdyMWZ2g5PDosFeVwDrEPbIQ4pbAbE=; b=hSaB5OC0zn5X5Zv5WaWQsD4UW/uxJTBKDmOuu+MQ7EGn2A4AKL96Q1C1FOu33h/QBA 2HAwT3fCbwNBPRwjNIl9siW9/MA8QA/mF0GSxj7CS8Bfc5Owl87iCS//C2dl+W3f9XPE SdBfR0deLSoXYcU0G1ckKhdJNHqfXENYB0YlMcRJj6V5rp10+KHRd7Yv+duwrUUwDfiI bjKwFxhazS/WG25UelX7867CyrrusarbYctYE6pN5toqJOx9N7YhglxyKjmpaX4iRe6s w3721mjycCl4c+NJ3k7nQbJFkRXYvBawp+K67/BynnIWb59qHTZoz5mygj5epUDa9dEE NZUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-142525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142525-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d13-20020a170902654d00b001e3f28cc719si2979372pln.238.2024.04.12.03.52.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 03:52:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-142525-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142525-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 07B61B24448 for ; Fri, 12 Apr 2024 10:45:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 948E75478B; Fri, 12 Apr 2024 10:44:59 +0000 (UTC) Received: from mail114-241.sinamail.sina.com.cn (mail114-241.sinamail.sina.com.cn [218.30.114.241]) (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 2143C53811 for ; Fri, 12 Apr 2024 10:44:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=218.30.114.241 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712918699; cv=none; b=rIKnAD02NFjOyDkXPx099Do1/TgrstAxme5uCwpIuSkNoE8PsmmoYpOpHN68BKlzcb+gazZawLzkDqcUoYOtLJL8sTJBfYddq94r4fqTNdXU2SH8oE+SKYYke3GJmhLeepevF9p8xusiDAB18KlAjUKrjmdewLu/2xYoR4/JOuY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712918699; c=relaxed/simple; bh=8nFo+yRqMv596zXcQc6sLKYB+Lj/1HuhPa2dqAQa7Dk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oUbA/rnlrfVugta1hA8DAzY8cvpj/330P9Z/7cyqqNVFfIjC5LOCEf0V26jEnbXEasHQX4t3IGjhfr/ETqRwxp7nr3DMuiNPdTVQffO3DVTL9cBANDAy13T3cjRIS5b07psTXU5t3p7xQjWhUjZrpNcPIjhHQEqxhSXrdzxf7Ac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com; spf=pass smtp.mailfrom=sina.com; arc=none smtp.client-ip=218.30.114.241 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sina.com X-SMAIL-HELO: localhost.localdomain Received: from unknown (HELO localhost.localdomain)([116.24.9.151]) by sina.com (172.16.235.24) with ESMTP id 6619109B00004B38; Fri, 12 Apr 2024 18:44:45 +0800 (CST) X-Sender: hdanton@sina.com X-Auth-ID: hdanton@sina.com Authentication-Results: sina.com; spf=none smtp.mailfrom=hdanton@sina.com; dkim=none header.i=none; dmarc=none action=none header.from=hdanton@sina.com X-SMAIL-MID: 93202645089280 X-SMAIL-UIID: 755B8131DDD049A3A1211D4265FD5FEC-20240412-184445-1 From: Hillf Danton To: syzbot Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [bluetooth?] KASAN: slab-use-after-free Read in __hci_req_sync Date: Fri, 12 Apr 2024 18:44:39 +0800 Message-Id: <20240412104439.824-1-hdanton@sina.com> In-Reply-To: <0000000000009ffb1d0615deec6b@google.com> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit On Thu, 11 Apr 2024 21:44:17 -0700 > syzbot has found a reproducer for the following issue on: > > HEAD commit: 00dcf5d862e8 Merge tag 'acpi-6.9-rc4' of git://git.kernel... > git tree: upstream > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=179a3b4d180000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 00dcf5d862e8 --- x/net/bluetooth/hci_request.c +++ y/net/bluetooth/hci_request.c @@ -102,6 +102,7 @@ void hci_req_sync_complete(struct hci_de { bt_dev_dbg(hdev, "result 0x%2.2x", result); + hci_req_sync_lock(hdev); if (hdev->req_status == HCI_REQ_PEND) { hdev->req_result = result; hdev->req_status = HCI_REQ_DONE; @@ -111,6 +112,7 @@ void hci_req_sync_complete(struct hci_de } wake_up_interruptible(&hdev->req_wait_q); } + hci_req_sync_unlock(hdev); } /* Execute request and wait for completion. */ --