syzbot


memory leak in vhci_write

Status: fixed on 2023/02/24 13:50
Subsystems: bluetooth
[Documentation on labels]
Reported-by: syzbot+8f819e36e01022991cfa@syzkaller.appspotmail.com
Fix commit: 7c9524d92964 Bluetooth: L2CAP: Fix memory leak in vhci_write
First crash: 651d, last: 651d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH v2] Bluetooth: L2CAP: Fix memory leak in vhci_write 2 (2) 2022/10/18 20:00
[PATCH] Bluetooth: L2CAP: Fix memory leak in vhci_write 3 (3) 2022/10/18 01:16
[syzbot] memory leak in vhci_write 0 (1) 2022/08/20 11:58
Last patch testing requests (2)
Created Duration User Patch Repo Result
2022/10/18 01:45 16m yin31149@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log
2022/10/16 14:29 17m yin31149@gmail.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810d81ac00 (size 240):
  comm "syz-executor219", pid 3615, jiffies 4294947117 (age 12.320s)
  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:
    [<ffffffff838733d9>] __alloc_skb+0x1f9/0x270 net/core/skbuff.c:418
    [<ffffffff833f742f>] alloc_skb include/linux/skbuff.h:1257 [inline]
    [<ffffffff833f742f>] bt_skb_alloc include/net/bluetooth/bluetooth.h:469 [inline]
    [<ffffffff833f742f>] vhci_get_user drivers/bluetooth/hci_vhci.c:391 [inline]
    [<ffffffff833f742f>] vhci_write+0x5f/0x230 drivers/bluetooth/hci_vhci.c:511
    [<ffffffff815e398d>] call_write_iter include/linux/fs.h:2192 [inline]
    [<ffffffff815e398d>] new_sync_write fs/read_write.c:491 [inline]
    [<ffffffff815e398d>] vfs_write+0x42d/0x540 fs/read_write.c:578
    [<ffffffff815e3cdd>] ksys_write+0x9d/0x160 fs/read_write.c:631
    [<ffffffff845e0645>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff845e0645>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84600087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/16 11:52 upstream 7ebfc85e2cd7 7a7cb304 .config console log report syz C ci-upstream-gce-leak memory leak in vhci_write
* Struck through repros no longer work on HEAD.