[syzbot] [net?] [wireless?] memory leak in regulatory_init_db

33 views
Skip to first unread message

syzbot

unread,
Oct 5, 2023, 4:49:45ā€ÆAM10/5/23
to da...@davemloft.net, edum...@google.com, joha...@sipsolutions.net, ku...@kernel.org, linux-...@vger.kernel.org, linux-w...@vger.kernel.org, net...@vger.kernel.org, pab...@redhat.com, syzkall...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3b517966c561 Merge tag 'dma-mapping-6.6-2023-09-30' of git..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=130dac2a680000
kernel config: https://syzkaller.appspot.com/x/.config?x=aa96152f5a3192e3
dashboard link: https://syzkaller.appspot.com/bug?extid=39ec16ff6cc18b1d066d
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=1695bd3e680000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16ae8c4e680000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/cb67ab976a91/disk-3b517966.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/21326eb3ef67/vmlinux-3b517966.xz
kernel image: https://storage.googleapis.com/syzbot-assets/0a95555fe120/bzImage-3b517966.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+39ec16...@syzkaller.appspotmail.com

executing program
BUG: memory leak
unreferenced object 0xffff888108f880c0 (size 64):
comm "swapper/0", pid 1, jiffies 4294938895 (age 68.260s)
hex dump (first 32 bytes):
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
ff ff ff ff 00 00 00 00 00 00 00 00 30 30 00 00 ............00..
backtrace:
[<ffffffff81574195>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff875a3f05>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff875a3f05>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff875a3f05>] regulatory_hint_core net/wireless/reg.c:3218 [inline]
[<ffffffff875a3f05>] regulatory_init_db+0xe5/0x1d0 net/wireless/reg.c:4290
[<ffffffff81001cb6>] do_one_initcall+0x76/0x430 init/main.c:1232
[<ffffffff874d86ea>] do_initcall_level init/main.c:1294 [inline]
[<ffffffff874d86ea>] do_initcalls init/main.c:1310 [inline]
[<ffffffff874d86ea>] do_basic_setup init/main.c:1329 [inline]
[<ffffffff874d86ea>] kernel_init_freeable+0x25a/0x460 init/main.c:1547
[<ffffffff84b3928b>] kernel_init+0x1b/0x290 init/main.c:1437
[<ffffffff81149f25>] 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

BUG: memory leak
unreferenced object 0xffff88814490d800 (size 2048):
comm "syz-executor220", pid 5026, jiffies 4294943369 (age 23.530s)
hex dump (first 32 bytes):
d8 4c a8 0d 81 88 ff ff 22 01 00 00 00 00 ad de .L......".......
00 00 00 00 ff ff ff ff ff ff 00 aa aa aa aa aa ................
backtrace:
[<ffffffff81574195>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff84527e6f>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff84527e6f>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff84527e6f>] hci_conn_add+0x4f/0x5e0 net/bluetooth/hci_conn.c:957
[<ffffffff84528668>] hci_connect_acl+0x198/0x1b0 net/bluetooth/hci_conn.c:1632
[<ffffffff8452b4cb>] hci_connect_sco+0x4b/0x520 net/bluetooth/hci_conn.c:1685
[<ffffffff8459d6b3>] sco_connect net/bluetooth/sco.c:266 [inline]
[<ffffffff8459d6b3>] sco_sock_connect+0x1c3/0x520 net/bluetooth/sco.c:591
[<ffffffff83e96b01>] __sys_connect_file+0x91/0xb0 net/socket.c:2033
[<ffffffff83e96c06>] __sys_connect+0xe6/0x110 net/socket.c:2050
[<ffffffff83e96c4c>] __do_sys_connect net/socket.c:2060 [inline]
[<ffffffff83e96c4c>] __se_sys_connect net/socket.c:2057 [inline]
[<ffffffff83e96c4c>] __x64_sys_connect+0x1c/0x20 net/socket.c:2057
[<ffffffff84b33fc8>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
[<ffffffff84b33fc8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
[<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff8881091dc400 (size 512):
comm "kworker/u5:2", pid 5022, jiffies 4294943869 (age 18.530s)
hex dump (first 32 bytes):
00 d8 90 44 81 88 ff ff c0 b9 e2 0c 81 88 ff ff ...D............
fd 03 00 00 00 00 00 00 00 06 0c 00 00 00 00 00 ................
backtrace:
[<ffffffff81574195>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff845627dd>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff845627dd>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff845627dd>] l2cap_conn_add.part.0+0x3d/0x340 net/bluetooth/l2cap_core.c:7845
[<ffffffff845703b4>] l2cap_conn_add net/bluetooth/l2cap_core.c:71 [inline]
[<ffffffff845703b4>] l2cap_connect_cfm+0x264/0x740 net/bluetooth/l2cap_core.c:8242
[<ffffffff8452ba43>] hci_connect_cfm include/net/bluetooth/hci_core.h:1935 [inline]
[<ffffffff8452ba43>] hci_conn_failed+0xa3/0x120 net/bluetooth/hci_conn.c:1251
[<ffffffff84594cc6>] hci_abort_conn_sync+0x4d6/0x6d0 net/bluetooth/hci_sync.c:5435
[<ffffffff8452560d>] abort_conn_sync+0x7d/0xa0 net/bluetooth/hci_conn.c:2894
[<ffffffff8458b3ad>] hci_cmd_sync_work+0xcd/0x150 net/bluetooth/hci_sync.c:306
[<ffffffff812c8d9d>] process_one_work+0x23d/0x530 kernel/workqueue.c:2630
[<ffffffff812c99c7>] process_scheduled_works kernel/workqueue.c:2703 [inline]
[<ffffffff812c99c7>] worker_thread+0x327/0x590 kernel/workqueue.c:2784
[<ffffffff812d6d9b>] kthread+0x12b/0x170 kernel/kthread.c:388
[<ffffffff81149f25>] 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 syzk...@googlegroups.com.

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

syzbot

unread,
Oct 5, 2023, 9:12:36ā€ÆAM10/5/23
to syzkall...@googlegroups.com, yuran....@hotmail.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
memory leak in hci_conn_add

BUG: memory leak
unreferenced object 0xffff88810f773800 (size 2048):
comm "syz-executor.0", pid 5484, jiffies 4294944325 (age 16.180s)
hex dump (first 32 bytes):
d8 0c 75 1b 81 88 ff ff 22 01 00 00 00 00 ad de ..u.....".......
00 00 00 00 ff ff ff ff ff ff 00 aa aa aa aa aa ................
backtrace:
[<ffffffff81574235>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff84527fbf>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff84527fbf>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff84527fbf>] hci_conn_add+0x4f/0x5e0 net/bluetooth/hci_conn.c:957
[<ffffffff845287b8>] hci_connect_acl+0x198/0x1b0 net/bluetooth/hci_conn.c:1632
[<ffffffff8452b61b>] hci_connect_sco+0x4b/0x520 net/bluetooth/hci_conn.c:1685
[<ffffffff8459d803>] sco_connect net/bluetooth/sco.c:266 [inline]
[<ffffffff8459d803>] sco_sock_connect+0x1c3/0x520 net/bluetooth/sco.c:591
[<ffffffff83e96c51>] __sys_connect_file+0x91/0xb0 net/socket.c:2033
[<ffffffff83e96d56>] __sys_connect+0xe6/0x110 net/socket.c:2050
[<ffffffff83e96d9c>] __do_sys_connect net/socket.c:2060 [inline]
[<ffffffff83e96d9c>] __se_sys_connect net/socket.c:2057 [inline]
[<ffffffff83e96d9c>] __x64_sys_connect+0x1c/0x20 net/socket.c:2057
[<ffffffff84b34548>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
[<ffffffff84b34548>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
[<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff888119e1b000 (size 512):
comm "kworker/u5:1", pid 4435, jiffies 4294944408 (age 15.350s)
hex dump (first 32 bytes):
00 38 77 0f 81 88 ff ff c0 de d3 19 81 88 ff ff .8w.............
fd 03 00 00 00 00 00 00 00 06 0c 00 00 00 00 00 ................
backtrace:
[<ffffffff81574235>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff8456292d>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff8456292d>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff8456292d>] l2cap_conn_add.part.0+0x3d/0x340 net/bluetooth/l2cap_core.c:7845
[<ffffffff84570504>] l2cap_conn_add net/bluetooth/l2cap_core.c:71 [inline]
[<ffffffff84570504>] l2cap_connect_cfm+0x264/0x740 net/bluetooth/l2cap_core.c:8242
[<ffffffff8452bb93>] hci_connect_cfm include/net/bluetooth/hci_core.h:1935 [inline]
[<ffffffff8452bb93>] hci_conn_failed+0xa3/0x120 net/bluetooth/hci_conn.c:1251
[<ffffffff84594e16>] hci_abort_conn_sync+0x4d6/0x6d0 net/bluetooth/hci_sync.c:5435
[<ffffffff8452575d>] abort_conn_sync+0x7d/0xa0 net/bluetooth/hci_conn.c:2894
[<ffffffff8458b4fd>] hci_cmd_sync_work+0xcd/0x150 net/bluetooth/hci_sync.c:306
[<ffffffff812c8d9d>] process_one_work+0x23d/0x530 kernel/workqueue.c:2630
[<ffffffff812c99c7>] process_scheduled_works kernel/workqueue.c:2703 [inline]
[<ffffffff812c99c7>] worker_thread+0x327/0x590 kernel/workqueue.c:2784
[<ffffffff812d6d9b>] kthread+0x12b/0x170 kernel/kthread.c:388
[<ffffffff81149f85>] 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

BUG: memory leak
unreferenced object 0xffff88810f771800 (size 2048):
comm "syz-executor.0", pid 5738, jiffies 4294945001 (age 9.420s)
hex dump (first 32 bytes):
d8 0c 75 1b 81 88 ff ff 22 01 00 00 00 00 ad de ..u.....".......
00 00 00 00 ff ff ff ff ff ff 00 aa aa aa aa aa ................
backtrace:
[<ffffffff81574235>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff84527fbf>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff84527fbf>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff84527fbf>] hci_conn_add+0x4f/0x5e0 net/bluetooth/hci_conn.c:957
[<ffffffff845287b8>] hci_connect_acl+0x198/0x1b0 net/bluetooth/hci_conn.c:1632
[<ffffffff8452b61b>] hci_connect_sco+0x4b/0x520 net/bluetooth/hci_conn.c:1685
[<ffffffff8459d803>] sco_connect net/bluetooth/sco.c:266 [inline]
[<ffffffff8459d803>] sco_sock_connect+0x1c3/0x520 net/bluetooth/sco.c:591
[<ffffffff83e96c51>] __sys_connect_file+0x91/0xb0 net/socket.c:2033
[<ffffffff83e96d56>] __sys_connect+0xe6/0x110 net/socket.c:2050
[<ffffffff83e96d9c>] __do_sys_connect net/socket.c:2060 [inline]
[<ffffffff83e96d9c>] __se_sys_connect net/socket.c:2057 [inline]
[<ffffffff83e96d9c>] __x64_sys_connect+0x1c/0x20 net/socket.c:2057
[<ffffffff84b34548>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
[<ffffffff84b34548>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
[<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810cd0d400 (size 512):
comm "kworker/u5:1", pid 4435, jiffies 4294945084 (age 8.590s)
hex dump (first 32 bytes):
00 18 77 0f 81 88 ff ff 80 a5 7e 0f 81 88 ff ff ..w.......~.....
fd 03 00 00 00 00 00 00 00 06 0c 00 00 00 00 00 ................
backtrace:
[<ffffffff81574235>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff8456292d>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff8456292d>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff8456292d>] l2cap_conn_add.part.0+0x3d/0x340 net/bluetooth/l2cap_core.c:7845
[<ffffffff84570504>] l2cap_conn_add net/bluetooth/l2cap_core.c:71 [inline]
[<ffffffff84570504>] l2cap_connect_cfm+0x264/0x740 net/bluetooth/l2cap_core.c:8242
[<ffffffff8452bb93>] hci_connect_cfm include/net/bluetooth/hci_core.h:1935 [inline]
[<ffffffff8452bb93>] hci_conn_failed+0xa3/0x120 net/bluetooth/hci_conn.c:1251
[<ffffffff84594e16>] hci_abort_conn_sync+0x4d6/0x6d0 net/bluetooth/hci_sync.c:5435
[<ffffffff8452575d>] abort_conn_sync+0x7d/0xa0 net/bluetooth/hci_conn.c:2894
[<ffffffff8458b4fd>] hci_cmd_sync_work+0xcd/0x150 net/bluetooth/hci_sync.c:306
[<ffffffff812c8d9d>] process_one_work+0x23d/0x530 kernel/workqueue.c:2630
[<ffffffff812c99c7>] process_scheduled_works kernel/workqueue.c:2703 [inline]
[<ffffffff812c99c7>] worker_thread+0x327/0x590 kernel/workqueue.c:2784
[<ffffffff812d6d9b>] kthread+0x12b/0x170 kernel/kthread.c:388
[<ffffffff81149f85>] 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



Tested on:

commit: 3006adf3 Merge tag 'rtla-v6.6-fixes' of git://git.kern..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master
console output: https://syzkaller.appspot.com/x/log.txt?x=113970a1680000
kernel config: https://syzkaller.appspot.com/x/.config?x=72ce225eb2bd90b4
dashboard link: https://syzkaller.appspot.com/bug?extid=39ec16ff6cc18b1d066d
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40

Note: no patches were applied.

syzbot

unread,
Oct 6, 2023, 6:03:29ā€ÆPM10/6/23
to syzkall...@googlegroups.com, yuran....@hotmail.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
memory leak in hci_conn_add

BUG: memory leak
unreferenced object 0xffff888108d29000 (size 2048):
comm "syz-executor.0", pid 5504, jiffies 4294944502 (age 15.530s)
hex dump (first 32 bytes):
d8 cc 05 1c 81 88 ff ff 22 01 00 00 00 00 ad de ........".......
00 00 00 00 ff ff ff ff ff ff 00 aa aa aa aa aa ................
backtrace:
[<ffffffff815793d5>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1095
[<ffffffff8454d7ff>] kmalloc include/linux/slab.h:600 [inline]
[<ffffffff8454d7ff>] kzalloc include/linux/slab.h:721 [inline]
[<ffffffff8454d7ff>] hci_conn_add+0x4f/0x5e0 net/bluetooth/hci_conn.c:958
[<ffffffff8454e028>] hci_connect_acl+0x1c8/0x1e0 net/bluetooth/hci_conn.c:1661
[<ffffffff84550f6b>] hci_connect_sco+0x4b/0x520 net/bluetooth/hci_conn.c:1714
[<ffffffff845c34c3>] sco_connect net/bluetooth/sco.c:266 [inline]
[<ffffffff845c34c3>] sco_sock_connect+0x1c3/0x520 net/bluetooth/sco.c:591
[<ffffffff83eb8f31>] __sys_connect_file+0x91/0xb0 net/socket.c:2050
[<ffffffff83eb9036>] __sys_connect+0xe6/0x110 net/socket.c:2067
[<ffffffff83eb907c>] __do_sys_connect net/socket.c:2077 [inline]
[<ffffffff83eb907c>] __se_sys_connect net/socket.c:2074 [inline]
[<ffffffff83eb907c>] __x64_sys_connect+0x1c/0x20 net/socket.c:2074
[<ffffffff84b583e8>] do_syscall_x64 arch/x86/entry/common.c:51 [inline]
[<ffffffff84b583e8>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:81
[<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88811c0c1200 (size 512):
comm "kworker/u5:1", pid 4443, jiffies 4294944585 (age 14.700s)
hex dump (first 32 bytes):
00 90 d2 08 81 88 ff ff 00 6d 24 1c 81 88 ff ff .........m$.....
fd 03 00 00 00 00 00 00 00 06 0c 00 00 00 00 00 ................
backtrace:
[<ffffffff815793d5>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1095
[<ffffffff845886ad>] kmalloc include/linux/slab.h:600 [inline]
[<ffffffff845886ad>] kzalloc include/linux/slab.h:721 [inline]
[<ffffffff845886ad>] l2cap_conn_add.part.0+0x3d/0x340 net/bluetooth/l2cap_core.c:7845
[<ffffffff84596284>] l2cap_conn_add net/bluetooth/l2cap_core.c:71 [inline]
[<ffffffff84596284>] l2cap_connect_cfm+0x264/0x740 net/bluetooth/l2cap_core.c:8242
[<ffffffff845514f9>] hci_connect_cfm include/net/bluetooth/hci_core.h:1958 [inline]
[<ffffffff845514f9>] hci_conn_failed+0xb9/0x130 net/bluetooth/hci_conn.c:1259
[<ffffffff845babb9>] hci_abort_conn_sync+0x3a9/0x550 net/bluetooth/hci_sync.c:5424
[<ffffffff8454af9d>] abort_conn_sync+0x7d/0xa0 net/bluetooth/hci_conn.c:2930
[<ffffffff845b12bd>] hci_cmd_sync_work+0xcd/0x150 net/bluetooth/hci_sync.c:306
[<ffffffff812ca179>] process_one_work+0x249/0x540 kernel/workqueue.c:2630
[<ffffffff812cada7>] process_scheduled_works kernel/workqueue.c:2703 [inline]
[<ffffffff812cada7>] worker_thread+0x327/0x590 kernel/workqueue.c:2784
[<ffffffff812d771b>] kthread+0x12b/0x170 kernel/kthread.c:388
[<ffffffff81149ee5>] ret_from_fork+0x45/0x50 arch/x86/kernel/process.c:147
[<ffffffff81002bf1>] ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:291



Tested on:

commit: 0f0fe504 Add linux-next specific files for 20231006
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/ master
console output: https://syzkaller.appspot.com/x/log.txt?x=14063f5e680000
kernel config: https://syzkaller.appspot.com/x/.config?x=fcae0cb76df02c33

syzbot

unread,
Oct 7, 2023, 5:27:32ā€ÆAM10/7/23
to syzkall...@googlegroups.com, yuran....@hotmail.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+39ec16...@syzkaller.appspotmail.com

Tested on:

commit: 82714078 Merge tag 'pm-6.6-rc5' of git://git.kernel.or..
console output: https://syzkaller.appspot.com/x/log.txt?x=17f839ee680000
kernel config: https://syzkaller.appspot.com/x/.config?x=92fc678f64486a09
dashboard link: https://syzkaller.appspot.com/bug?extid=39ec16ff6cc18b1d066d
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=1710aec9680000

Note: testing is done by a robot and is best-effort only.

syzbot

unread,
Oct 7, 2023, 12:52:34ā€ÆPM10/7/23
to syzkall...@googlegroups.com, yuran....@hotmail.com
Hello,

syzbot has tested the proposed patch but the reproducer is still triggering an issue:
memory leak in hci_conn_add

BUG: memory leak
unreferenced object 0xffff88811ad68800 (size 2048):
comm "syz-executor.0", pid 5490, jiffies 4294944403 (age 15.290s)
hex dump (first 32 bytes):
d8 ec 9c 1b 81 88 ff ff 22 01 00 00 00 00 ad de ........".......
00 00 00 00 ff ff ff ff ff ff 00 aa aa aa aa aa ................
backtrace:
[<ffffffff81576345>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff8452851f>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff8452851f>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff8452851f>] hci_conn_add+0x4f/0x5e0 net/bluetooth/hci_conn.c:958
[<ffffffff84528d48>] hci_connect_acl+0x1c8/0x1e0 net/bluetooth/hci_conn.c:1661
[<ffffffff8452bc8b>] hci_connect_sco+0x4b/0x520 net/bluetooth/hci_conn.c:1714
[<ffffffff8459e1e3>] sco_connect net/bluetooth/sco.c:266 [inline]
[<ffffffff8459e1e3>] sco_sock_connect+0x1c3/0x520 net/bluetooth/sco.c:591
[<ffffffff83e96041>] __sys_connect_file+0x91/0xb0 net/socket.c:2033
[<ffffffff83e96146>] __sys_connect+0xe6/0x110 net/socket.c:2050
[<ffffffff83e9618c>] __do_sys_connect net/socket.c:2060 [inline]
[<ffffffff83e9618c>] __se_sys_connect net/socket.c:2057 [inline]
[<ffffffff83e9618c>] __x64_sys_connect+0x1c/0x20 net/socket.c:2057
[<ffffffff84b35008>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
[<ffffffff84b35008>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
[<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88811b630c00 (size 512):
comm "kworker/u5:1", pid 4434, jiffies 4294944487 (age 14.450s)
hex dump (first 32 bytes):
00 88 d6 1a 81 88 ff ff c0 ce 73 1a 81 88 ff ff ..........s.....
fd 03 00 00 00 00 00 00 00 06 0c 00 00 00 00 00 ................
backtrace:
[<ffffffff81576345>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff845633cd>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff845633cd>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff845633cd>] l2cap_conn_add.part.0+0x3d/0x340 net/bluetooth/l2cap_core.c:7845
[<ffffffff84570fa4>] l2cap_conn_add net/bluetooth/l2cap_core.c:71 [inline]
[<ffffffff84570fa4>] l2cap_connect_cfm+0x264/0x740 net/bluetooth/l2cap_core.c:8242
[<ffffffff8452c219>] hci_connect_cfm include/net/bluetooth/hci_core.h:1958 [inline]
[<ffffffff8452c219>] hci_conn_failed+0xb9/0x130 net/bluetooth/hci_conn.c:1259
[<ffffffff845958d9>] hci_abort_conn_sync+0x3a9/0x550 net/bluetooth/hci_sync.c:5424
[<ffffffff84525cbd>] abort_conn_sync+0x7d/0xa0 net/bluetooth/hci_conn.c:2930
[<ffffffff8458bfdd>] hci_cmd_sync_work+0xcd/0x150 net/bluetooth/hci_sync.c:306
[<ffffffff812c93bd>] process_one_work+0x23d/0x530 kernel/workqueue.c:2630
[<ffffffff812c9f67>] process_scheduled_works kernel/workqueue.c:2703 [inline]
[<ffffffff812c9f67>] worker_thread+0x327/0x590 kernel/workqueue.c:2784
[<ffffffff812d743b>] kthread+0x12b/0x170 kernel/kthread.c:388
[<ffffffff81149e95>] 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

BUG: memory leak
unreferenced object 0xffff88811b52a800 (size 2048):
comm "syz-executor.0", pid 5736, jiffies 4294945046 (age 8.860s)
hex dump (first 32 bytes):
d8 ec 9c 1b 81 88 ff ff 22 01 00 00 00 00 ad de ........".......
00 00 00 00 ff ff ff ff ff ff 00 aa aa aa aa aa ................
backtrace:
[<ffffffff81576345>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff8452851f>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff8452851f>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff8452851f>] hci_conn_add+0x4f/0x5e0 net/bluetooth/hci_conn.c:958
[<ffffffff84528d48>] hci_connect_acl+0x1c8/0x1e0 net/bluetooth/hci_conn.c:1661
[<ffffffff8452bc8b>] hci_connect_sco+0x4b/0x520 net/bluetooth/hci_conn.c:1714
[<ffffffff8459e1e3>] sco_connect net/bluetooth/sco.c:266 [inline]
[<ffffffff8459e1e3>] sco_sock_connect+0x1c3/0x520 net/bluetooth/sco.c:591
[<ffffffff83e96041>] __sys_connect_file+0x91/0xb0 net/socket.c:2033
[<ffffffff83e96146>] __sys_connect+0xe6/0x110 net/socket.c:2050
[<ffffffff83e9618c>] __do_sys_connect net/socket.c:2060 [inline]
[<ffffffff83e9618c>] __se_sys_connect net/socket.c:2057 [inline]
[<ffffffff83e9618c>] __x64_sys_connect+0x1c/0x20 net/socket.c:2057
[<ffffffff84b35008>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
[<ffffffff84b35008>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
[<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88811b96be00 (size 512):
comm "kworker/u5:1", pid 4434, jiffies 4294945129 (age 8.030s)
hex dump (first 32 bytes):
00 a8 52 1b 81 88 ff ff c0 ce 73 1a 81 88 ff ff ..R.......s.....
fd 03 00 00 00 00 00 00 00 06 0c 00 00 00 00 00 ................
backtrace:
[<ffffffff81576345>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
[<ffffffff845633cd>] kmalloc include/linux/slab.h:599 [inline]
[<ffffffff845633cd>] kzalloc include/linux/slab.h:720 [inline]
[<ffffffff845633cd>] l2cap_conn_add.part.0+0x3d/0x340 net/bluetooth/l2cap_core.c:7845
[<ffffffff84570fa4>] l2cap_conn_add net/bluetooth/l2cap_core.c:71 [inline]
[<ffffffff84570fa4>] l2cap_connect_cfm+0x264/0x740 net/bluetooth/l2cap_core.c:8242
[<ffffffff8452c219>] hci_connect_cfm include/net/bluetooth/hci_core.h:1958 [inline]
[<ffffffff8452c219>] hci_conn_failed+0xb9/0x130 net/bluetooth/hci_conn.c:1259
[<ffffffff845958d9>] hci_abort_conn_sync+0x3a9/0x550 net/bluetooth/hci_sync.c:5424
[<ffffffff84525cbd>] abort_conn_sync+0x7d/0xa0 net/bluetooth/hci_conn.c:2930
[<ffffffff8458bfdd>] hci_cmd_sync_work+0xcd/0x150 net/bluetooth/hci_sync.c:306
[<ffffffff812c93bd>] process_one_work+0x23d/0x530 kernel/workqueue.c:2630
[<ffffffff812c9f67>] process_scheduled_works kernel/workqueue.c:2703 [inline]
[<ffffffff812c9f67>] worker_thread+0x327/0x590 kernel/workqueue.c:2784
[<ffffffff812d743b>] kthread+0x12b/0x170 kernel/kthread.c:388
[<ffffffff81149e95>] 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



Tested on:

commit: 3ef20de6 Bluetooth: btrtl: Ignore error return for hci..
git tree: https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/ master
console output: https://syzkaller.appspot.com/x/log.txt?x=17335345680000
kernel config: https://syzkaller.appspot.com/x/.config?x=cb15b0f9fa999067
dashboard link: https://syzkaller.appspot.com/bug?extid=39ec16ff6cc18b1d066d
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40

syzbot

unread,
Oct 7, 2023, 2:58:33ā€ÆPM10/7/23
to syzkall...@googlegroups.com, yuran....@hotmail.com
Hello,

syzbot has tested the proposed patch and the reproducer did not trigger any issue:

Reported-and-tested-by: syzbot+39ec16...@syzkaller.appspotmail.com

Tested on:

commit: 3ef20de6 Bluetooth: btrtl: Ignore error return for hci..
git tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master
console output: https://syzkaller.appspot.com/x/log.txt?x=13efb231680000
kernel config: https://syzkaller.appspot.com/x/.config?x=cb15b0f9fa999067
dashboard link: https://syzkaller.appspot.com/bug?extid=39ec16ff6cc18b1d066d
compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40
patch: https://syzkaller.appspot.com/x/patch.diff?x=15b53e45680000

syzbot

unread,
Jan 18, 2024, 7:51:14ā€ÆPMJan 18
to syzkall...@googlegroups.com
Auto-closing this bug as obsolete.
No recent activity, existing reproducers are no longer triggering the issue.
Reply all
Reply to author
Forward
0 new messages