syzbot


memory leak in airspy_probe

Status: upstream: reported C repro on 2022/08/11 02:20
Reported-by: syzbot+bb25f85e5aa482864dc0@syzkaller.appspotmail.com
Fix commit: media: airspy: fix memory leak in airspy probe
Patched on: [ci-upstream-linux-next-kasan-gce-root], missing on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-qemu2-riscv64 ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb]
First crash: 56d, last: 56d
Patch testing requests:
Created Duration User Patch Repo Result
2022/08/11 02:35 16m mudongliangabcd@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git -- OK log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810afb7300 (size 128):
  comm "kworker/0:1", pid 44, jiffies 4294946315 (age 14.410s)
  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:
    [<ffffffff8316980e>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff8316980e>] kzalloc include/linux/slab.h:733 [inline]
    [<ffffffff8316980e>] airspy_probe+0x8e/0x200 drivers/media/usb/airspy/airspy.c:981
    [<ffffffff82d83457>] usb_probe_interface+0x177/0x370 drivers/usb/core/driver.c:396
    [<ffffffff8277ff2d>] call_driver_probe drivers/base/dd.c:530 [inline]
    [<ffffffff8277ff2d>] really_probe+0x12d/0x390 drivers/base/dd.c:609
    [<ffffffff8278024f>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:748
    [<ffffffff827802fa>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:778
    [<ffffffff82780c46>] __device_attach_driver+0xf6/0x140 drivers/base/dd.c:901
    [<ffffffff8277d127>] bus_for_each_drv+0xb7/0x100 drivers/base/bus.c:427
    [<ffffffff827806d2>] __device_attach+0x102/0x2d0 drivers/base/dd.c:973
    [<ffffffff8277ed96>] bus_probe_device+0xc6/0xe0 drivers/base/bus.c:487
    [<ffffffff8277b152>] device_add+0x642/0xe60 drivers/base/core.c:3517
    [<ffffffff82d80892>] usb_set_configuration+0x8f2/0xb80 drivers/usb/core/message.c:2170
    [<ffffffff82d9121c>] usb_generic_driver_probe+0x8c/0xc0 drivers/usb/core/generic.c:238
    [<ffffffff82d82b2c>] usb_probe_device+0x5c/0x140 drivers/usb/core/driver.c:293
    [<ffffffff8277ff2d>] call_driver_probe drivers/base/dd.c:530 [inline]
    [<ffffffff8277ff2d>] really_probe+0x12d/0x390 drivers/base/dd.c:609
    [<ffffffff8278024f>] __driver_probe_device+0xbf/0x140 drivers/base/dd.c:748
    [<ffffffff827802fa>] driver_probe_device+0x2a/0x120 drivers/base/dd.c:778


Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2022/08/07 02:16 upstream 20cf903a0c40 88e3a122 .config log report syz C memory leak in airspy_probe
* Struck through repros no longer work on HEAD.