[syzbot] [bluetooth?] memory leak in hci_conn_add (2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

syzbot found the following issue on:

HEAD commit:    0468be89b3fa Merge tag 'iommu-updates-v6.6' of git://git.k..
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=17e2d447a80000
kernel config:  https://syzkaller.appspot.com/x/.config?x=3544ee7492950dd3
dashboard link: https://syzkaller.appspot.com/bug?extid=b6678ec6b1772e54ee6e
compiler:       gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
syz repro:      https://syzkaller.appspot.com/x/repro.syz?x=12a86513a80000
C reproducer:   https://syzkaller.appspot.com/x/repro.c?x=16a3f977a80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/961bf23596d0/disk-0468be89.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/d9431ec0107c/vmlinux-0468be89.xz
kernel image: https://storage.googleapis.com/syzbot-assets/fb5d1f6d7aad/bzImage-0468be89.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b6678ec6b1772e54ee6e@xxxxxxxxxxxxxxxxxxxxxxxxx

executing program
BUG: memory leak
unreferenced object 0xffff88810dcfd000 (size 2048):
  comm "syz-executor249", pid 5023, jiffies 4294943992 (age 23.130s)
  hex dump (first 32 bytes):
    d8 4c ce 0d 81 88 ff ff 22 01 00 00 00 00 ad de  .L......".......
    00 00 00 00 00 00 00 00 00 00 00 aa aa aa aa aa  ................
  backtrace:
    [<ffffffff81573855>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
    [<ffffffff84519e7f>] kmalloc include/linux/slab.h:599 [inline]
    [<ffffffff84519e7f>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff84519e7f>] hci_conn_add+0x4f/0x5e0 net/bluetooth/hci_conn.c:957
    [<ffffffff8451a678>] hci_connect_acl+0x198/0x1b0 net/bluetooth/hci_conn.c:1632
    [<ffffffff8451d4db>] hci_connect_sco+0x4b/0x520 net/bluetooth/hci_conn.c:1685
    [<ffffffff8458f6b3>] sco_connect net/bluetooth/sco.c:266 [inline]
    [<ffffffff8458f6b3>] sco_sock_connect+0x1c3/0x520 net/bluetooth/sco.c:591
    [<ffffffff83e89281>] __sys_connect_file+0x91/0xb0 net/socket.c:2032
    [<ffffffff83e89386>] __sys_connect+0xe6/0x110 net/socket.c:2049
    [<ffffffff83e893cc>] __do_sys_connect net/socket.c:2059 [inline]
    [<ffffffff83e893cc>] __se_sys_connect net/socket.c:2056 [inline]
    [<ffffffff83e893cc>] __x64_sys_connect+0x1c/0x20 net/socket.c:2056
    [<ffffffff84b23fa8>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84b23fa8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810b503600 (size 512):
  comm "kworker/u5:1", pid 4429, jiffies 4294944492 (age 18.130s)
  hex dump (first 32 bytes):
    00 d0 cf 0d 81 88 ff ff 80 7b 7f 0b 81 88 ff ff  .........{......
    fd 03 00 00 00 00 00 00 00 06 0c 00 00 00 00 00  ................
  backtrace:
    [<ffffffff81573855>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
    [<ffffffff845547dd>] kmalloc include/linux/slab.h:599 [inline]
    [<ffffffff845547dd>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff845547dd>] l2cap_conn_add.part.0+0x3d/0x340 net/bluetooth/l2cap_core.c:7845
    [<ffffffff845623b4>] l2cap_conn_add net/bluetooth/l2cap_core.c:71 [inline]
    [<ffffffff845623b4>] l2cap_connect_cfm+0x264/0x740 net/bluetooth/l2cap_core.c:8242
    [<ffffffff8451da53>] hci_connect_cfm include/net/bluetooth/hci_core.h:1935 [inline]
    [<ffffffff8451da53>] hci_conn_failed+0xa3/0x120 net/bluetooth/hci_conn.c:1251
    [<ffffffff84586cc6>] hci_abort_conn_sync+0x4d6/0x6d0 net/bluetooth/hci_sync.c:5435
    [<ffffffff8451761d>] abort_conn_sync+0x7d/0xa0 net/bluetooth/hci_conn.c:2894
    [<ffffffff8457d3ad>] hci_cmd_sync_work+0xcd/0x150 net/bluetooth/hci_sync.c:306
    [<ffffffff812c8e0d>] process_one_work+0x23d/0x530 kernel/workqueue.c:2630
    [<ffffffff812c99b7>] process_scheduled_works kernel/workqueue.c:2703 [inline]
    [<ffffffff812c99b7>] worker_thread+0x327/0x590 kernel/workqueue.c:2784
    [<ffffffff812d6e8b>] kthread+0x12b/0x170 kernel/kthread.c:388
    [<ffffffff81149875>] ret_from_fork+0x45/0x50 arch/x86/kernel/process.c:147
    [<ffffffff81002be1>] ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304



---
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@xxxxxxxxxxxxxxxx.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux