syzbot


memory leak in wacom_probe

Status: fixed on 2021/03/10 01:48
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+5b49c9695968d7250a26@syzkaller.appspotmail.com
Fix commit: 37309f47e2f5 HID: wacom: Fix memory leakage caused by kfifo_alloc
First crash: 1485d, last: 1430d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.10 000/103] 5.10.8-rc1 review 116 (116) 2021/01/18 09:29
[PATCH 5.4 00/62] 5.4.90-rc1 review 68 (68) 2021/01/17 12:54
[PATCH 4.19 00/43] 4.19.168-rc1 review 48 (48) 2021/01/16 07:58
[PATCH] HID: wacom: Fix memory leak in wacom_probe() 3 (3) 2021/01/14 12:57
memory leak in wacom_probe 1 (2) 2020/11/24 08:44
Last patch testing requests (2)
Created Duration User Patch Repo Result
2020/12/09 14:48 14m yepeilin.cs@gmail.com patch upstream report log
2020/11/21 09:23 14m tranmanphong@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git eccc8767 report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810d601a00 (size 512):
  comm "kworker/1:2", pid 3257, jiffies 4294943137 (age 14.240s)
  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:
    [<00000000258f47d5>] kmalloc_array include/linux/slab.h:592 [inline]
    [<00000000258f47d5>] __kfifo_alloc+0xad/0x100 lib/kfifo.c:43
    [<00000000c5801df1>] wacom_probe+0x1a1/0x3b0 drivers/hid/wacom_sys.c:2727
    [<0000000084fe6ac6>] hid_device_probe+0x16b/0x210 drivers/hid/hid-core.c:2281
    [<0000000023929ba4>] really_probe+0x159/0x480 drivers/base/dd.c:561
    [<0000000044a3ecc3>] driver_probe_device+0x84/0x100 drivers/base/dd.c:745
    [<00000000bd19bcc3>] __device_attach_driver+0xee/0x110 drivers/base/dd.c:851
    [<000000006e1d6f6b>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:431
    [<000000005145df6f>] __device_attach+0x122/0x250 drivers/base/dd.c:919
    [<000000002794ece8>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:491
    [<000000000adddf5c>] device_add+0x5be/0xc30 drivers/base/core.c:3091
    [<000000008487b4a9>] hid_add_device+0x151/0x390 drivers/hid/hid-core.c:2437
    [<00000000c16dccd8>] usbhid_probe+0x4d1/0x620 drivers/hid/usbhid/hid-core.c:1409
    [<000000004e213fe1>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396
    [<0000000023929ba4>] really_probe+0x159/0x480 drivers/base/dd.c:561
    [<0000000044a3ecc3>] driver_probe_device+0x84/0x100 drivers/base/dd.c:745
    [<00000000bd19bcc3>] __device_attach_driver+0xee/0x110 drivers/base/dd.c:851


Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/01/05 23:12 upstream 36bbbd0e234d a0234d98 .config console log report syz C ci-upstream-gce-leak
2021/01/03 23:34 upstream 3516bd729358 79264ae3 .config console log report syz C ci-upstream-gce-leak
2021/01/03 22:57 upstream 3516bd729358 79264ae3 .config console log report syz C ci-upstream-gce-leak
2020/12/29 10:52 upstream dea8dcf2a9fa 8259d56c .config console log report syz C ci-upstream-gce-leak
2020/12/20 21:31 upstream 467f8165a2b0 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/13 06:52 upstream 7b1b868e1d91 bca53db9 .config console log report syz C ci-upstream-gce-leak
2020/12/12 16:31 upstream 7f376f1917d7 bca53db9 .config console log report syz C ci-upstream-gce-leak
2020/12/12 09:22 upstream 7f376f1917d7 bca53db9 .config console log report syz C ci-upstream-gce-leak
2020/12/12 04:28 upstream 33dc9614dc20 ba24ffcd .config console log report syz C ci-upstream-gce-leak
2020/12/11 11:30 upstream 33dc9614dc20 f900b48c .config console log report syz C ci-upstream-gce-leak
2020/12/10 20:13 upstream a2f5ea9e314b f900b48c .config console log report syz C ci-upstream-gce-leak
2020/12/10 19:45 upstream a2f5ea9e314b f900b48c .config console log report syz C ci-upstream-gce-leak
2020/12/09 23:59 upstream a68a0262abda c090b4da .config console log report syz C ci-upstream-gce-leak
2020/12/09 08:42 upstream 7d8761ba27fc 40cc414d .config console log report syz C ci-upstream-gce-leak
2020/12/07 17:16 upstream 0477e9288185 1190297f .config console log report syz C ci-upstream-gce-leak
2020/12/07 07:39 upstream 7059c2c00a21 c521566d .config console log report syz C ci-upstream-gce-leak
2020/12/05 05:34 upstream e87297fa080a 20366b87 .config console log report syz C ci-upstream-gce-leak
2020/12/02 07:30 upstream 509a15421674 c42a35e9 .config console log report syz C ci-upstream-gce-leak
2020/11/30 00:48 upstream aae5ab854e38 a0092f9d .config console log report syz C ci-upstream-gce-leak
2020/11/27 08:48 upstream 85a2c56cb445 5018c946 .config console log report syz C ci-upstream-gce-leak
2020/11/26 22:49 upstream 4df910620beb 1d2b823e .config console log report syz C ci-upstream-gce-leak
2020/11/20 13:13 upstream 4d02da974ea8 0767f13f .config console log report syz C ci-upstream-gce-leak
2020/11/20 05:28 upstream 3494d58865ad 0767f13f .config console log report syz C ci-upstream-gce-leak
2020/11/16 09:31 upstream 0062442ecfef 1bf9a662 .config console log report syz C ci-upstream-gce-leak
2020/11/13 05:41 upstream af5043c89a8e 16fca0c8 .config console log report syz C ci-upstream-gce-leak
2020/11/11 22:28 upstream eccc87672492 cca87986 .config console log report syz C ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.