syzbot


memory leak in hdcs_probe_1020

Status: fixed on 2021/11/10 00:50
Subsystems: media usb
[Documentation on labels]
Reported-by: syzbot+990626a4ef6f043ed4cd@syzkaller.appspotmail.com
Fix commit: 4f4e6644cd87 media: gscpa/stv06xx: fix memory leak
First crash: 1330d, last: 1330d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] media: gspca: stv06xx: Fix memleak in stv06xx subdrivers 7 (7) 2021/05/05 09:11
[syzbot] memory leak in hdcs_probe_1020 0 (1) 2021/03/31 19:18
Last patch testing requests (4)
Created Duration User Patch Repo Result
2021/04/21 18:23 16m atulgopinathan@gmail.com patch upstream OK
2021/04/08 17:11 16m atulgopinathan@gmail.com patch upstream OK
2021/04/08 14:37 17m atulgopinathan@gmail.com patch upstream OK
2021/04/08 14:14 9m atulgopinathan@gmail.com upstream report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888110dd9f00 (size 64):
  comm "kworker/0:0", pid 5, jiffies 4294944081 (age 15.000s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 18 00 00 00  ................
    04 00 00 00 60 01 00 00 30 01 00 00 04 00 00 00  ....`...0.......
  backtrace:
    [<ffffffff8424c055>] kmalloc include/linux/slab.h:554 [inline]
    [<ffffffff8424c055>] hdcs_probe_1020 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c:428 [inline]
    [<ffffffff8424c055>] hdcs_probe_1020.cold+0x39/0x96 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c:413
    [<ffffffff82fe2db7>] stv06xx_config+0x107/0x190 drivers/media/usb/gspca/stv06xx/stv06xx.c:575
    [<ffffffff842427ca>] gspca_dev_probe2+0x359/0x6c5 drivers/media/usb/gspca/gspca.c:1529
    [<ffffffff84242b78>] gspca_dev_probe.cold+0x42/0x4a drivers/media/usb/gspca/gspca.c:1606
    [<ffffffff82ba7c87>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396
    [<ffffffff825f6079>] really_probe+0x159/0x4a0 drivers/base/dd.c:554
    [<ffffffff825f6444>] driver_probe_device+0x84/0x100 drivers/base/dd.c:740
    [<ffffffff825f6b5e>] __device_attach_driver+0xee/0x110 drivers/base/dd.c:846
    [<ffffffff825f2ff7>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:431
    [<ffffffff825f66f2>] __device_attach+0x122/0x250 drivers/base/dd.c:914
    [<ffffffff825f4c96>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:491
    [<ffffffff825f11e5>] device_add+0x5d5/0xc40 drivers/base/core.c:3242
    [<ffffffff82ba5229>] usb_set_configuration+0x9d9/0xb90 drivers/usb/core/message.c:2164
    [<ffffffff82bb568c>] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238
    [<ffffffff82ba73ec>] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293
    [<ffffffff825f6079>] really_probe+0x159/0x4a0 drivers/base/dd.c:554


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/03/27 19:10 upstream 0f4498cef9f5 a8529b82 .config console log report syz C ci-upstream-gce-leak memory leak in hdcs_probe_1020
* Struck through repros no longer work on HEAD.