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 X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D41C9C433B4 for ; Mon, 17 May 2021 09:15:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AB1AD6024A for ; Mon, 17 May 2021 09:15:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235988AbhEQJQN (ORCPT ); Mon, 17 May 2021 05:16:13 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:48990 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235968AbhEQJNc (ORCPT ); Mon, 17 May 2021 05:13:32 -0400 Received: by mail-io1-f69.google.com with SMTP id y191-20020a6bc8c80000b02904313407018fso2870244iof.15 for ; Mon, 17 May 2021 02:12:16 -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=mRyf9lv2g3j7nk1w/H4T1H1jAQgqzoEpGRqMuq86u2E=; b=F/LWBV+h1tj1FtXvkiSLJhk2n8LzBIeywrOH+ke2v8okoa1AHlaLdg+/3I01BstBGA LgJ9Ky64eX7EMNGnmcB8h6ZUzoZ+SzRqpMmz2njsOW8b/CYWTJ5H2gx4AGl2DhTvkrqt Zkpfts+c2I6PoWg37uxK1eBNON+GwK9pr2qrClX7wgtxgPws16hYNGGuw21GEiALrbcT UuqFgYGGu2f4IUvJQE33fOfnD/IkYTW1Uluf/h47Y6SSbVVcOLRGqy4LAI7X7GKg/QP8 gnbWftl/dyhxCKCfMrUHw3SgsT0YlSEQkm/t94P9ikDP5QH7yxwK8FcCcSzL4gSOuAuw IRUQ== X-Gm-Message-State: AOAM531qR7TJ1iZaaE+An3ueA77Q4SFivsA5xFjBkJM6hoi1KXP9HnVy 9wziYZXQ7XRpTFVp8UuvTBTDDrTgmGRWl+Mf1ij+q5v86gK5 X-Google-Smtp-Source: ABdhPJyw89HcafgTnmnXd8Q0mhLCT8K6VI+UsYJH2lobE3ZOmBIIsPzLBSnQG2WX+XN+ZZl9SZvDwQ/xb7l6drPRY+J3+UJmZYnw MIME-Version: 1.0 X-Received: by 2002:a5e:930d:: with SMTP id k13mr43881968iom.61.1621242736388; Mon, 17 May 2021 02:12:16 -0700 (PDT) Date: Mon, 17 May 2021 02:12:16 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000065b14e05c282fd15@google.com> Subject: [syzbot] memory leak in mgmt_cmd_complete From: syzbot To: davem@davemloft.net, johan.hedberg@gmail.com, kuba@kernel.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, luiz.dentz@gmail.com, marcel@holtmann.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 9f67672a Merge tag 'ext4_for_linus' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=136256a5d00000 kernel config: https://syzkaller.appspot.com/x/.config?x=5427806e749e612b dashboard link: https://syzkaller.appspot.com/bug?extid=4c4ffd1e1094dae61035 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17a4d5a3d00000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+4c4ffd1e1094dae61035@syzkaller.appspotmail.com 2021/05/01 15:27:37 executed programs: 23 BUG: memory leak unreferenced object 0xffff8881131d9100 (size 232): comm "kworker/u5:7", pid 8471, jiffies 4294965136 (age 11.710s) hex dump (first 32 bytes): d0 94 18 27 81 88 ff ff d0 94 18 27 81 88 ff ff ...'.......'.... 00 00 00 00 00 00 00 00 00 94 18 27 81 88 ff ff ...........'.... backtrace: [] __alloc_skb+0x20f/0x280 net/core/skbuff.c:413 [] alloc_skb include/linux/skbuff.h:1107 [inline] [] mgmt_cmd_complete+0x3d/0x1a0 net/bluetooth/mgmt_util.c:146 [] send_settings_rsp net/bluetooth/mgmt.c:1126 [inline] [] settings_rsp+0x5e/0x170 net/bluetooth/mgmt.c:1279 [] mgmt_pending_foreach+0x76/0xa0 net/bluetooth/mgmt_util.c:226 [] __mgmt_power_off+0x5c/0x1e0 net/bluetooth/mgmt.c:8575 [] hci_dev_do_close+0x579/0x720 net/bluetooth/hci_core.c:1776 [] process_one_work+0x2c9/0x600 kernel/workqueue.c:2275 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2421 [] kthread+0x178/0x1b0 kernel/kthread.c:313 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 BUG: memory leak unreferenced object 0xffff888126cdce00 (size 512): comm "kworker/u5:7", pid 8471, jiffies 4294965136 (age 11.710s) hex dump (first 32 bytes): 01 00 00 00 07 00 05 00 00 82 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [] kmalloc_reserve net/core/skbuff.c:354 [inline] [] __alloc_skb+0xdf/0x280 net/core/skbuff.c:425 [] alloc_skb include/linux/skbuff.h:1107 [inline] [] mgmt_cmd_complete+0x3d/0x1a0 net/bluetooth/mgmt_util.c:146 [] send_settings_rsp net/bluetooth/mgmt.c:1126 [inline] [] settings_rsp+0x5e/0x170 net/bluetooth/mgmt.c:1279 [] mgmt_pending_foreach+0x76/0xa0 net/bluetooth/mgmt_util.c:226 [] __mgmt_power_off+0x5c/0x1e0 net/bluetooth/mgmt.c:8575 [] hci_dev_do_close+0x579/0x720 net/bluetooth/hci_core.c:1776 [] process_one_work+0x2c9/0x600 kernel/workqueue.c:2275 [] worker_thread+0x59/0x5d0 kernel/workqueue.c:2421 [] kthread+0x178/0x1b0 kernel/kthread.c:313 [] ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches