Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1401253ybz; Fri, 17 Apr 2020 23:45:02 -0700 (PDT) X-Google-Smtp-Source: APiQypIczV3XTpyIIvB8nzYRfeZwWETOSp1R6FBP7MH3I8wkz31nSR15uRTVz3CV6LH/yfKS3H2B X-Received: by 2002:a50:9d0b:: with SMTP id v11mr6225073ede.371.1587192302762; Fri, 17 Apr 2020 23:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587192302; cv=none; d=google.com; s=arc-20160816; b=BFCNOkgmdcBzZbiKk2lW7yx6wR36Bz5XIAqmo1NfHzr1GY6IwXDCS+L8iH56271jrb rC6OLezrpUy/OSdInbQBOUun9z+qpzwckRbelym2qECYnAae1pRUYRyKjEYWCCBvyhei 5hvtjsP2AEH52aNjW/BPcOtlSVHZarNNx9//+/QcnK82VHFb/GIbs6xK3ujQXyAeWN1U y9erzvkyfnFMk+fZzT4iDci6aHfRB8j/5YTRx7EEk7JlPA8/qa89nrffA8VurgU9hFQy gRnhFyiAmtSh/I1DGfaaf99c7gp6yuei5j9akAIdlfo1hd6cnit2lv8AgChV4YpwfKwR r83A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=pXmS78UP3PIHf/SRcQHxFXu6pvUOOha8DWE8p79NAfc=; b=sL+/ZGsSr7bBctJRBMEkmejqeQRd4EAMAUegQ5xn7hcNtxyGnjoZh9QOepndU4LhvF kJ5a1ww3y7uOdxZ5p0Rk4b8zQnzXYTj0cdhF5wj4buePALUbsCYEYfIay3aN1wGZa8NO +qW206By93DIYlhfNrdVYT7V1GmewfuobVr9lx69lk5y8owmsCFS8fr1JMsmGvoA0+Ml aVW4MaNqjsSZsIMLPyTBY1iO3tYi6K+mWwA4Fn5E78f7EsXrgUqUm4BLv2I4HHJxWeaE ILDIWsN36f/7gwyJyS6z7NxgfgcgtpSXnKFuk6mprHiQY6iEibG4UAo+uFNpMaqgdfEB A1HA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w2si12452064edj.158.2020.04.17.23.44.21; Fri, 17 Apr 2020 23:45:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725887AbgDRGoQ (ORCPT + 99 others); Sat, 18 Apr 2020 02:44:16 -0400 Received: from mail-il1-f198.google.com ([209.85.166.198]:50191 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbgDRGoP (ORCPT ); Sat, 18 Apr 2020 02:44:15 -0400 Received: by mail-il1-f198.google.com with SMTP id s7so4715331ilo.17 for ; Fri, 17 Apr 2020 23:44:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=pXmS78UP3PIHf/SRcQHxFXu6pvUOOha8DWE8p79NAfc=; b=YBbk9q1ZG4ZXm2Z8AwXJwBz0Ho9QE6yyQwHhgjH+AzjQEWhZRuSFq1QzttfDFVM3f/ TmHe2+Cr0a4MpVJOgyY9wWWNXs9e1SaB5i+/njgkYoqAEfvzBHx3/639nR0ZSOFuZQo9 6JxxfKul3qRyo6bXB8us+BGI5VIQyAmc4seUtobI2GYF6QvZ5nljbVrikKk3lbM02k8y b2xc06Jqn1S7cNh5krjWRflhq9jy7bGE7z0HkvwM0l6OCzTOdAMkVtLthyfVwRiAUFwt xWyqrMjd4wl59tVrVPRa27IJZjTsd3kchdKc9qOUrWGw7U7LcK2jAy2270uippCDLKrc aSWQ== X-Gm-Message-State: AGi0PubqMCP7o83ij4gI+yl6GR8q9xnMFvhqFrC1ZXhaSKB+l0mdw1jW 4UsVaSv/q0wPXcbvQpdWt2EDc8wSGtp/RWYevsyaMOcfYaob MIME-Version: 1.0 X-Received: by 2002:a92:39dd:: with SMTP id h90mr6713306ilf.80.1587192254928; Fri, 17 Apr 2020 23:44:14 -0700 (PDT) Date: Fri, 17 Apr 2020 23:44:14 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000008b9e0705a38afe52@google.com> Subject: WARNING: refcount bug in do_enable_set From: syzbot To: davem@davemloft.net, johan.hedberg@gmail.com, kuba@kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, marcel@holtmann.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 8f3d9f35 Linux 5.7-rc1 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1182b24fe00000 kernel config: https://syzkaller.appspot.com/x/.config?x=11f10cc27c63cade dashboard link: https://syzkaller.appspot.com/bug?extid=2e9900a1e1b3c9c96a77 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) Unfortunately, I don't have any reproducer for this crash yet. IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+2e9900a1e1b3c9c96a77@syzkaller.appspotmail.com ------------[ cut here ]------------ refcount_t: underflow; use-after-free. WARNING: CPU: 0 PID: 10817 at lib/refcount.c:28 refcount_warn_saturate+0x15b/0x1a0 lib/refcount.c:28 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 10817 Comm: kworker/0:7 Not tainted 5.7.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events do_enable_set Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1e9/0x30e lib/dump_stack.c:118 panic+0x264/0x7a0 kernel/panic.c:221 __warn+0x209/0x210 kernel/panic.c:582 report_bug+0x1ac/0x2d0 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:175 [inline] do_error_trap+0xca/0x1c0 arch/x86/kernel/traps.c:267 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:refcount_warn_saturate+0x15b/0x1a0 lib/refcount.c:28 Code: c7 9a a9 f2 88 31 c0 e8 a3 fb ac fd 0f 0b eb 85 e8 5a e7 da fd c6 05 10 48 cf 05 01 48 c7 c7 c6 a9 f2 88 31 c0 e8 85 fb ac fd <0f> 0b e9 64 ff ff ff e8 39 e7 da fd c6 05 f0 47 cf 05 01 48 c7 c7 RSP: 0000:ffffc900016d7c48 EFLAGS: 00010246 RAX: 8e9964d9ee901300 RBX: 0000000000000003 RCX: ffff888089a0e5c0 RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000 RBP: 0000000000000003 R08: ffffffff815cbca9 R09: ffffed1015d06660 R10: ffffed1015d06660 R11: 0000000000000000 R12: ffffffff895f43c8 R13: dffffc0000000000 R14: ffff88809365b018 R15: ffff8880ae83b400 do_enable_set+0x63a/0x8d0 net/bluetooth/6lowpan.c:1075 process_one_work+0x76e/0xfd0 kernel/workqueue.c:2268 worker_thread+0xa7f/0x1450 kernel/workqueue.c:2414 kthread+0x353/0x380 kernel/kthread.c:268 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352 Kernel Offset: disabled Rebooting in 86400 seconds.. --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot.