lkml.org 
[lkml]   [2019]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectmemory leak in hci_inquiry_cache_update
From
Hello,

syzbot found the following crash on:

HEAD commit: 6525771f Merge tag 'arc-5.3-rc7' of git://git.kernel.org/p..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=11ce405c600000
kernel config: https://syzkaller.appspot.com/x/.config?x=e6131eafb9408877
dashboard link: https://syzkaller.appspot.com/bug?extid=82e5dfb66f1a36c0ffbb
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16ef5ade600000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+82e5dfb66f1a36c0ffbb@syzkaller.appspotmail.com

2019/08/30 10:10:13 executed programs: 1
2019/08/30 10:10:24 executed programs: 2
2019/08/30 10:10:39 executed programs: 3
2019/08/30 10:10:49 executed programs: 4
BUG: memory leak
unreferenced object 0xffff8881227b8ac0 (size 64):
comm "kworker/u5:0", pid 1543, jiffies 4294990660 (age 28.050s)
hex dump (first 32 bytes):
70 2a b0 2a 81 88 ff ff c0 7e c6 1a 81 88 ff ff p*.*.....~......
80 2a b0 2a 81 88 ff ff d0 7e c6 1a 81 88 ff ff .*.*.....~......
backtrace:
[<0000000003c40121>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<0000000003c40121>] slab_post_alloc_hook mm/slab.h:522 [inline]
[<0000000003c40121>] slab_alloc mm/slab.c:3319 [inline]
[<0000000003c40121>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
[<00000000bdd76485>] kmalloc include/linux/slab.h:552 [inline]
[<00000000bdd76485>] kzalloc include/linux/slab.h:748 [inline]
[<00000000bdd76485>] hci_inquiry_cache_update+0x138/0x2b0
net/bluetooth/hci_core.c:1183
[<000000000fa97823>] hci_inquiry_result_with_rssi_evt
net/bluetooth/hci_event.c:4079 [inline]
[<000000000fa97823>] hci_event_packet+0x1224/0x3453
net/bluetooth/hci_event.c:5952
[<0000000021923028>] hci_rx_work+0x1b6/0x2f0
net/bluetooth/hci_core.c:4462
[<00000000eb63bebf>] process_one_work+0x210/0x490
kernel/workqueue.c:2269
[<00000000873e1703>] worker_thread+0x56/0x4c0 kernel/workqueue.c:2415
[<00000000a3c26b57>] kthread+0x13e/0x160 kernel/kthread.c:255
[<00000000c66acc55>] ret_from_fork+0x1f/0x30
arch/x86/entry/entry_64.S:352

BUG: memory leak
unreferenced object 0xffff88811ac67ec0 (size 64):
comm "kworker/u5:0", pid 1543, jiffies 4294990660 (age 28.050s)
hex dump (first 32 bytes):
c0 8a 7b 22 81 88 ff ff 80 7e c6 1a 81 88 ff ff ..{".....~......
d0 8a 7b 22 81 88 ff ff 90 7e c6 1a 81 88 ff ff ..{".....~......
backtrace:
[<0000000003c40121>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<0000000003c40121>] slab_post_alloc_hook mm/slab.h:522 [inline]
[<0000000003c40121>] slab_alloc mm/slab.c:3319 [inline]
[<0000000003c40121>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
[<00000000bdd76485>] kmalloc include/linux/slab.h:552 [inline]
[<00000000bdd76485>] kzalloc include/linux/slab.h:748 [inline]
[<00000000bdd76485>] hci_inquiry_cache_update+0x138/0x2b0
net/bluetooth/hci_core.c:1183
[<000000000fa97823>] hci_inquiry_result_with_rssi_evt
net/bluetooth/hci_event.c:4079 [inline]
[<000000000fa97823>] hci_event_packet+0x1224/0x3453
net/bluetooth/hci_event.c:5952
[<0000000021923028>] hci_rx_work+0x1b6/0x2f0
net/bluetooth/hci_core.c:4462
[<00000000eb63bebf>] process_one_work+0x210/0x490
kernel/workqueue.c:2269
[<00000000873e1703>] worker_thread+0x56/0x4c0 kernel/workqueue.c:2415
[<00000000a3c26b57>] kthread+0x13e/0x160 kernel/kthread.c:255
[<00000000c66acc55>] ret_from_fork+0x1f/0x30
arch/x86/entry/entry_64.S:352

BUG: memory leak
unreferenced object 0xffff88811ac67e80 (size 64):
comm "kworker/u5:0", pid 1543, jiffies 4294990660 (age 28.050s)
hex dump (first 32 bytes):
c0 7e c6 1a 81 88 ff ff 40 7e c6 1a 81 88 ff ff .~......@~......
d0 7e c6 1a 81 88 ff ff 50 7e c6 1a 81 88 ff ff .~......P~......
backtrace:
[<0000000003c40121>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<0000000003c40121>] slab_post_alloc_hook mm/slab.h:522 [inline]
[<0000000003c40121>] slab_alloc mm/slab.c:3319 [inline]
[<0000000003c40121>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
[<00000000bdd76485>] kmalloc include/linux/slab.h:552 [inline]
[<00000000bdd76485>] kzalloc include/linux/slab.h:748 [inline]
[<00000000bdd76485>] hci_inquiry_cache_update+0x138/0x2b0
net/bluetooth/hci_core.c:1183
[<000000000fa97823>] hci_inquiry_result_with_rssi_evt
net/bluetooth/hci_event.c:4079 [inline]
[<000000000fa97823>] hci_event_packet+0x1224/0x3453
net/bluetooth/hci_event.c:5952
[<0000000021923028>] hci_rx_work+0x1b6/0x2f0
net/bluetooth/hci_core.c:4462
[<00000000eb63bebf>] process_one_work+0x210/0x490
kernel/workqueue.c:2269
[<00000000873e1703>] worker_thread+0x56/0x4c0 kernel/workqueue.c:2415
[<00000000a3c26b57>] kthread+0x13e/0x160 kernel/kthread.c:255
[<00000000c66acc55>] ret_from_fork+0x1f/0x30
arch/x86/entry/entry_64.S:352

BUG: memory leak
unreferenced object 0xffff88811ac67e40 (size 64):
comm "kworker/u5:0", pid 1543, jiffies 4294990660 (age 28.050s)
hex dump (first 32 bytes):
80 7e c6 1a 81 88 ff ff 00 7e c6 1a 81 88 ff ff .~.......~......
90 7e c6 1a 81 88 ff ff 10 7e c6 1a 81 88 ff ff .~.......~......
backtrace:
[<0000000003c40121>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<0000000003c40121>] slab_post_alloc_hook mm/slab.h:522 [inline]
[<0000000003c40121>] slab_alloc mm/slab.c:3319 [inline]
[<0000000003c40121>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
[<00000000bdd76485>] kmalloc include/linux/slab.h:552 [inline]
[<00000000bdd76485>] kzalloc include/linux/slab.h:748 [inline]
[<00000000bdd76485>] hci_inquiry_cache_update+0x138/0x2b0
net/bluetooth/hci_core.c:1183
[<000000000fa97823>] hci_inquiry_result_with_rssi_evt
net/bluetooth/hci_event.c:4079 [inline]
[<000000000fa97823>] hci_event_packet+0x1224/0x3453
net/bluetooth/hci_event.c:5952
[<0000000021923028>] hci_rx_work+0x1b6/0x2f0
net/bluetooth/hci_core.c:4462
[<00000000eb63bebf>] process_one_work+0x210/0x490
kernel/workqueue.c:2269
[<00000000873e1703>] worker_thread+0x56/0x4c0 kernel/workqueue.c:2415
[<00000000a3c26b57>] kthread+0x13e/0x160 kernel/kthread.c:255
[<00000000c66acc55>] ret_from_fork+0x1f/0x30
arch/x86/entry/entry_64.S:352

BUG: memory leak
unreferenced object 0xffff88811ac67e00 (size 64):
comm "kworker/u5:0", pid 1543, jiffies 4294990660 (age 28.050s)
hex dump (first 32 bytes):
40 7e c6 1a 81 88 ff ff c0 7d c6 1a 81 88 ff ff @~.......}......
50 7e c6 1a 81 88 ff ff d0 7d c6 1a 81 88 ff ff P~.......}......
backtrace:
[<0000000003c40121>] kmemleak_alloc_recursive
include/linux/kmemleak.h:43 [inline]
[<0000000003c40121>] slab_post_alloc_hook mm/slab.h:522 [inline]
[<0000000003c40121>] slab_alloc mm/slab.c:3319 [inline]
[<0000000003c40121>] kmem_cache_alloc_trace+0x145/0x2c0 mm/slab.c:3548
[<00000000bdd76485>] kmalloc include/linux/slab.h:552 [inline]
[<00000000bdd76485>] kzalloc include/linux/slab.h:748 [inline]
[<00000000bdd76485>] hci_inquiry_cache_update+0x138/0x2b0
net/bluetooth/hci_core.c:1183
[<000000000fa97823>] hci_inquiry_result_with_rssi_evt
net/bluetooth/hci_event.c:4079 [inline]
[<000000000fa97823>] hci_event_packet+0x1224/0x3453
net/bluetooth/hci_event.c:5952
[<0000000021923028>] hci_rx_work+0x1b6/0x2f0
net/bluetooth/hci_core.c:4462
[<00000000eb63bebf>] process_one_work+0x210/0x490
kernel/workqueue.c:2269
[<00000000873e1703>] worker_thread+0x56/0x4c0 kernel/workqueue.c:2415
[<00000000a3c26b57>] kthread+0x13e/0x160 kernel/kthread.c:255
[<00000000c66acc55>] ret_from_fork+0x1f/0x30
arch/x86/entry/entry_64.S:352



---
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

\
 
 \ /
  Last update: 2019-08-30 21:28    [W:0.034 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site