syzbot


memory leak in class_register

Status: auto-obsoleted due to no activity on 2023/08/23 09:04
Subsystems: usb
[Documentation on labels]
Reported-by: syzbot+8d1206181166fb03c3d0@syzkaller.appspotmail.com
First crash: 301d, last: 301d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [usb?] memory leak in class_register 0 (1) 2023/05/08 03:29
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/07/13 04:22 19m retest repro upstream OK log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888101354400 (size 512):
  comm "kworker/0:1", pid 8, jiffies 4294953824 (age 15.230s)
  hex dump (first 32 bytes):
    00 44 35 01 81 88 ff ff 00 44 35 01 81 88 ff ff  .D5......D5.....
    00 00 00 00 00 00 00 00 9d 2d 9b 85 ff ff ff ff  .........-......
  backtrace:
    [<ffffffff81545854>] kmalloc_trace+0x24/0x90 mm/slab_common.c:1057
    [<ffffffff82b673e8>] kmalloc include/linux/slab.h:559 [inline]
    [<ffffffff82b673e8>] kzalloc include/linux/slab.h:680 [inline]
    [<ffffffff82b673e8>] class_register+0x28/0x140 drivers/base/class.c:186
    [<ffffffff82b67547>] class_create+0x47/0x90 drivers/base/class.c:270
    [<ffffffff831f9ad0>] init_usb_class drivers/usb/core/file.c:91 [inline]
    [<ffffffff831f9ad0>] usb_register_dev+0x290/0x3d0 drivers/usb/core/file.c:179
    [<ffffffff832d2014>] usblp_probe+0x4e4/0x750 drivers/usb/class/usblp.c:1208
    [<ffffffff831f59f9>] usb_probe_interface+0x179/0x3c0 drivers/usb/core/driver.c:396
    [<ffffffff82b64e5d>] call_driver_probe drivers/base/dd.c:579 [inline]
    [<ffffffff82b64e5d>] really_probe+0x12d/0x430 drivers/base/dd.c:658
    [<ffffffff82b65221>] __driver_probe_device+0xc1/0x1a0 drivers/base/dd.c:800
    [<ffffffff82b6532a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830
    [<ffffffff82b6551b>] __device_attach_driver+0xfb/0x150 drivers/base/dd.c:958
    [<ffffffff82b62271>] bus_for_each_drv+0xc1/0x110 drivers/base/bus.c:457
    [<ffffffff82b65a42>] __device_attach+0x102/0x2a0 drivers/base/dd.c:1030
    [<ffffffff82b639da>] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532
    [<ffffffff82b5ffd3>] device_add+0x993/0xc60 drivers/base/core.c:3625
    [<ffffffff831f2ad9>] usb_set_configuration+0x9a9/0xc90 drivers/usb/core/message.c:2211
    [<ffffffff832053f1>] usb_generic_driver_probe+0xa1/0x100 drivers/usb/core/generic.c:238


Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/04 03:25 upstream 89b7fd5d7f3c b5918830 .config console log report syz C ci-upstream-gce-leak memory leak in class_register
* Struck through repros no longer work on HEAD.