Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1754672lqs; Sun, 16 Jun 2024 03:15:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMCIE8u5Nu3Zabj3gtq79bJto7FCGAl+yCdtg2rdfvb49VsrifiRmKVLjDV7nirmsu/3k0qfJk6n9mpfVEuKbrWefpn03FFiutv1vQww== X-Google-Smtp-Source: AGHT+IE+3MvwuE7GMFh43+mitbg2t/gltv0dgKEx9kGMFHeKbxTyyLz+wxNJFUqiJym0t5nnY0jY X-Received: by 2002:a05:6870:d383:b0:254:ac99:1152 with SMTP id 586e51a60fabf-25842baade0mr6391118fac.58.1718532921374; Sun, 16 Jun 2024 03:15:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718532921; cv=pass; d=google.com; s=arc-20160816; b=Fan+1HHG6x9e3GwF1hWdZ8Jjrnw1Xl/ttBwxqsNtqvOWU0elyCMfGa+RT4jGrPFCVf UrS4pKt5R1gxMMkBW38H8qfKaYk2tHw2p+SJFAb4A7aZ8JcaEmbpN/oHNRuERzfe6YXv tqvoAWEeCng9mm8rZRFVvJcy8l8+7jHDEoau8CfDLFpW8u5//FZkVCdiyglWQLGmduZl CgjCF3JeIWx/BwKra5n+axclgHPGLA39vNtz7HKWZg/KmW2MxrWIwmBKbHasS+pv/MMU SHLOg0xOU8buBv91BOLvKXuQh7/3XW21x5A6sl0s/kNEKvM7T5ja3PGXYkuA2HawdiCt 7tzw== 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:date :subject:cc:to:from:message-id:dkim-signature; bh=nQAQUGvxdV9799RXPsMU4zrVkbRhR+J4U2lakqMxzic=; fh=+4WfJiGNVQc3To1/Ggqe9Wqu1QE4vecmYcvtdz6qdXE=; b=sn3v46367rwnQiqazvm65hIbZIGL7z0WVe37lAB0d2u3d6LUaH1jO69qVYs0MHPZo2 d7jfm1AEWs7UlU+y6vKhEmm/+bQkUgr3bxRQnGT8wVR3cWOeH+b8uLJBB/ErRZaDq8DM Dmuk8jdom5bLS+/kFcnvAc8agOISoOAdxNZ/zMZ8G/jVFZGoHEKYQsSjgPfaIV/FSg5d pqTKKx1XZUPRuFdWSbcT26qY3ErsZsHz56g91HpO+BMwMUatoQLkVDDOtiErJMr2zoSo gyc0meS2ilMB1pj+bZjwzdVOCrRVcphzY/i/vo92K11OPI4lknTsHGYA8d/V59D/kTnN Qayg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=iepyZUp9; arc=pass (i=1 spf=pass spfdomain=qq.com dkim=pass dkdomain=qq.com dmarc=pass fromdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-216231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d2e1a72fcca58-705ccb7270asi7151471b3a.258.2024.06.16.03.15.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 03:15:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-216231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=iepyZUp9; arc=pass (i=1 spf=pass spfdomain=qq.com dkim=pass dkdomain=qq.com dmarc=pass fromdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-216231-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-216231-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=qq.com 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 0173DB210B6 for ; Sun, 16 Jun 2024 10:15:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F31F0186E49; Sun, 16 Jun 2024 10:15:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="iepyZUp9" Received: from out203-205-221-233.mail.qq.com (out203-205-221-233.mail.qq.com [203.205.221.233]) (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 C1CAC16C693 for ; Sun, 16 Jun 2024 10:15:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.205.221.233 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718532910; cv=none; b=hJHVKDaTl7UcCQNlQ+OYkILGvWD8j0CFSybtz3G8mfWDLGGZt8pDDUrUwZzxeENG/HFeaERa8jeBQQ85j8bc2cnbGZU62C5ig3843K1O2gCfr7j2YCJ1dGUPEtCFgQQ9GdVOT3l+38gPkUkgSAdtN/qISUJdwpXsPPpO2px1we8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718532910; c=relaxed/simple; bh=LCdGacQwPFIfe/ZlFMMdJTaKa5bQS8OLvSOiKyjGQ3w=; h=Message-ID:From:To:Cc:Subject:Date:In-Reply-To:References: MIME-Version; b=JwuKE3siWlsyVH1NoLXQZYzxqei+vHnG1GNuoHEwFSiv2j9+WRCyJPyINQ+8sPSJfSEG4V0gfXs6cN8fYqpHi+D0enND1fnBy5Pgk3TsoF7TnF3Z9AUBFpE9+EX6g8DoUo7kizK//CnMqlD+qFDJsDis6ehD9yim8W9WDz1SdCY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com; spf=pass smtp.mailfrom=qq.com; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=iepyZUp9; arc=none smtp.client-ip=203.205.221.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=qq.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qq.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1718532894; bh=nQAQUGvxdV9799RXPsMU4zrVkbRhR+J4U2lakqMxzic=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=iepyZUp9ISsvWhBfJVEWhVGqof58VWpXdE+wa8Yt+GZnO6fPaA2Abis40TKeHhWSL Bjg/n6pVjycMshnQ1mMsFYQlAFGstbp7OFsFYAY8QwdO6w0f+YfEak5i+BaDIL7Ls4 hvuz9hURFSV+12ApAgF9eembG7nds8+bA4jNSU4E= Received: from pek-lxu-l1.wrs.com ([111.198.228.103]) by newxmesmtplogicsvrsza29-0.qq.com (NewEsmtp) with SMTP id 3B520074; Sun, 16 Jun 2024 18:14:53 +0800 X-QQ-mid: xmsmtpt1718532893tfkc8v2op Message-ID: X-QQ-XMAILINFO: NJ/+omVLhVgaX/PYGcCq99TJv+z6+PzM4rN26h3RbGB+eJj7UkdTJNGJKVd97g Qk6CDt4bctnkAkHiJPEVpdSTz+/wNCrExE28OLRYKGhjxKtwj63kFvxFkRNBArqDj+h3RqLqrYvG hwec2DFAcq3XvcQc+y/diUx+5+yX+pmls49z4qMrD+5dLnjBlqyAR9UTODT9wuYPFvbI2jfTdCtf DI5ghPezwCXuZco0TAX+Bg/cn2ZZ59gCvvyCz9T6so/AS/yEJ3GYqdFRa/Wex5sUm/H+10zG1gOv 50cDK62TAZ78gVxjtJzUuv4h4cyCnl3dhjUQFm4NCdxzJpSIA/NWvVgqDpC0/NePIojSqiaxWaKc 8jkKjA0g81PwBdRohUqDu+5occSxXvDTEJKsFqMbdgoCIYX7QLgYb3eHkMj0kp8yPv/+kQKlpMGw XWn3Uh0dWzyQFzc+ORYH+tAJOFb5hJQHj1Swf+HVXT5DyM2LNFtRkQHwt3XwZ9syVIGjaaxbnnnJ XU/H0MVFSDMgCDHrP3RjgUN7kBi46YipyCFUrS21R1trIEb/RQB/mVXYUNg4WsXb0PkBaP56dRno qCFMdRn+aK9FvraMFtenv2UlWkZAR7Aw+FR3GMQLRACo1D/pI3EbRpqd9Su0tWYKEiKa5FMQREcQ UrvuoINAIjmHJnV3qs18nOHArhJwQO3VzvROKNj3Mu46GOY3lKhO8IWWj4+IB+T5f3bxi480Pvy5 u3F/Tgv4Zm8pb8/trsnwvlZ4Rs9oOjkVOpT4gADo4Lgdn7lhj2Tq67s150A2b2JE5CgWJZ6vzVv2 JThT9v+TZEIj8aIvgVjX+35GgLlLVD51PDIKAMrnc56itzAzNs3F2A+MzRP28sYoJxAxYytbF27m 8mapIxAUaiF6KyrJfwcXY5K4v0+QVB57hid+mhtQCcAyXHW+uR8SimSl905Gt6aG1OGT9S0ANa X-QQ-XMRINFO: OD9hHCdaPRBwq3WW+NvGbIU= From: Edward Adam Davis To: syzbot+b2545b087a01a7319474@syzkaller.appspotmail.com Cc: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Subject: Re: [syzbot] [bluetooth?] WARNING in hci_conn_del Date: Sun, 16 Jun 2024 18:14:53 +0800 X-OQ-MSGID: <20240616101452.407029-2-eadavis@qq.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <000000000000bf4687061269eb1b@google.com> References: <000000000000bf4687061269eb1b@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit please test wrn #syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 603c04e27c3e diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index a487f9df8145..4130d64d9a80 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -6893,6 +6893,9 @@ static void hci_le_big_sync_established_evt(struct hci_dev *hdev, void *data, bis = hci_conn_hash_lookup_handle(hdev, handle); if (!bis) { + if (handle > HCI_CONN_HANDLE_MAX) + continue; + bis = hci_conn_add(hdev, ISO_LINK, BDADDR_ANY, HCI_ROLE_SLAVE, handle); if (IS_ERR(bis))