Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp765341rdb; Thu, 8 Feb 2024 23:40:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW+w45/g4Mebs55VMdsWtYbSYYuitqkqnjLu4MzOtPozHONFusI7DofQnMhVBAGbe5k9Z5MwjvHBw1h/f4aUeeKYliW2pKaOrXGA0sbaw== X-Google-Smtp-Source: AGHT+IGlR66gt/7/DhVihcEZNK+83oo9ypENmP02dqzFwvHJPxp8Kk436jWBQr7LL8LzfIqGxZCQ X-Received: by 2002:a17:906:2b50:b0:a38:7f89:f9d8 with SMTP id b16-20020a1709062b5000b00a387f89f9d8mr530311ejg.28.1707464414505; Thu, 08 Feb 2024 23:40:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707464414; cv=pass; d=google.com; s=arc-20160816; b=1IRvWshqAyRPrlZ9UksvaDho3oCvFQClqaMGeCTu1sLhc6gw0KwMvTrZKLasLx3oNv IEC5Piri/PZJZTQtwqcNe27hEczRk6fK0LyPcZUxF1zvOXNp5MIriyS8dbo3oyo0McP+ 8rxUEZ6a0Onybtdm3+ivsysehlu4RXr7q/Y5GTj2xXWFi7xJVi0+k3i741i+sa7Kw7uK //NYDRY5wAJG+ipQysfLwmlYHQ8Zx4vJvbVgYWYuvRoTqn6+/Q1Knhml5SuZquClzsse IRvxktN+O51HP97hHRL/bAK1K1vD5bDOhlHd95CyINAD+GATDPd8tHsP5HABL4F0J8D+ vheA== 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=P33SMvnbo67+h2F8FtkW6z8GeMVubqej+xn9kHouuEo=; fh=ufBoU1rmh34z8nApNl8BG2OWbyq04tQm1Bcy54jB7b0=; b=0DdmM4RyGYpgW5rZmhsNy4JoLP05EXws9+cDHiNDk4L+XR+FEp2X2UarbnJMmk5tnT ZCWPlpVanh3HUTyNG2/fZ+4aqIr4c2CQ7T9aDV/A2XzlO8pzXbaICs58qwNjaxZ3vBWE GVuws7qgIajWboUpa/4tJkB9yHMORz+hMLXnZXzF0QVad4ulN5mUkEK06s1wKPMItl/B vezE+Mr+FgxCzKvePpT8/KPSdKBCrLpVYYvKFdoD/9Kup0XfpPuKY4vnOai7pP89s7ry lJfik1bFXmFOMChF7S91g2LnLbtsi0VpewlmG6AkF+/37PdTsGmnhjmVVArvJBUR4WfB VtTg==; 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-59079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59079-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCV7qTYhN8eZFrb9+R+lRcpgenK6mBp073uWX6nPMNyZ57Nif/nnCEqOvGDmz26BdMlqLhEBuFCQMefJO1La+c7ZHDZX6L/VwciAr0XW9g== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n6-20020a170906688600b00a3bf8bb26e1si163329ejr.461.2024.02.08.23.40.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 23:40:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59079-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=sina.com); spf=pass (google.com: domain of linux-kernel+bounces-59079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59079-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 44B9C1F25ACC for ; Fri, 9 Feb 2024 07:40:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2682365BA7; Fri, 9 Feb 2024 07:40:06 +0000 (UTC) Received: from mail3-166.sinamail.sina.com.cn (mail3-166.sinamail.sina.com.cn [202.108.3.166]) (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 74325657D4 for ; Fri, 9 Feb 2024 07:40:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.108.3.166 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707464405; cv=none; b=RYX7w8Tazdqyz54O+pcQAvDoNvBvRVlRUHDSeJ6l6e7FQvumLCukkE0ARyMdvNd9Hn6xihN1yu6OVrhcphRXr7v9E/b6s2yZebpkxE0ObBNCJtDHVshjwDtlt+YmTrhEf63jLUjlsHbowuo/u5NHHL77pCyhpRU9JV8StVk+wF8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707464405; c=relaxed/simple; bh=pg9RKeltE5cqAky31o6Cy7jAxAxoEeCNTyYDOghAJwQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WdFDFwudRFHRTAUKnvnkFkReWNLBsCV+LUNH/5R90dnGukx534M7gaZqQubxIs5OxPkZb5OSXqsKupXuWbC4S3h3Rr4biCT9mi7Dvx8n2mOcZyNu3WN7ENtq270sVQioyHdduhyxhCEkavs0NJh0zh5yyjmRJwnzrep+rNUkVS8= 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=202.108.3.166 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)([114.249.59.61]) by sina.com (10.182.253.25) with ESMTP id 65C5D6390000462E; Fri, 9 Feb 2024 15:37:32 +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: 24899012059340 X-SMAIL-UIID: A9EB986AE86E468482C8D66ACB7B951F-20240209-153732-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 Write in __hci_acl_create_connection_sync Date: Fri, 9 Feb 2024 15:37:18 +0800 Message-ID: <20240209073719.84-1-hdanton@sina.com> In-Reply-To: <000000000000b7b62e0610db6b8a@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, 08 Feb 2024 01:27:31 -0800 > HEAD commit: b1d3a0e70c38 Add linux-next specific files for 20240208 > git tree: linux-next > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=107c2d8fe80000 #syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master --- x/net/bluetooth/hci_sync.c +++ y/net/bluetooth/hci_sync.c @@ -6553,12 +6553,14 @@ static int __hci_acl_create_connection_s if (err == -ETIMEDOUT) hci_abort_conn_sync(hdev, conn, HCI_ERROR_LOCAL_HOST_TERM); + hci_conn_put(conn); return err; } int hci_acl_create_connection_sync(struct hci_dev *hdev, struct hci_conn *conn) { + hci_conn_get(conn); return hci_cmd_sync_queue(hdev, __hci_acl_create_connection_sync, conn, NULL); } --