From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4393EC433EF for ; Wed, 6 Jul 2022 13:50:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233764AbiGFNud (ORCPT ); Wed, 6 Jul 2022 09:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232924AbiGFNub (ORCPT ); Wed, 6 Jul 2022 09:50:31 -0400 Received: from mail-io1-f72.google.com (mail-io1-f72.google.com [209.85.166.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58C4215807 for ; Wed, 6 Jul 2022 06:50:30 -0700 (PDT) Received: by mail-io1-f72.google.com with SMTP id s7-20020a5d9287000000b00678b8aa9e1aso1749031iom.11 for ; Wed, 06 Jul 2022 06:50:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=/ObOq9i9PCetyXNMRRQQc3PnpcFrRWKHOKNFDzXth8Y=; b=CGS94KeyFeOHHy+utWtHYPi9JWvcdecBUEgc3HaTw8JvYYETeub3qTXV10/nX8b6Yo 7/Zv4+GjYE6u4Bj/GCoab0/NM4vldMv2e/zZi55cJYq5l3SYFI8J3lfqELuVvxstaZ4l u0geotzo52xaWUd4Ost6eHVr9XdSVZoID5AdA7SmAqw8p0eTUpkD8PTGykAur8+fkEea SBTCWc9+crK9FLVU4A3opIX3j3ulbRVR0iFd9Mo7JGGafk769EBoPSlUV4hyhbCfYd2T dJpBMrVsmPueG5ovNe/CDol873OCIG+Y8osmiyfH26JdWqdnR9hzbpG9ogWVpvOs+jH/ h1vg== X-Gm-Message-State: AJIora9lc4s6CIiOOzyqvWcJWAyFrMRiHWSe6/br+GPUq8efia6nIFqB pwe7VOXY8vXp1uSv9s8pGr3e+noAFTFEK3evz+GALVK6E0tQ X-Google-Smtp-Source: AGRyM1t8ImqiOaezDVWfmn71B5bWPJmtE7RGKYf8NvS+4MvTHQWU7NFxK6JSI/aZP8jNglYcDkuuX7ysnkVPsDJTdt5a0d+pHI7U MIME-Version: 1.0 X-Received: by 2002:a05:6e02:16cc:b0:2da:b7b7:a7ab with SMTP id 12-20020a056e0216cc00b002dab7b7a7abmr24967520ilx.114.1657115429712; Wed, 06 Jul 2022 06:50:29 -0700 (PDT) Date: Wed, 06 Jul 2022 06:50:29 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008a396105e32340b3@google.com> Subject: [syzbot] WARNING in notifier_chain_register From: syzbot To: bigeasy@linutronix.de, bp@suse.de, davem@davemloft.net, dmitry.osipenko@collabora.com, edumazet@google.com, johan.hedberg@gmail.com, kuba@kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, luiz.dentz@gmail.com, marcel@holtmann.org, mirq-linux@rere.qmqm.pl, netdev@vger.kernel.org, pabeni@redhat.com, rafael.j.wysocki@intel.com, stern@rowland.harvard.edu, syzkaller-bugs@googlegroups.com, vasyl.vavrychuk@opensynergy.com, vschneid@redhat.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: cb71b93c2dc3 Add linux-next specific files for 20220628 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=168bb25bf00000 kernel config: https://syzkaller.appspot.com/x/.config?x=badbc1adb2d582eb dashboard link: https://syzkaller.appspot.com/bug?extid=5214f8dac5863061e37c compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13915d68080000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13dee200080000 The issue was bisected to: commit ff7f2926114d3a50f5ffe461a9bce8d761748da5 Author: Vasyl Vavrychuk Date: Tue Apr 26 08:18:23 2022 +0000 Bluetooth: core: Fix missing power_on work cancel on HCI close bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=15ea8982080000 final oops: https://syzkaller.appspot.com/x/report.txt?x=17ea8982080000 console output: https://syzkaller.appspot.com/x/log.txt?x=13ea8982080000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+5214f8dac5863061e37c@syzkaller.appspotmail.com Fixes: ff7f2926114d ("Bluetooth: core: Fix missing power_on work cancel on HCI close") ------------[ cut here ]------------ notifier callback hci_suspend_notifier already registered WARNING: CPU: 1 PID: 3898 at kernel/notifier.c:28 notifier_chain_register kernel/notifier.c:28 [inline] WARNING: CPU: 1 PID: 3898 at kernel/notifier.c:28 notifier_chain_register+0x156/0x210 kernel/notifier.c:22 Modules linked in: CPU: 1 PID: 3898 Comm: syz-executor172 Not tainted 5.19.0-rc4-next-20220628-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 RIP: 0010:notifier_chain_register kernel/notifier.c:28 [inline] RIP: 0010:notifier_chain_register+0x156/0x210 kernel/notifier.c:22 Code: 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 a5 00 00 00 49 8b 75 00 48 c7 c7 c0 d0 cb 89 e8 14 f5 e3 07 <0f> 0b 41 bc ef ff ff ff e8 5d 6f 2a 00 44 89 e0 48 83 c4 18 5b 5d RSP: 0018:ffffc9000367fca8 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffff88807ae11180 RCX: 0000000000000000 RDX: ffff888076fa3a80 RSI: ffffffff81610608 RDI: fffff520006cff87 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000080000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff88807ae11180 R14: ffff88801bb79188 R15: dffffc0000000000 FS: 0000555556682300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe4d8d866e8 CR3: 0000000070960000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __blocking_notifier_chain_register kernel/notifier.c:266 [inline] blocking_notifier_chain_register+0x6f/0xc0 kernel/notifier.c:284 hci_register_suspend_notifier net/bluetooth/hci_core.c:2752 [inline] hci_register_suspend_notifier+0x9d/0xc0 net/bluetooth/hci_core.c:2746 hci_sock_bind+0x141a/0x1630 net/bluetooth/hci_sock.c:1234 __sys_bind+0x1e9/0x250 net/socket.c:1776 __do_sys_bind net/socket.c:1787 [inline] __se_sys_bind net/socket.c:1785 [inline] __x64_sys_bind+0x6f/0xb0 net/socket.c:1785 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7fe4d8d314a9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe5c71ae28 EFLAGS: 00000246 ORIG_RAX: 0000000000000031 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fe4d8d314a9 RDX: 0000000000000006 RSI: 0000000020000240 RDI: 0000000000000004 RBP: 0000000000000003 R08: 0000000000000150 R09: 0000000000000150 R10: 0000000000000000 R11: 0000000000000246 R12: 00005555566822b8 R13: 0000000000000011 R14: 00007ffe5c71ae90 R15: 00007ffe5c71ae48 --- 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 syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches