Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2342266rbb; Tue, 27 Feb 2024 20:53:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVuckras5y7U+lR9qlb4ZtLiPvJjlIPiOSIfcXjyHoYS40H68CE45Vxr6bmzVEitJBBewb5w1+LPWZtV+qhLZ40T1TdC8x463hi66ra4w== X-Google-Smtp-Source: AGHT+IFNWxBvGoSZsHDambcmIlY9crWfin1S4p2eB8r71jVAiEqgoT9raDp7NSzQWxkM/5rhwY8k X-Received: by 2002:a05:6512:68c:b0:512:f258:7d53 with SMTP id t12-20020a056512068c00b00512f2587d53mr8639169lfe.30.1709096007535; Tue, 27 Feb 2024 20:53:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709096007; cv=pass; d=google.com; s=arc-20160816; b=u14XRZtxs5jBERnuiiojneadk/ZOWdSHCKFw5U9wuhEw/Bcj4LtllPGWt/wCXSsApW /Ol56nDzff9qd/QQhNy3WugvE52t0+dDKYGoxdNfVtepxTzHLUy3/2FIqsnUTsL/7Ie5 kdWrY+u67KU+ExlmjJ+dgCiY1qKDKEE+XRBDqGkdi9gssOHD9YFRl9PXhbO5wOe24AI1 UtH7uktgikWGAkmevw20dkucmStO5qdv6HQWGU0gwYpJ3IMU5jWJxzEzxozedog7nXdO Dl0zMfd7gzKdT2VoRrxfN/+IBSQJFFlLTanpzsVuelXn+HmCSd+ldK1NbOIJuqzP/5G0 FAaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=wLp1bsry9uAqXzf4BDbA5DbOjqtNpJoqrZgoXxy1hjA=; fh=YZCQyGeEv/hV2rLhWuFVNXPM8xnIkf8Gk1U+ZMNpccg=; b=wYk2cQ2hV7g+7lSo07to6DpBYDNehXfQ17uWrDT3qX+wi/dwMOUuarCRNsgLSfF6WW vdwzJeap4PHw0pVSNaNuChqzRYGqY//0mGqpfY/IqaHMFu2ExCc6wFpA+hgMLmJSK11X YMe/Zz0f30boQsrITQgC5me9XPykHx+uB7SyUy/qWXudtuBt3T2tkGGT0L3lzPQDuQKy so0DG0Qt65zxdrqgGA9VtLLyrdwMVwkT9uc/FAoKBgwl6/eSYtnD2X2GEsqwaavgK8ZP B6d4poYXELQzfILfJduatiWMIQ76Mm9reRtR6KqcSOUUzaiA3Oha2xGxtut8Sa/CKKhe 9Lwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2178-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2178-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cn12-20020a0564020cac00b00563c179b9a0si1365850edb.484.2024.02.27.20.53.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 20:53:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-2178-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=m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com); spf=pass (google.com: domain of linux-bluetooth+bounces-2178-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-2178-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id E2CA21F2209F for ; Wed, 28 Feb 2024 04:53:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0334920DC9; Wed, 28 Feb 2024 04:53:19 +0000 (UTC) X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-il1-f199.google.com (mail-il1-f199.google.com [209.85.166.199]) (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 167A120320 for ; Wed, 28 Feb 2024 04:53:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709095998; cv=none; b=AeyvNwAYnsWE73I9JFoKr2BmvOfKTAZDbDn6quliMLNZlUSRKgePc+ZmF5YQh72v0vvueZ4ljcgfLF6UTTWp/iom3Oe05j1vlZWTWaYOowayJJfrJozc1EfbM4YviweB5XCleU7n7GgjvcwJFohjsbyaPPtMz4EECZl8bWu5KbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709095998; c=relaxed/simple; bh=wZmkdZbXJo1h2ax0tDtCwbt9EHwto6bbJWngD1zBDe0=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=kkwZTVB2tLK5Pl8mlxtoJhFNuDuVNiL5L8QO0ti5PXxtVL0zvuP14e7uQ8H8AcT4BrdgkGfl80LGw1CTjLwPKE6f3ZAVSbl6D+7PhsPEiGkhsaVXmE9kiiFi21umQARlZYqzpNL/I5mqa8VcprxErExPDVBiwld08nZdkp6M4lU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-il1-f199.google.com with SMTP id e9e14a558f8ab-36512fcf643so34424335ab.1 for ; Tue, 27 Feb 2024 20:53:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709095996; x=1709700796; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wLp1bsry9uAqXzf4BDbA5DbOjqtNpJoqrZgoXxy1hjA=; b=T9lKffZq4TmXtcv2GMMo8nHu03I441GgMplPwR60sSTEO4lHmglXT1OltdxHUpVK23 8zyctH6lg/E7OoNQBghNecu5Bb/WDobH+BkGPqxeH56DQOu1bgmjWRIvxtVS0ZgymrEF fT/Otg/kbPYKkwJKRwIZBDMD9R0mmQxAELLxzID6g7O2aA/71vAIeYfTa5BkyE+f6Shx jNQ5rbwnnIjg0BCHR1hrWRoZelvseAM/1r2tdyheiIGbp40UUGDf/VI4wEMzM+CUweOb OHYEkMk66XG2hPBotxOy55vWPj5AllR21M+mWaOaHsZjaXmtcsZmInaZtNKJ7/yHSeTM 0Usw== X-Forwarded-Encrypted: i=1; AJvYcCWSG8tDi04fogaa/8qJMCDh2qzjgdyJLPgkJkJ1IRzOhS45bNy1INQpR/pCWN0yNhqDhouTEp6cSVf6X78toOa5yvoLIDvzGX9LuuATf8Vl X-Gm-Message-State: AOJu0YzKK6Nxt931Z0bdJH5fd5f03Q+Ihj95kxTFsK2snvi4p9lEkcAk UJmzUjQsj7+66VIQ3V/+dyckXzhJ41p9FA3GxPnzAyjrMnfPrNaFUcsbtA5QrEQAbBuQfWE6Uyu IPWkh+wCn9dsga9Gy/J0gN8J/1GLxQyjR6bmynQpbpFVLFxdrtakGM7w= Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:1808:b0:365:424a:73db with SMTP id a8-20020a056e02180800b00365424a73dbmr848046ilv.4.1709095996307; Tue, 27 Feb 2024 20:53:16 -0800 (PST) Date: Tue, 27 Feb 2024 20:53:16 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000bf4687061269eb1b@google.com> Subject: [syzbot] [bluetooth?] WARNING in hci_conn_del From: syzbot To: davem@davemloft.net, edumazet@google.com, johan.hedberg@gmail.com, kuba@kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, luiz.dentz@gmail.com, luiz.von.dentz@intel.com, marcel@holtmann.org, netdev@vger.kernel.org, pabeni@redhat.com, syzkaller-bugs@googlegroups.com, william.xuanziyang@huawei.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 603c04e27c3e Merge tag 'parisc-for-6.8-rc6' of git://git.k.. git tree: upstream console+strace: https://syzkaller.appspot.com/x/log.txt?x=12d065aa180000 kernel config: https://syzkaller.appspot.com/x/.config?x=eff9f3183d0a20dd dashboard link: https://syzkaller.appspot.com/bug?extid=b2545b087a01a7319474 compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17960122180000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15d70222180000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/ffe1f52b2e32/disk-603c04e2.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/76775e0b335d/vmlinux-603c04e2.xz kernel image: https://storage.googleapis.com/syzbot-assets/8cd3c1c87eef/bzImage-603c04e2.xz The issue was bisected to: commit 181a42edddf51d5d9697ecdf365d72ebeab5afb0 Author: Ziyang Xuan Date: Wed Oct 11 09:57:31 2023 +0000 Bluetooth: Make handle of hci_conn be unique bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1357945c180000 final oops: https://syzkaller.appspot.com/x/report.txt?x=10d7945c180000 console output: https://syzkaller.appspot.com/x/log.txt?x=1757945c180000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+b2545b087a01a7319474@syzkaller.appspotmail.com Fixes: 181a42edddf5 ("Bluetooth: Make handle of hci_conn be unique") ------------[ cut here ]------------ ida_free called for id=8192 which is not allocated. WARNING: CPU: 1 PID: 5074 at lib/idr.c:525 ida_free+0x370/0x420 lib/idr.c:525 Modules linked in: CPU: 1 PID: 5074 Comm: syz-executor104 Not tainted 6.8.0-rc5-syzkaller-00278-g603c04e27c3e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:ida_free+0x370/0x420 lib/idr.c:525 Code: 10 42 80 3c 28 00 74 05 e8 8d 4b 9b f6 48 8b 7c 24 40 4c 89 fe e8 a0 89 17 00 90 48 c7 c7 80 cd c5 8c 89 de e8 21 32 fd f5 90 <0f> 0b 90 90 eb 3d e8 45 27 39 f6 49 bd 00 00 00 00 00 fc ff df 4d RSP: 0018:ffffc900039ef920 EFLAGS: 00010246 RAX: 59cbf4b1e8f11a00 RBX: 0000000000002000 RCX: ffff88802da20000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900039efa18 R08: ffffffff81577ab2 R09: 1ffff110172a51a2 R10: dffffc0000000000 R11: ffffed10172a51a3 R12: ffffc900039ef960 R13: dffffc0000000000 R14: ffff88801e3ec0a0 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f78fc079f08 CR3: 000000002db8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: hci_conn_cleanup net/bluetooth/hci_conn.c:157 [inline] hci_conn_del+0x7c0/0xcb0 net/bluetooth/hci_conn.c:1188 hci_conn_hash_flush+0x18e/0x240 net/bluetooth/hci_conn.c:2646 hci_dev_close_sync+0x9ab/0xff0 net/bluetooth/hci_sync.c:4954 hci_dev_do_close net/bluetooth/hci_core.c:554 [inline] hci_unregister_dev+0x1e3/0x4e0 net/bluetooth/hci_core.c:2739 vhci_release+0x83/0xd0 drivers/bluetooth/hci_vhci.c:674 __fput+0x429/0x8a0 fs/file_table.c:376 task_work_run+0x24e/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa2c/0x2740 kernel/exit.c:871 do_group_exit+0x206/0x2c0 kernel/exit.c:1020 __do_sys_exit_group kernel/exit.c:1031 [inline] __se_sys_exit_group kernel/exit.c:1029 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1029 do_syscall_64+0xf9/0x240 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f78fc021449 Code: Unable to access opcode bytes at 0x7f78fc02141f. RSP: 002b:00007ffd8ebe2238 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f78fc021449 RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001 RBP: 00007f78fc0ad2b0 R08: ffffffffffffffb0 R09: 000000ff00ff4650 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f78fc0ad2b0 R13: 0000000000000000 R14: 00007f78fc0add00 R15: 00007f78fbfef4e0 --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup