syzbot


memory leak in r8712_init_recv_priv

Status: upstream: reported C repro on 2020/12/21 03:34
Reported-by: syzbot+1c46f3771695bccbdb3a@syzkaller.appspotmail.com
First crash: 780d, last: 39d
Last patch testing requests:
Created Duration User Patch Repo Result
2022/12/06 10:31 8m retest repro upstream report log
2022/12/06 09:31 13m retest repro upstream OK log
2022/12/05 22:31 16m retest repro upstream OK log
2022/12/05 18:31 16m retest repro upstream OK log
2022/12/05 16:31 16m retest repro upstream OK log
2022/12/05 03:30 16m retest repro upstream OK log
2022/12/05 02:30 17m retest repro upstream OK log
2022/12/05 01:30 16m retest repro upstream OK log
2022/12/04 23:30 17m retest repro upstream OK log
2022/12/04 20:30 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:
executing program
BUG: memory leak
unreferenced object 0xffff888112203c00 (size 192):
  comm "kworker/1:1", pid 24, jiffies 4294946290 (age 18.150s)
  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 3c 20 12 81 88 ff ff  .........< .....
  backtrace:
    [<ffffffff814f8fe6>] __do_kmalloc_node mm/slab_common.c:967 [inline]
    [<ffffffff814f8fe6>] __kmalloc+0x46/0x120 mm/slab_common.c:981
    [<ffffffff8302f9b0>] kmalloc include/linux/slab.h:584 [inline]
    [<ffffffff8302f9b0>] usb_alloc_urb+0xa0/0xb0 drivers/usb/core/urb.c:75
    [<ffffffff8394614b>] r8712_os_recvbuf_resource_alloc+0x1b/0x80 drivers/staging/rtl8712/recv_linux.c:46
    [<ffffffff839480a7>] r8712_init_recv_priv+0x97/0x220 drivers/staging/rtl8712/rtl8712_recv.c:54
    [<ffffffff83949f68>] _r8712_init_recv_priv+0x118/0x160 drivers/staging/rtl8712/rtl871x_recv.c:77
    [<ffffffff8394734e>] r8712_init_drv_sw+0xee/0x260 drivers/staging/rtl8712/os_intfs.c:314
    [<ffffffff848b6a15>] r871xu_drv_init.cold+0xbb/0x770 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff83038197>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396
    [<ffffffff82a2486d>] call_driver_probe drivers/base/dd.c:560 [inline]
    [<ffffffff82a2486d>] really_probe+0x12d/0x390 drivers/base/dd.c:639
    [<ffffffff82a24b8f>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:778
    [<ffffffff82a24c3a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:808
    [<ffffffff82a24e27>] __device_attach_driver+0xf7/0x150 drivers/base/dd.c:936
    [<ffffffff82a21967>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427
    [<ffffffff82a25342>] __device_attach+0x102/0x2d0 drivers/base/dd.c:1008
    [<ffffffff82a235d6>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487
    [<ffffffff82a1f992>] device_add+0x642/0xe60 drivers/base/core.c:3479

BUG: memory leak
unreferenced object 0xffff888112203b40 (size 192):
  comm "kworker/1:1", pid 24, jiffies 4294946290 (age 18.150s)
  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 3b 20 12 81 88 ff ff  ........X; .....
  backtrace:
    [<ffffffff814f8fe6>] __do_kmalloc_node mm/slab_common.c:967 [inline]
    [<ffffffff814f8fe6>] __kmalloc+0x46/0x120 mm/slab_common.c:981
    [<ffffffff8302f9b0>] kmalloc include/linux/slab.h:584 [inline]
    [<ffffffff8302f9b0>] usb_alloc_urb+0xa0/0xb0 drivers/usb/core/urb.c:75
    [<ffffffff8394614b>] r8712_os_recvbuf_resource_alloc+0x1b/0x80 drivers/staging/rtl8712/recv_linux.c:46
    [<ffffffff839480a7>] r8712_init_recv_priv+0x97/0x220 drivers/staging/rtl8712/rtl8712_recv.c:54
    [<ffffffff83949f68>] _r8712_init_recv_priv+0x118/0x160 drivers/staging/rtl8712/rtl871x_recv.c:77
    [<ffffffff8394734e>] r8712_init_drv_sw+0xee/0x260 drivers/staging/rtl8712/os_intfs.c:314
    [<ffffffff848b6a15>] r871xu_drv_init.cold+0xbb/0x770 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff83038197>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396
    [<ffffffff82a2486d>] call_driver_probe drivers/base/dd.c:560 [inline]
    [<ffffffff82a2486d>] really_probe+0x12d/0x390 drivers/base/dd.c:639
    [<ffffffff82a24b8f>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:778
    [<ffffffff82a24c3a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:808
    [<ffffffff82a24e27>] __device_attach_driver+0xf7/0x150 drivers/base/dd.c:936
    [<ffffffff82a21967>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427
    [<ffffffff82a25342>] __device_attach+0x102/0x2d0 drivers/base/dd.c:1008
    [<ffffffff82a235d6>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487
    [<ffffffff82a1f992>] device_add+0x642/0xe60 drivers/base/core.c:3479

BUG: memory leak
unreferenced object 0xffff888112203a80 (size 192):
  comm "kworker/1:1", pid 24, jiffies 4294946290 (age 18.150s)
  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 3a 20 12 81 88 ff ff  .........: .....
  backtrace:
    [<ffffffff814f8fe6>] __do_kmalloc_node mm/slab_common.c:967 [inline]
    [<ffffffff814f8fe6>] __kmalloc+0x46/0x120 mm/slab_common.c:981
    [<ffffffff8302f9b0>] kmalloc include/linux/slab.h:584 [inline]
    [<ffffffff8302f9b0>] usb_alloc_urb+0xa0/0xb0 drivers/usb/core/urb.c:75
    [<ffffffff8394614b>] r8712_os_recvbuf_resource_alloc+0x1b/0x80 drivers/staging/rtl8712/recv_linux.c:46
    [<ffffffff839480a7>] r8712_init_recv_priv+0x97/0x220 drivers/staging/rtl8712/rtl8712_recv.c:54
    [<ffffffff83949f68>] _r8712_init_recv_priv+0x118/0x160 drivers/staging/rtl8712/rtl871x_recv.c:77
    [<ffffffff8394734e>] r8712_init_drv_sw+0xee/0x260 drivers/staging/rtl8712/os_intfs.c:314
    [<ffffffff848b6a15>] r871xu_drv_init.cold+0xbb/0x770 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff83038197>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396
    [<ffffffff82a2486d>] call_driver_probe drivers/base/dd.c:560 [inline]
    [<ffffffff82a2486d>] really_probe+0x12d/0x390 drivers/base/dd.c:639
    [<ffffffff82a24b8f>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:778
    [<ffffffff82a24c3a>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:808
    [<ffffffff82a24e27>] __device_attach_driver+0xf7/0x150 drivers/base/dd.c:936
    [<ffffffff82a21967>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427
    [<ffffffff82a25342>] __device_attach+0x102/0x2d0 drivers/base/dd.c:1008
    [<ffffffff82a235d6>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487
    [<ffffffff82a1f992>] device_add+0x642/0xe60 drivers/base/core.c:3479


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