syzbot


memory leak in r8712_init_recv_priv

Status: upstream: reported C repro on 2020/12/21 03:34
Subsystems: usb staging
[Documentation on labels]
Reported-by: syzbot+1c46f3771695bccbdb3a@syzkaller.appspotmail.com
First crash: 1455d, last: 552d
Discussions (4)
Title Replies (including bot) Last reply
memory leak in r8712_init_recv_priv 1 (2) 2024/05/28 13:30
[syzbot] Monthly staging report 0 (1) 2023/04/05 08:59
[PATCH v2] staging: rtl8712: Fix memory leak in r8712_init_recv_priv 4 (4) 2021/05/22 00:43
[PATCH] staging: rtl8712: Fix memory leak in r8712_init_recv_priv 6 (6) 2021/05/21 13:42
Last patch testing requests (19)
Created Duration User Patch Repo Result
2024/10/22 16:04 20m retest repro upstream report log
2024/10/12 13:09 23m retest repro upstream report log
2024/08/13 13:49 13m retest repro upstream report log
2024/08/03 11:53 55m retest repro upstream report log
2024/06/04 13:06 12m retest repro upstream report log
2024/05/25 05:11 13m retest repro upstream report log
2024/05/25 05:11 19m retest repro upstream OK log
2024/05/25 05:11 20m retest repro upstream OK log
2024/05/25 05:11 20m retest repro upstream OK log
2024/05/25 05:11 16m retest repro upstream OK log
2022/05/11 06:15 14m zhaojunkui2008@126.com patch upstream OK
2022/05/11 03:23 2m zhaojunkui2008@126.com patch upstream error
2022/05/11 02:28 6m zhaojunkui2008@126.com patch upstream report log
2022/05/11 02:28 7m zhaojunkui2008@126.com upstream report log
2021/06/13 19:17 8m paskripkin@gmail.com https://github.com/pskrgag/linux.git rtl8712_memleak report log
2021/05/24 07:50 8m mudongliangabcd@gmail.com https://github.com/mudongliang/linux 082e30b9ed6e17274e45f978337c2aeba5565b42 report log
2021/05/21 15:49 8m mudongliangabcd@gmail.com https://github.com/mudongliang/linux bugfix3 report log
2021/05/21 11:28 9m mudongliangabcd@gmail.com https://github.com/mudongliang/linux/ 94da8b19f806b97b79b06d9e8151e321d0a54b45 report log
2021/05/21 06:45 8m mudongliangabcd@gmail.com https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888113e14c00 (size 192):
  comm "kworker/1:2", pid 1758, jiffies 4294981727 (age 61.220s)
  hex dump (first 32 bytes):
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 18 4c e1 13 81 88 ff ff  .........L......
  backtrace:
    [<ffffffff8153440a>] __do_kmalloc_node mm/slab_common.c:966 [inline]
    [<ffffffff8153440a>] __kmalloc+0x4a/0x120 mm/slab_common.c:980
    [<ffffffff831ac5f4>] kmalloc include/linux/slab.h:584 [inline]
    [<ffffffff831ac5f4>] usb_alloc_urb+0xa4/0xb0 drivers/usb/core/urb.c:75
    [<ffffffff83ba3caf>] r8712_os_recvbuf_resource_alloc+0x1f/0x80 drivers/staging/rtl8712/recv_linux.c:46
    [<ffffffff83ba68fb>] r8712_init_recv_priv+0x9b/0x220 drivers/staging/rtl8712/rtl8712_recv.c:54
    [<ffffffff83ba886c>] _r8712_init_recv_priv+0x11c/0x160 drivers/staging/rtl8712/rtl871x_recv.c:77
    [<ffffffff83ba5b72>] r8712_init_drv_sw+0xf2/0x260 drivers/staging/rtl8712/os_intfs.c:314
    [<ffffffff83ba47f3>] r871xu_drv_init+0x1f3/0x9d0 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff831b5519>] usb_probe_interface+0x179/0x3c0 drivers/usb/core/driver.c:396
    [<ffffffff82b3619d>] call_driver_probe drivers/base/dd.c:552 [inline]
    [<ffffffff82b3619d>] really_probe+0x12d/0x430 drivers/base/dd.c:631
    [<ffffffff82b3655f>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:768
    [<ffffffff82b3660a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:798
    [<ffffffff82b367fb>] __device_attach_driver+0xfb/0x150 drivers/base/dd.c:926
    [<ffffffff82b33781>] bus_for_each_drv+0xc1/0x110 drivers/base/bus.c:457
    [<ffffffff82b36d22>] __device_attach+0x102/0x2a0 drivers/base/dd.c:998
    [<ffffffff82b34e2a>] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532
    [<ffffffff82b31481>] device_add+0x991/0xc80 drivers/base/core.c:3589

BUG: memory leak
unreferenced object 0xffff888113e14b40 (size 192):
  comm "kworker/1:2", pid 1758, jiffies 4294981727 (age 61.220s)
  hex dump (first 32 bytes):
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 58 4b e1 13 81 88 ff ff  ........XK......
  backtrace:
    [<ffffffff8153440a>] __do_kmalloc_node mm/slab_common.c:966 [inline]
    [<ffffffff8153440a>] __kmalloc+0x4a/0x120 mm/slab_common.c:980
    [<ffffffff831ac5f4>] kmalloc include/linux/slab.h:584 [inline]
    [<ffffffff831ac5f4>] usb_alloc_urb+0xa4/0xb0 drivers/usb/core/urb.c:75
    [<ffffffff83ba3caf>] r8712_os_recvbuf_resource_alloc+0x1f/0x80 drivers/staging/rtl8712/recv_linux.c:46
    [<ffffffff83ba68fb>] r8712_init_recv_priv+0x9b/0x220 drivers/staging/rtl8712/rtl8712_recv.c:54
    [<ffffffff83ba886c>] _r8712_init_recv_priv+0x11c/0x160 drivers/staging/rtl8712/rtl871x_recv.c:77
    [<ffffffff83ba5b72>] r8712_init_drv_sw+0xf2/0x260 drivers/staging/rtl8712/os_intfs.c:314
    [<ffffffff83ba47f3>] r871xu_drv_init+0x1f3/0x9d0 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff831b5519>] usb_probe_interface+0x179/0x3c0 drivers/usb/core/driver.c:396
    [<ffffffff82b3619d>] call_driver_probe drivers/base/dd.c:552 [inline]
    [<ffffffff82b3619d>] really_probe+0x12d/0x430 drivers/base/dd.c:631
    [<ffffffff82b3655f>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:768
    [<ffffffff82b3660a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:798
    [<ffffffff82b367fb>] __device_attach_driver+0xfb/0x150 drivers/base/dd.c:926
    [<ffffffff82b33781>] bus_for_each_drv+0xc1/0x110 drivers/base/bus.c:457
    [<ffffffff82b36d22>] __device_attach+0x102/0x2a0 drivers/base/dd.c:998
    [<ffffffff82b34e2a>] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532
    [<ffffffff82b31481>] device_add+0x991/0xc80 drivers/base/core.c:3589

BUG: memory leak
unreferenced object 0xffff888113e14a80 (size 192):
  comm "kworker/1:2", pid 1758, jiffies 4294981727 (age 61.220s)
  hex dump (first 32 bytes):
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 98 4a e1 13 81 88 ff ff  .........J......
  backtrace:
    [<ffffffff8153440a>] __do_kmalloc_node mm/slab_common.c:966 [inline]
    [<ffffffff8153440a>] __kmalloc+0x4a/0x120 mm/slab_common.c:980
    [<ffffffff831ac5f4>] kmalloc include/linux/slab.h:584 [inline]
    [<ffffffff831ac5f4>] usb_alloc_urb+0xa4/0xb0 drivers/usb/core/urb.c:75
    [<ffffffff83ba3caf>] r8712_os_recvbuf_resource_alloc+0x1f/0x80 drivers/staging/rtl8712/recv_linux.c:46
    [<ffffffff83ba68fb>] r8712_init_recv_priv+0x9b/0x220 drivers/staging/rtl8712/rtl8712_recv.c:54
    [<ffffffff83ba886c>] _r8712_init_recv_priv+0x11c/0x160 drivers/staging/rtl8712/rtl871x_recv.c:77
    [<ffffffff83ba5b72>] r8712_init_drv_sw+0xf2/0x260 drivers/staging/rtl8712/os_intfs.c:314
    [<ffffffff83ba47f3>] r871xu_drv_init+0x1f3/0x9d0 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff831b5519>] usb_probe_interface+0x179/0x3c0 drivers/usb/core/driver.c:396
    [<ffffffff82b3619d>] call_driver_probe drivers/base/dd.c:552 [inline]
    [<ffffffff82b3619d>] really_probe+0x12d/0x430 drivers/base/dd.c:631
    [<ffffffff82b3655f>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:768
    [<ffffffff82b3660a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:798
    [<ffffffff82b367fb>] __device_attach_driver+0xfb/0x150 drivers/base/dd.c:926
    [<ffffffff82b33781>] bus_for_each_drv+0xc1/0x110 drivers/base/bus.c:457
    [<ffffffff82b36d22>] __device_attach+0x102/0x2a0 drivers/base/dd.c:998
    [<ffffffff82b34e2a>] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532
    [<ffffffff82b31481>] device_add+0x991/0xc80 drivers/base/core.c:3589


Crashes (50):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/03/04 18:25 upstream 0988a0ea7919 f8902b57 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/07/27 05:43 upstream 5de64d44968e 279b89c2 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2023/03/29 19:11 upstream fcd476ea6a88 f325deb0 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2023/03/01 15:22 upstream c0927a7a5391 f8902b57 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/12/28 17:51 upstream 1b929c02afd3 44712fbc .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/02/18 03:34 upstream f40ddce88593 14052202 .config console log report syz C ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/02/15 05:20 upstream f40ddce88593 98682e5e .config console log report syz C ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/02/14 06:34 upstream ac30d8ce28d6 98682e5e .config console log report syz C ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/02/10 03:52 upstream e0756cfc7d7c 2bd9619f .config console log report syz C ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/02/04 15:23 upstream 61556703b610 42b90a7c .config console log report syz C ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/01/31 10:18 upstream 8c947645151c fc9fd31e .config console log report syz C ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/01/28 09:21 upstream 76c057c84d28 eefc07f2 .config console log report syz C ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/01/26 23:15 upstream 13391c60da33 55a7d4df .config console log report syz C ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/01/07 01:14 upstream 9f1abbe97c08 c104d4a3 .config console log report syz C ci-upstream-gce-leak
2021/01/07 01:01 upstream 9f1abbe97c08 c104d4a3 .config console log report syz C ci-upstream-gce-leak
2020/12/26 09:05 upstream 5814bc2d4cc2 821e0b09 .config console log report syz C ci-upstream-gce-leak
2020/12/25 14:37 upstream 71c5f03154ac b982b3ea .config console log report syz C ci-upstream-gce-leak
2020/12/24 20:38 upstream 58cf05f597b0 c2c1d1dd .config console log report syz C ci-upstream-gce-leak
2020/12/22 15:48 upstream 8653b778e454 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/20 12:33 upstream 467f8165a2b0 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/19 01:07 upstream a409ed156a90 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/17 18:13 upstream accefff5b547 04201c06 .config console log report syz C ci-upstream-gce-leak
2020/12/17 03:28 upstream 5e60366d56c6 04201c06 .config console log report syz C ci-upstream-gce-leak
2022/12/07 06:53 upstream 8ed710da2873 d88f3abb .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/06/02 23:13 upstream d1dc87763f40 5783034f .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/04/17 14:33 upstream a2c29ccd9477 8bcc32a6 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/08/12 07:55 upstream 761c6d7ec820 6972b106 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/06/24 03:37 upstream 7266f2030eb0 fe4ab389 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/06/03 07:18 upstream 324c92e5e0ee 0740de69 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/08/24 12:40 upstream df0219d11b6f cea8b0f7 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/05/21 16:15 upstream 3b5e1590a267 7268fa62 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/05/15 08:37 upstream 2fe1020d73ca 744a39e2 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/04/29 23:55 upstream 2d0de93ca251 44a5ca63 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/04/28 15:15 upstream 8f4dd16603ce 8a1f1f07 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/04/23 13:45 upstream c00c5e1d157b 131df97d .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/04/18 14:11 upstream b2d229d4ddb1 8bcc32a6 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/04/16 07:05 upstream 59250f8a7f3a 8bcc32a6 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2022/02/23 01:23 upstream 917bbdb107f8 6e821dbf .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/08/21 00:29 upstream d992fe5318d8 b599f2fc .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/08/16 20:48 upstream 7c60610d4767 33c26cb7 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/08/14 22:00 upstream dfa377c35d70 2489ab88 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/08/07 12:29 upstream 894d6f401b21 6972b106 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/08/02 21:43 upstream c500bee1c5b2 6c236867 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/07/31 01:16 upstream 764a5bc89b12 6c236867 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/07/28 19:35 upstream 7d549995d4e0 17d6ab15 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/06/25 07:35 upstream 4a09d388f2ab 0edbbe31 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/06/19 05:36 upstream b1edae0d5f2e aba2b2fb .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/06/15 20:11 upstream 009c9aa5be65 58636922 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/06/09 15:50 upstream 368094df48e6 84fe5d96 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
2021/03/27 22:24 upstream 0f4498cef9f5 a8529b82 .config console log report syz ci-upstream-gce-leak memory leak in r8712_init_recv_priv
* Struck through repros no longer work on HEAD.