syzbot


memory leak in regulatory_init_db

Status: auto-obsoleted due to no activity on 2024/01/19 00:51
Subsystems: wireless
[Documentation on labels]
Reported-by: syzbot+39ec16ff6cc18b1d066d@syzkaller.appspotmail.com
First crash: 265d, last: 255d
Discussions (4)
Title Replies (including bot) Last reply
Re: [PATCH] Bluetooth: hci_conn_failed: Fixes memory leak 2 (2) 2023/10/10 14:43
[PATCH] Bluetooth: hci_conn_failed: Fix memory leak 2 (2) 2023/10/08 06:05
[PATCH] Bluetooth: hci_conn_failed: Fixes memory leak 2 (2) 2023/10/07 11:41
[syzbot] [net?] [wireless?] memory leak in regulatory_init_db 0 (1) 2023/10/05 08:49
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/01/03 01:45 19m retest repro upstream OK log
2024/01/03 01:45 20m retest repro upstream OK log
2023/10/27 23:00 19m yuran.pereira@hotmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master OK log
2023/10/25 00:57 13m retest repro upstream report log
2023/10/25 00:57 11m retest repro upstream report log
2023/10/07 18:15 22m yuran.pereira@hotmail.com patch https://kernel.googlesource.com/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git master OK log
2023/10/07 16:18 14m yuran.pereira@hotmail.com https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/ master report log
2023/10/07 08:12 1h14m yuran.pereira@hotmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master OK log
2023/10/06 21:42 12m yuran.pereira@hotmail.com https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/ master report log
2023/10/05 12:55 15m yuran.pereira@hotmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ master report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888105babc40 (size 64):
  comm "swapper/0", pid 1, jiffies 4294938686 (age 65.070s)
  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:
    [<ffffffff81574285>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
    [<ffffffff875a4fd5>] kmalloc include/linux/slab.h:599 [inline]
    [<ffffffff875a4fd5>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff875a4fd5>] regulatory_hint_core net/wireless/reg.c:3218 [inline]
    [<ffffffff875a4fd5>] regulatory_init_db+0xe5/0x1d0 net/wireless/reg.c:4290
    [<ffffffff81001cb6>] do_one_initcall+0x76/0x430 init/main.c:1232
    [<ffffffff874d96ea>] do_initcall_level init/main.c:1294 [inline]
    [<ffffffff874d96ea>] do_initcalls init/main.c:1310 [inline]
    [<ffffffff874d96ea>] do_basic_setup init/main.c:1329 [inline]
    [<ffffffff874d96ea>] kernel_init_freeable+0x25a/0x460 init/main.c:1547
    [<ffffffff84b3d80b>] kernel_init+0x1b/0x290 init/main.c:1437
    [<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 0xffff888144787800 (size 2048):
  comm "syz-executor145", pid 5030, jiffies 4294942914 (age 22.800s)
  hex dump (first 32 bytes):
    d8 ec 7b 0d 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:
    [<ffffffff81574285>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
    [<ffffffff8452b91f>] kmalloc include/linux/slab.h:599 [inline]
    [<ffffffff8452b91f>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff8452b91f>] hci_conn_add+0x4f/0x5e0 net/bluetooth/hci_conn.c:957
    [<ffffffff8452c118>] hci_connect_acl+0x198/0x1b0 net/bluetooth/hci_conn.c:1632
    [<ffffffff8452ef7b>] hci_connect_sco+0x4b/0x520 net/bluetooth/hci_conn.c:1685
    [<ffffffff845a1193>] sco_connect net/bluetooth/sco.c:266 [inline]
    [<ffffffff845a1193>] sco_sock_connect+0x1c3/0x520 net/bluetooth/sco.c:591
    [<ffffffff83e99f21>] __sys_connect_file+0x91/0xb0 net/socket.c:2050
    [<ffffffff83e9a026>] __sys_connect+0xe6/0x110 net/socket.c:2067
    [<ffffffff83e9a06c>] __do_sys_connect net/socket.c:2077 [inline]
    [<ffffffff83e9a06c>] __se_sys_connect net/socket.c:2074 [inline]
    [<ffffffff83e9a06c>] __x64_sys_connect+0x1c/0x20 net/socket.c:2074
    [<ffffffff84b38548>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84b38548>] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810c719200 (size 512):
  comm "kworker/u5:2", pid 5027, jiffies 4294943414 (age 17.800s)
  hex dump (first 32 bytes):
    00 78 78 44 81 88 ff ff 80 d7 ce 08 81 88 ff ff  .xxD............
    fd 03 00 00 00 00 00 00 00 06 0c 00 00 00 00 00  ................
  backtrace:
    [<ffffffff81574285>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1114
    [<ffffffff845662bd>] kmalloc include/linux/slab.h:599 [inline]
    [<ffffffff845662bd>] kzalloc include/linux/slab.h:720 [inline]
    [<ffffffff845662bd>] l2cap_conn_add.part.0+0x3d/0x340 net/bluetooth/l2cap_core.c:7845
    [<ffffffff84573e94>] l2cap_conn_add net/bluetooth/l2cap_core.c:71 [inline]
    [<ffffffff84573e94>] l2cap_connect_cfm+0x264/0x740 net/bluetooth/l2cap_core.c:8242
    [<ffffffff8452f4f3>] hci_connect_cfm include/net/bluetooth/hci_core.h:1935 [inline]
    [<ffffffff8452f4f3>] hci_conn_failed+0xa3/0x120 net/bluetooth/hci_conn.c:1251
    [<ffffffff845987a6>] hci_abort_conn_sync+0x4d6/0x6d0 net/bluetooth/hci_sync.c:5431
    [<ffffffff845290bd>] abort_conn_sync+0x7d/0xa0 net/bluetooth/hci_conn.c:2901
    [<ffffffff8458eecd>] 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


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/11 00:50 upstream 94f6f0550c62 83165b57 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in regulatory_init_db
2023/10/01 08:39 upstream 3b517966c561 8e26a358 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in regulatory_init_db
* Struck through repros no longer work on HEAD.