Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1849311rdh; Sat, 25 Nov 2023 05:18:32 -0800 (PST) X-Google-Smtp-Source: AGHT+IGw8ntA97pAzlbDHS58Rtg43NorF+Ygx2EZuCxfUA9/rFRUZ8nfq+XvmTVgsSwxmeU7stwt X-Received: by 2002:a05:6830:12cf:b0:6d8:114b:ec7a with SMTP id a15-20020a05683012cf00b006d8114bec7amr2285461otq.11.1700918312392; Sat, 25 Nov 2023 05:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700918312; cv=none; d=google.com; s=arc-20160816; b=kWe1Bf1GwBFwEpx+whoVRk7Y/8NzlH6ECsoGbj1Dn8jVagAIXd7+EBthwKcFDgN+Hn Z5EBysHSMjeOIQowqsXLHfZveYEuUeDS6tWu2Yzs4gB8rqYOq+lJP4i0/1uDoPIbzUfO Dj0gac8mmP85s8hp/eErKZ+hbrI25nI+5xiPjXjsnffw+0rncXusELK/WQ9nzmpVy9hQ v3rUDg5dWgJfcK5Hq3eS+RgxVDbCieUBwwHj0x3t700JvmBpFNEf+fr1k+0cMJRKlKr9 M6+4aECVm8loo+sMOn4YGHW1g99dSxu8d73pUa4c2LAfoeLwcd1/jb1lBUzOptjJmdmW 622Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:from:subject:message-id:in-reply-to:date:mime-version :list-unsubscribe:list-subscribe:list-id:precedence; bh=3woomzQ8vmDo/vvebKLz9E6d9x/Edw/g418bVAMqXbQ=; fh=OQCrDQpAn4n8srdeMzMiS21fxLEUCxPXIDn5gOnhEqw=; b=fuXUYoCg9nsVyur7/S2FsYmxoppUDCKh/Dn4J3daAcQXLboj9UJtPulJ8uaaJtyRpg bh0+pqwzblelOzXYUy2SIYD+RIwsgrEELsQy2GVN2uaFFk+5DoK2hXv6ELHb3ZUIuPLb rAlTr8xHE4tAFJ8qbSlIwufYJDbiLa5xtSR1PVnxayfmILlv1vJpDw+mXQxELRS6ha9D OKxoM6mcvCWrvb5R+7Ztp5hYb9S12Trn8cB0+so+Zq9S9g8nDEJznnS6UHuwInI+HSM7 jQIR7RnHLlzU85lwdzYH9V5aB8GsWfsedBcXfpYuEuz4BU7rcqYYcTYnqwPokloSUt1o LNiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-211-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ey18-20020a05622a4c1200b00423a3eff51asi1461227qtb.71.2023.11.25.05.18.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 05:18:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth+bounces-211-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-211-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id DBB3E1C20D35 for ; Sat, 25 Nov 2023 13:18:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 063D711189; Sat, 25 Nov 2023 13:18:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-bluetooth@vger.kernel.org Received: from mail-pl1-f205.google.com (mail-pl1-f205.google.com [209.85.214.205]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D53CB5 for ; Sat, 25 Nov 2023 05:18:23 -0800 (PST) Received: by mail-pl1-f205.google.com with SMTP id d9443c01a7336-1cfa28ab0f3so19155115ad.2 for ; Sat, 25 Nov 2023 05:18:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700918302; x=1701523102; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3woomzQ8vmDo/vvebKLz9E6d9x/Edw/g418bVAMqXbQ=; b=bauyfB88yFr4xsgP6xjFJYlbgLUmePREPZ678mbvAhYd7/p+5SH7dFzn8xb+gaO4hd vAHBi67EV4n8WZuMwhIuJ5jrXjmIHs0vwG06QbZHUMHr7xc6pbjhHc/VcLhqX1gndVO6 1T+7N+rLs6+Hy/UehJlFkPvGM3qcVA0atFgbXKICKkOj4OHx1yxhvLVx0EPOwO0Wljbl KTTAKJwrR2cvd6Zhhanb0w6ELOpF+EKMM7Icyp++K52Zp4GTOt0bhGnFIvHmqMwOlChe nBDcHe/9cXfpPa1t7sAFHZzxdzIzIMmlB8GJzDTy5y8LqAABSWa959XN4MZhOjFz4ge/ 2psQ== X-Gm-Message-State: AOJu0Ywx2kYbGWUspgi5D4FJVXGrrUkCCZW9IfbgGmjFmYCFg+Ujf/X4 dHvB7o0UkGnF6X4LSHE7db9Vi/mgsXSYxP7hf7bPOmcuo20B Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a17:903:2308:b0:1cf:75b0:42fc with SMTP id d8-20020a170903230800b001cf75b042fcmr1356608plh.4.1700918302598; Sat, 25 Nov 2023 05:18:22 -0800 (PST) Date: Sat, 25 Nov 2023 05:18:22 -0800 In-Reply-To: <000000000000a135c0060a2260b3@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000037f0f3060af9e763@google.com> Subject: Re: [syzbot] [bluetooth?] KASAN: null-ptr-deref Read in ida_free (4) From: syzbot To: johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, luiz.dentz@gmail.com, marcel@holtmann.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: 8c9660f65153 Add linux-next specific files for 20231124 git tree: linux-next console+strace: https://syzkaller.appspot.com/x/log.txt?x=1678a3cce80000 kernel config: https://syzkaller.appspot.com/x/.config?x=ca1e8655505e280 dashboard link: https://syzkaller.appspot.com/bug?extid=51baee846ddab52d5230 compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10d54c08e80000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=160ef1a4e80000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/345ed4af3a0d/disk-8c9660f6.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/191053c69d57/vmlinux-8c9660f6.xz kernel image: https://storage.googleapis.com/syzbot-assets/aac7ee5e55e0/bzImage-8c9660f6.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+51baee846ddab52d5230@syzkaller.appspotmail.com Bluetooth: hci0: hardware error 0x00 ================================================================== BUG: KASAN: null-ptr-deref in instrument_atomic_read include/linux/instrumented.h:68 [inline] BUG: KASAN: null-ptr-deref in _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] BUG: KASAN: null-ptr-deref in ida_free+0x218/0x2e0 lib/idr.c:511 Read of size 8 at addr 0000000000000078 by task kworker/u5:1/4455 CPU: 1 PID: 4455 Comm: kworker/u5:1 Not tainted 6.7.0-rc2-next-20231124-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Workqueue: hci0 hci_error_reset Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 kasan_report+0xd9/0x110 mm/kasan/report.c:588 check_region_inline mm/kasan/generic.c:182 [inline] kasan_check_range+0xef/0x190 mm/kasan/generic.c:188 instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] ida_free+0x218/0x2e0 lib/idr.c:511 hci_conn_cleanup net/bluetooth/hci_conn.c:157 [inline] hci_conn_del+0x78c/0xe10 net/bluetooth/hci_conn.c:1183 hci_conn_hash_flush+0x189/0x260 net/bluetooth/hci_conn.c:2643 hci_dev_close_sync+0x5a7/0x1160 net/bluetooth/hci_sync.c:5021 hci_dev_do_close+0x2e/0x90 net/bluetooth/hci_core.c:554 hci_error_reset+0xa6/0x190 net/bluetooth/hci_core.c:1059 process_one_work+0x8a4/0x15f0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b6/0x1290 kernel/workqueue.c:2787 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 ================================================================== --- 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.