syzbot


memory leak in _r8712_init_xmit_priv (2)

Status: upstream: reported C repro on 2023/11/20 00:09
Subsystems: staging usb
[Documentation on labels]
Reported-by: syzbot+83763e624cfec6b462cb@syzkaller.appspotmail.com
First crash: 163d, last: 143d
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [staging?] [usb?] memory leak in _r8712_init_xmit_priv (2) 0 (3) 2024/01/19 13:22
[syzbot] Monthly staging report (Nov 2023) 0 (1) 2023/11/24 10:21
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in _r8712_init_xmit_priv staging usb C 1 293d 289d 23/26 fixed on 2023/10/12 12:47
Last patch testing requests (6)
Created Duration User Patch Repo Result
2024/04/17 09:30 14m retest repro upstream report log
2024/02/14 03:44 14m retest repro upstream report log
2024/01/19 13:22 11m n.zhandarovich@fintech.ru upstream report log
2023/12/05 09:39 19m retest repro upstream report log
2023/12/05 09:39 19m retest repro upstream report log
2023/11/23 19:08 11m yuran.pereira@hotmail.com patch 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 0xffff888107a5c000 (size 4096):
  comm "kworker/1:0", pid 22, jiffies 4294943134 (age 18.720s)
  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:
    [<ffffffff816337cd>] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline]
    [<ffffffff816337cd>] slab_post_alloc_hook mm/slab.h:766 [inline]
    [<ffffffff816337cd>] slab_alloc_node mm/slub.c:3478 [inline]
    [<ffffffff816337cd>] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517
    [<ffffffff8157e625>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1098
    [<ffffffff83cee442>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff83cee442>] _r8712_init_xmit_priv+0x2b2/0x6e0 drivers/staging/rtl8712/rtl871x_xmit.c:130
    [<ffffffff83ce9033>] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:311
    [<ffffffff83ce7ce6>] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff832d0f0b>] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:396
    [<ffffffff82c3bb06>] call_driver_probe drivers/base/dd.c:579 [inline]
    [<ffffffff82c3bb06>] really_probe+0x126/0x440 drivers/base/dd.c:658
    [<ffffffff82c3bee3>] __driver_probe_device+0xc3/0x190 drivers/base/dd.c:800
    [<ffffffff82c3bfda>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830
    [<ffffffff82c3c1d4>] __device_attach_driver+0x104/0x160 drivers/base/dd.c:958
    [<ffffffff82c38f5d>] bus_for_each_drv+0xcd/0x120 drivers/base/bus.c:457
    [<ffffffff82c3c6fa>] __device_attach+0xfa/0x290 drivers/base/dd.c:1030
    [<ffffffff82c3a6ca>] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532
    [<ffffffff82c36b7e>] device_add+0x9be/0xc90 drivers/base/core.c:3625
    [<ffffffff832cdfd7>] usb_set_configuration+0x967/0xc70 drivers/usb/core/message.c:2207
    [<ffffffff832e0cac>] usb_generic_driver_probe+0x9c/0xf0 drivers/usb/core/generic.c:238

BUG: memory leak
unreferenced object 0xffff888107a59000 (size 4096):
  comm "kworker/1:0", pid 22, jiffies 4294943134 (age 18.720s)
  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:
    [<ffffffff816337cd>] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline]
    [<ffffffff816337cd>] slab_post_alloc_hook mm/slab.h:766 [inline]
    [<ffffffff816337cd>] slab_alloc_node mm/slub.c:3478 [inline]
    [<ffffffff816337cd>] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517
    [<ffffffff8157e625>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1098
    [<ffffffff83cee442>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff83cee442>] _r8712_init_xmit_priv+0x2b2/0x6e0 drivers/staging/rtl8712/rtl871x_xmit.c:130
    [<ffffffff83ce9033>] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:311
    [<ffffffff83ce7ce6>] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff832d0f0b>] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:396
    [<ffffffff82c3bb06>] call_driver_probe drivers/base/dd.c:579 [inline]
    [<ffffffff82c3bb06>] really_probe+0x126/0x440 drivers/base/dd.c:658
    [<ffffffff82c3bee3>] __driver_probe_device+0xc3/0x190 drivers/base/dd.c:800
    [<ffffffff82c3bfda>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830
    [<ffffffff82c3c1d4>] __device_attach_driver+0x104/0x160 drivers/base/dd.c:958
    [<ffffffff82c38f5d>] bus_for_each_drv+0xcd/0x120 drivers/base/bus.c:457
    [<ffffffff82c3c6fa>] __device_attach+0xfa/0x290 drivers/base/dd.c:1030
    [<ffffffff82c3a6ca>] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532
    [<ffffffff82c36b7e>] device_add+0x9be/0xc90 drivers/base/core.c:3625
    [<ffffffff832cdfd7>] usb_set_configuration+0x967/0xc70 drivers/usb/core/message.c:2207
    [<ffffffff832e0cac>] usb_generic_driver_probe+0x9c/0xf0 drivers/usb/core/generic.c:238

BUG: memory leak
unreferenced object 0xffff888108475000 (size 4096):
  comm "kworker/1:0", pid 22, jiffies 4294943134 (age 18.720s)
  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:
    [<ffffffff816337cd>] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline]
    [<ffffffff816337cd>] slab_post_alloc_hook mm/slab.h:766 [inline]
    [<ffffffff816337cd>] slab_alloc_node mm/slub.c:3478 [inline]
    [<ffffffff816337cd>] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517
    [<ffffffff8157e625>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1098
    [<ffffffff83cee442>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff83cee442>] _r8712_init_xmit_priv+0x2b2/0x6e0 drivers/staging/rtl8712/rtl871x_xmit.c:130
    [<ffffffff83ce9033>] r8712_init_drv_sw+0xc3/0x290 drivers/staging/rtl8712/os_intfs.c:311
    [<ffffffff83ce7ce6>] r871xu_drv_init+0x1c6/0x920 drivers/staging/rtl8712/usb_intf.c:386
    [<ffffffff832d0f0b>] usb_probe_interface+0x16b/0x3a0 drivers/usb/core/driver.c:396
    [<ffffffff82c3bb06>] call_driver_probe drivers/base/dd.c:579 [inline]
    [<ffffffff82c3bb06>] really_probe+0x126/0x440 drivers/base/dd.c:658
    [<ffffffff82c3bee3>] __driver_probe_device+0xc3/0x190 drivers/base/dd.c:800
    [<ffffffff82c3bfda>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:830
    [<ffffffff82c3c1d4>] __device_attach_driver+0x104/0x160 drivers/base/dd.c:958
    [<ffffffff82c38f5d>] bus_for_each_drv+0xcd/0x120 drivers/base/bus.c:457
    [<ffffffff82c3c6fa>] __device_attach+0xfa/0x290 drivers/base/dd.c:1030
    [<ffffffff82c3a6ca>] bus_probe_device+0xca/0xd0 drivers/base/bus.c:532
    [<ffffffff82c36b7e>] device_add+0x9be/0xc90 drivers/base/core.c:3625
    [<ffffffff832cdfd7>] usb_set_configuration+0x967/0xc70 drivers/usb/core/message.c:2207
    [<ffffffff832e0cac>] usb_generic_driver_probe+0x9c/0xf0 drivers/usb/core/generic.c:238


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/16 00:06 upstream c42d9eeef8e5 cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in _r8712_init_xmit_priv
2023/11/21 08:50 upstream 98b1cc82c4af cb976f63 .config console log report syz [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in _r8712_init_xmit_priv
* Struck through repros no longer work on HEAD.