syzbot


memory leak in cinergyt2_fe_attach

Status: fixed on 2021/11/10 00:50
Subsystems: usb media
[Documentation on labels]
Reported-by: syzbot+e1de8986786b3722050e@syzkaller.appspotmail.com
Fix commit: 9ad1efee086e media: dvd_usb: memory leak in cinergyt2_fe_attach
First crash: 1260d, last: 1202d
Discussions (15)
Title Replies (including bot) Last reply
[PATCH 5.13 000/800] 5.13.2-rc1 review 840 (840) 2021/07/28 17:46
[PATCH 4.14 000/315] 4.14.240-rc1 review 321 (321) 2021/07/20 08:21
[PATCH 4.19 000/421] 4.19.198-rc1 review 423 (423) 2021/07/19 16:00
[PATCH 5.10 000/593] 5.10.50-rc1 review 615 (615) 2021/07/16 05:18
[PATCH 5.12 000/700] 5.12.17-rc1 review 708 (708) 2021/07/13 21:37
[PATCH 5.4 000/348] 5.4.132-rc1 review 354 (354) 2021/07/12 18:54
[PATCH AUTOSEL 5.13 01/85] spi: Make of_register_spi_device also set the fwnode 89 (89) 2021/07/09 14:02
[PATCH AUTOSEL 5.12 01/80] spi: Make of_register_spi_device also set the fwnode 82 (82) 2021/07/05 10:12
[PATCH AUTOSEL 4.14 01/25] spi: Make of_register_spi_device also set the fwnode 25 (25) 2021/07/04 23:11
[PATCH AUTOSEL 4.19 01/31] spi: Make of_register_spi_device also set the fwnode 31 (31) 2021/07/04 23:10
[PATCH AUTOSEL 5.4 01/50] spi: Make of_register_spi_device also set the fwnode 50 (50) 2021/07/04 23:09
[PATCH AUTOSEL 5.10 01/70] spi: Make of_register_spi_device also set the fwnode 70 (70) 2021/07/04 23:08
[PATCH v2] media: dvd_usb: memory leak in cinergyt2_fe_attach 1 (1) 2021/05/25 13:06
[PATCH] media: dvd_usb: memory leak in cinergyt2_fe_attach 3 (3) 2021/05/25 06:46
memory leak in cinergyt2_fe_attach 0 (1) 2020/11/12 15:07
Last patch testing requests (4)
Created Duration User Patch Repo Result
2021/05/25 07:21 15m mudongliangabcd@gmail.com https://github.com/mudongliang/linux d27178eb8e70288894798368592dddef897699f5 OK
2021/05/25 03:22 15m mudongliangabcd@gmail.com https://github.com/mudongliang/linux f87e7d2d23ad18728998fb4eda37f4b2c29f6b08 OK
2021/05/21 11:43 7m mudongliangabcd@gmail.com upstream report log
2021/04/26 10:48 14m atulgopinathan@gmail.com linux-next error OK

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810f184800 (size 2048):
  comm "kworker/0:2", pid 3811, jiffies 4294945642 (age 13.860s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 54 65 72 72 61 54 65 63  ........TerraTec
    2f 71 61 6e 75 20 55 53 42 32 2e 30 20 48 69 67  /qanu USB2.0 Hig
  backtrace:
    [<0000000056e17b1a>] kmalloc include/linux/slab.h:552 [inline]
    [<0000000056e17b1a>] kzalloc include/linux/slab.h:682 [inline]
    [<0000000056e17b1a>] cinergyt2_fe_attach+0x21/0x80 drivers/media/usb/dvb-usb/cinergyT2-fe.c:271
    [<00000000ae0b1711>] cinergyt2_frontend_attach+0x21/0x70 drivers/media/usb/dvb-usb/cinergyT2-core.c:74
    [<00000000d0254861>] dvb_usb_adapter_frontend_init+0x11b/0x1b0 drivers/media/usb/dvb-usb/dvb-usb-dvb.c:290
    [<0000000002e08ac6>] dvb_usb_adapter_init drivers/media/usb/dvb-usb/dvb-usb-init.c:84 [inline]
    [<0000000002e08ac6>] dvb_usb_init drivers/media/usb/dvb-usb/dvb-usb-init.c:173 [inline]
    [<0000000002e08ac6>] dvb_usb_device_init.cold+0x4d0/0x6ae drivers/media/usb/dvb-usb/dvb-usb-init.c:287
    [<000000003a673d9c>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396
    [<000000002a3d712f>] really_probe+0x159/0x480 drivers/base/dd.c:561
    [<0000000014edc57e>] driver_probe_device+0x84/0x100 drivers/base/dd.c:745
    [<00000000dda5ad89>] __device_attach_driver+0xee/0x110 drivers/base/dd.c:851
    [<0000000038f40b77>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:431
    [<00000000c9a57cac>] __device_attach+0x122/0x250 drivers/base/dd.c:919
    [<00000000f58313ac>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:491
    [<00000000b587a381>] device_add+0x5be/0xc30 drivers/base/core.c:3091
    [<00000000a4546dd3>] usb_set_configuration+0x9d9/0xb90 drivers/usb/core/message.c:2164
    [<000000003e9c4979>] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238
    [<00000000204a1209>] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293
    [<000000002a3d712f>] really_probe+0x159/0x480 drivers/base/dd.c:561


Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/09 06:46 upstream 6279d812eab6 c104d4a3 .config console log report syz C ci-upstream-gce-leak
2021/01/08 06:13 upstream f5e6c330254a c104d4a3 .config console log report syz C ci-upstream-gce-leak
2020/11/12 13:24 upstream 3d5e28bff7ad 77a55c8e .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.