Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2101265ybd; Mon, 24 Jun 2019 00:27:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqy1+8eH69PC+o4sPDZvimTwZWg+bynW/+DxLGVXWyeLUQH0TYD5R9WF+xmYNHjqmojINbgQ X-Received: by 2002:a17:902:2e81:: with SMTP id r1mr147058899plb.0.1561361263893; Mon, 24 Jun 2019 00:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561361263; cv=none; d=google.com; s=arc-20160816; b=Fe72b9wBxYEl4daH2WLPNvZNnRzodOJ8CWoHZlXHoz3kKACHxcVm7xiMVPMzmWy6Xc xg7fezGrYUkFP9WZ74eyO41ak2zpVfTNMnf2RGm/v30wyYNCyxqrydoDi3z+qprsEfjO ZlczqmIPh2DMAHuPI+tZ/EsQDz8xZl74uH5ofup1vgZqQhtZElPVWzW7RU1er4aw+Vmd 62LZOsovCZfBAEwtUKgmqEWp/+7bCiVLJgQw9bEULCe4darYJCMhF3jTYAfkhY0sn49Z q1WQ5yV9RSHVoauHuFyFvb9+U5tOx11fYjh/0NbI1e4UUFokATSXkLPr0cVKfKEM9kGc 5G4Q== 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=YIBl5sn+qEAnvVG9RktF5oSe3uviRA0QejfBS359Mi8=; b=QIECMY9tZU4UqRzDzPQSy+ZrKnSoPN79ahJCpdiq8IsgV2ypc56ffGisK0KU3C+mWl 3s4ZwsUV0XcF0oWahfXJe+JrMcqs5OrSpO+V3fQYKVB+l7dhmJN+k77zFTDCwsAAQaXw g/5iNfIP0b0zZo1LXkmBNsDxIQvqm1wViqJ0biyD5IB5r8vA8HdF5NZlWRpr/X82ZL+g uYh0n1aRYLmlYrGOUjfmMzdwj1xxZCdexoteXAy3y0MG5jc1M6MCQCFHflqTZm42/28C JJDWE+SWYD7szBhqY1HAvSbIY9LOHpESzCMD6MeehUYCUVW8Mf4n4rf421WkQnmIj3YP 6Xrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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. [209.132.180.67]) by mx.google.com with ESMTP id b40si9800241plb.426.2019.06.24.00.27.28; Mon, 24 Jun 2019 00:27:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727880AbfFXH1P (ORCPT + 99 others); Mon, 24 Jun 2019 03:27:15 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:50963 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfFXH1J (ORCPT ); Mon, 24 Jun 2019 03:27:09 -0400 Received: by mail-io1-f69.google.com with SMTP id m26so20851323ioh.17 for ; Mon, 24 Jun 2019 00:27:09 -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=YIBl5sn+qEAnvVG9RktF5oSe3uviRA0QejfBS359Mi8=; b=NGz2sz0sCXZQq49psga/Mrr8DjbQx1AFXFZ1elB4i7A2Cb+wVpv8pfhVFRBI1i8YTi mCJxurkFUXp358lfXjowVgBE+Cymmfmveq0BHKWKZ1gJK5XnuqUsp+ChhdFSWnt3BPEM 7Y3dGspoJ79LRxtWXTjXgYI3SkIDcriEDSk8Dvd6phDgIstbKOPu/NN+QP7u2Ahq5CZF RZifd4SiEOnRQ8zmUwdhguIi4SuYRAB8TQ8IaQNN4YzwyQYkSDWDoBoM8XZ5cX6IoV7u vCMqKUsM0VdZ0Oaw2q9V8cYyyDDVr/j9N4IYmEKQdKbesNiJAoEwg6YrJfkPEU1F5ZcG uFtA== X-Gm-Message-State: APjAAAXO4B+twybxP6hXblQMPv21VBfDSv/STaH+RB0hgLk0wqUErptV OafU6atsFBVPibyPTKGAkBZPTEmpEPWpwc93Ef0jgbcCcAKP MIME-Version: 1.0 X-Received: by 2002:a6b:6b14:: with SMTP id g20mr40168187ioc.28.1561361228957; Mon, 24 Jun 2019 00:27:08 -0700 (PDT) Date: Mon, 24 Jun 2019 00:27:08 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000006b1779058c0cbdda@google.com> Subject: memory leak in h4_recv_buf From: syzbot To: johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, marcel@holtmann.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: abf02e29 Merge tag 'pm-5.2-rc6' of git://git.kernel.org/pu.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1054e6b2a00000 kernel config: https://syzkaller.appspot.com/x/.config?x=56f1da14935c3cce dashboard link: https://syzkaller.appspot.com/bug?extid=97388eb9d31b997fe1d0 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1073d8aaa00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17b36fbea00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+97388eb9d31b997fe1d0@syzkaller.appspotmail.com program BUG: memory leak unreferenced object 0xffff88810991fa00 (size 224): comm "syz-executor739", pid 7080, jiffies 4294949854 (age 18.640s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<00000000da42c09f>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline] [<00000000da42c09f>] slab_post_alloc_hook mm/slab.h:439 [inline] [<00000000da42c09f>] slab_alloc_node mm/slab.c:3269 [inline] [<00000000da42c09f>] kmem_cache_alloc_node+0x153/0x2a0 mm/slab.c:3579 [<00000000f6fbcf84>] __alloc_skb+0x6e/0x210 net/core/skbuff.c:194 [<00000000ea93fc4c>] alloc_skb include/linux/skbuff.h:1054 [inline] [<00000000ea93fc4c>] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] [<00000000ea93fc4c>] h4_recv_buf+0x26d/0x450 drivers/bluetooth/hci_h4.c:182 [<00000000e0312475>] h4_recv+0x51/0xb0 drivers/bluetooth/hci_h4.c:116 [<00000000ebf11fab>] hci_uart_tty_receive+0xba/0x200 drivers/bluetooth/hci_ldisc.c:592 [<0000000095e1216e>] tiocsti drivers/tty/tty_io.c:2195 [inline] [<0000000095e1216e>] tty_ioctl+0x81c/0xa30 drivers/tty/tty_io.c:2571 [<000000009fa523f0>] vfs_ioctl fs/ioctl.c:46 [inline] [<000000009fa523f0>] file_ioctl fs/ioctl.c:509 [inline] [<000000009fa523f0>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 [<000000000cebb5d9>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 [<000000001630008a>] __do_sys_ioctl fs/ioctl.c:720 [inline] [<000000001630008a>] __se_sys_ioctl fs/ioctl.c:718 [inline] [<000000001630008a>] __x64_sys_ioctl+0x1e/0x30 fs/ioctl.c:718 [<00000000c62091e3>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301 [<000000005c213625>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 BUG: memory leak unreferenced object 0xffff8881204f4400 (size 1024): comm "syz-executor739", pid 7080, jiffies 4294949854 (age 18.640s) hex dump (first 32 bytes): 6c 69 62 75 64 65 76 00 fe ed ca fe 28 00 00 00 libudev.....(... 28 00 00 00 a0 00 00 00 52 ca da 77 00 00 00 00 (.......R..w.... backtrace: [<0000000034504843>] kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline] [<0000000034504843>] slab_post_alloc_hook mm/slab.h:439 [inline] [<0000000034504843>] slab_alloc_node mm/slab.c:3269 [inline] [<0000000034504843>] kmem_cache_alloc_node_trace+0x15b/0x2a0 mm/slab.c:3597 [<0000000056d30eb5>] __do_kmalloc_node mm/slab.c:3619 [inline] [<0000000056d30eb5>] __kmalloc_node_track_caller+0x38/0x50 mm/slab.c:3634 [<00000000df40176c>] __kmalloc_reserve.isra.0+0x40/0xb0 net/core/skbuff.c:138 [<0000000035340e64>] __alloc_skb+0xa0/0x210 net/core/skbuff.c:206 [<00000000ea93fc4c>] alloc_skb include/linux/skbuff.h:1054 [inline] [<00000000ea93fc4c>] bt_skb_alloc include/net/bluetooth/bluetooth.h:339 [inline] [<00000000ea93fc4c>] h4_recv_buf+0x26d/0x450 drivers/bluetooth/hci_h4.c:182 [<00000000e0312475>] h4_recv+0x51/0xb0 drivers/bluetooth/hci_h4.c:116 [<00000000ebf11fab>] hci_uart_tty_receive+0xba/0x200 drivers/bluetooth/hci_ldisc.c:592 [<0000000095e1216e>] tiocsti drivers/tty/tty_io.c:2195 [inline] [<0000000095e1216e>] tty_ioctl+0x81c/0xa30 drivers/tty/tty_io.c:2571 [<000000009fa523f0>] vfs_ioctl fs/ioctl.c:46 [inline] [<000000009fa523f0>] file_ioctl fs/ioctl.c:509 [inline] [<000000009fa523f0>] do_vfs_ioctl+0x62a/0x810 fs/ioctl.c:696 [<000000000cebb5d9>] ksys_ioctl+0x86/0xb0 fs/ioctl.c:713 [<000000001630008a>] __do_sys_ioctl fs/ioctl.c:720 [inline] [<000000001630008a>] __se_sys_ioctl fs/ioctl.c:718 [inline] [<000000001630008a>] __x64_sys_ioctl+0x1e/0x30 fs/ioctl.c:718 [<00000000c62091e3>] do_syscall_64+0x76/0x1a0 arch/x86/entry/common.c:301 [<000000005c213625>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 --- 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. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches