syzbot


memory leak in hdcs_probe_1x00

Status: fixed on 2021/11/10 00:50
Subsystems: usb media
[Documentation on labels]
Reported-by: syzbot+e7f4c64a4248a0340c37@syzkaller.appspotmail.com
Fix commit: 4f4e6644cd87 media: gscpa/stv06xx: fix memory leak
First crash: 1213d, last: 1213d
Discussions (17)
Title Replies (including bot) Last reply
[PATCH 4.19 000/425] 4.19.191-rc1 review 438 (438) 2021/06/24 10:04
[PATCH 5.4 000/184] 5.4.118-rc1 review 201 (201) 2021/06/18 09:41
[PATCH 5.10 000/299] 5.10.36-rc1 review 323 (323) 2021/05/28 16:59
[PATCH 4.9 000/240] 4.9.269-rc1 review 245 (245) 2021/05/21 16:52
[PATCH 4.14 000/323] 4.14.233-rc1 review 326 (326) 2021/05/21 05:55
[PATCH 4.4 000/190] 4.4.269-rc1 review 196 (196) 2021/05/20 21:46
[PATCH 5.11 000/342] 5.11.20-rc1 review 354 (354) 2021/05/12 06:38
[PATCH 5.12 000/384] 5.12.3-rc1 review 395 (395) 2021/05/11 21:07
[PATCH AUTOSEL 4.9 01/24] scsi: target: pscsi: Fix warning in pscsi_complete_cmd() 26 (26) 2021/05/07 10:59
[PATCH AUTOSEL 4.4 01/16] scsi: target: pscsi: Fix warning in pscsi_complete_cmd() 16 (16) 2021/05/03 16:43
[PATCH AUTOSEL 4.14 01/31] scsi: lpfc: Fix incorrect dbde assignment when building target abts wqe 31 (31) 2021/05/03 16:42
[PATCH AUTOSEL 4.19 01/35] scsi: lpfc: Fix incorrect dbde assignment when building target abts wqe 35 (35) 2021/05/03 16:41
[PATCH AUTOSEL 5.4 01/57] drm: Added orientation quirk for OneGX1 Pro 57 (57) 2021/05/03 16:39
[PATCH] gscpa/stv06xx: fix memory leak 1 (1) 2021/04/08 10:31
[PATCH] drivers/media/usb/gspca/stv06xx: fix memory leak 3 (3) 2021/03/26 20:08
[PATCH] drivers/media/usb/gspca/stv06xx: fix memory leak 1 (1) 2021/02/26 23:37
memory leak in hdcs_probe_1x00 0 (1) 2021/02/26 14:47
Last patch testing requests (3)
Created Duration User Patch Repo Result
2021/04/08 09:55 16m hverkuil@xs4all.nl git://linuxtv.org/hverkuil/media_tree.git tmp OK
2021/04/08 08:00 0m hverkuil@xs4all.nl patch git://linuxtv.org/media_tree.git master error OK
2021/02/26 21:28 17m paskripkin@gmail.com https://linux.googlesource.com/linux/kernel/git/torvalds/linux refs/changes/77/8677/1 OK

Sample crash report:
BUG: memory leak
unreferenced object 0xffff8881100c0300 (size 64):
  comm "kworker/0:3", pid 3861, jiffies 4294943205 (age 14.560s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 00  ................
    08 00 00 00 68 01 00 00 28 01 00 00 04 00 00 00  ....h...(.......
  backtrace:
    [<000000004eb4188f>] kmalloc include/linux/slab.h:554 [inline]
    [<000000004eb4188f>] hdcs_probe_1x00 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c:371 [inline]
    [<000000004eb4188f>] hdcs_probe_1x00.cold+0x39/0xc1 drivers/media/usb/gspca/stv06xx/stv06xx_hdcs.c:356
    [<0000000031bd6da6>] stv06xx_config+0xdf/0x190 drivers/media/usb/gspca/stv06xx/stv06xx.c:571
    [<000000007be62196>] gspca_dev_probe2+0x359/0x6c5 drivers/media/usb/gspca/gspca.c:1529
    [<00000000afeef2a3>] gspca_dev_probe.cold+0x42/0x4a drivers/media/usb/gspca/gspca.c:1606
    [<000000006d63a9d3>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396
    [<000000004f1fef67>] really_probe+0x159/0x4a0 drivers/base/dd.c:554
    [<00000000ced991e0>] driver_probe_device+0x84/0x100 drivers/base/dd.c:740
    [<000000001687c39d>] __device_attach_driver+0xee/0x110 drivers/base/dd.c:846
    [<0000000046da487b>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:431
    [<00000000df1d85bd>] __device_attach+0x122/0x250 drivers/base/dd.c:914
    [<00000000fa336975>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:491
    [<000000002214a827>] device_add+0x5d5/0xc40 drivers/base/core.c:3242
    [<00000000782f72d5>] usb_set_configuration+0x9d9/0xb90 drivers/usb/core/message.c:2164
    [<000000000815ea76>] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238
    [<0000000028850013>] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293
    [<000000004f1fef67>] 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/02/26 11:46 upstream 2c87f7a38f93 76f7fc95 .config console log report syz C ci-upstream-gce-leak memory leak in hdcs_probe_1x00
* Struck through repros no longer work on HEAD.