syzbot


memory leak in erase_aeb (2)

Status: fixed on 2020/09/16 22:51
Subsystems: mtd
[Documentation on labels]
Reported-by: syzbot+d9aab50b1154e3d163f5@syzkaller.appspotmail.com
Fix commit: 3b185255bb2f ubi: fastmap: Don't produce the initial next anchor PEB when fastmap is disabled
First crash: 1672d, last: 1602d
Discussions (5)
Title Replies (including bot) Last reply
[PATCH 5.8 000/232] 5.8.3-rc1 review 253 (253) 2020/08/27 16:39
[PATCH v3 0/2] ubi: fastmap: Produce and release fm_anchor peb correctly 3 (3) 2020/07/07 13:41
[PATCH v2] ubi: fastmap: Don't produce the initial anchor PEB when fastmap is disabled 1 (1) 2020/06/02 11:24
[PATCH] ubi: fastmap: Don't produce the initial anchor PEB when fastmap is disabled 3 (3) 2020/06/02 11:11
memory leak in erase_aeb (2) 0 (1) 2020/05/11 18:21
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream memory leak in erase_aeb mtd C 109 1673d 1826d 15/28 fixed on 2020/05/10 10:42

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88811f0557a0 (size 32):
  comm "syz-executor.0", pid 6654, jiffies 4294947917 (age 14.440s)
  hex dump (first 32 bytes):
    00 01 00 00 00 00 ad de 22 01 00 00 00 00 ad de  ........".......
    00 10 00 00 00 00 00 00 01 00 00 00 02 00 00 00  ................
  backtrace:
    [<000000004136634e>] erase_aeb+0x25/0x110 drivers/mtd/ubi/wl.c:1700
    [<00000000b25c05a0>] ubi_wl_init+0x191/0x5c0 drivers/mtd/ubi/wl.c:1767
    [<000000006dd3c40f>] ubi_attach+0x63b/0x1879 drivers/mtd/ubi/attach.c:1605
    [<0000000068bc0c6c>] ubi_attach_mtd_dev+0x65c/0xd30 drivers/mtd/ubi/build.c:970
    [<0000000075166789>] ctrl_cdev_ioctl+0x144/0x1b0 drivers/mtd/ubi/cdev.c:1043
    [<0000000022b6024c>] vfs_ioctl fs/ioctl.c:48 [inline]
    [<0000000022b6024c>] ksys_ioctl+0xa6/0xd0 fs/ioctl.c:753
    [<0000000028854177>] __do_sys_ioctl fs/ioctl.c:762 [inline]
    [<0000000028854177>] __se_sys_ioctl fs/ioctl.c:760 [inline]
    [<0000000028854177>] __x64_sys_ioctl+0x1a/0x20 fs/ioctl.c:760
    [<00000000e7ea1177>] do_syscall_64+0x4c/0xe0 arch/x86/entry/common.c:384
    [<00000000775ebe09>] entry_SYSCALL_64_after_hwframe+0x44/0xa9


Crashes (25):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/07/20 01:51 upstream 92188b41f139 9c812472 .config console log report syz ci-upstream-gce-leak
2020/07/18 22:17 upstream 6a70f89cc58f 9c812472 .config console log report syz ci-upstream-gce-leak
2020/07/17 07:15 upstream f8456690ba8e 54b3c45e .config console log report syz ci-upstream-gce-leak
2020/07/16 12:45 upstream 994e99a96c9b f3bec699 .config console log report syz ci-upstream-gce-leak
2020/07/16 12:16 upstream 994e99a96c9b f3bec699 .config console log report syz ci-upstream-gce-leak
2020/07/15 13:06 upstream e9919e11e219 f3bec699 .config console log report syz ci-upstream-gce-leak
2020/07/04 09:55 upstream 7cc2a8ea1048 51095195 .config console log report syz ci-upstream-gce-leak
2020/07/02 16:59 upstream cd77006e01b3 bed10395 .config console log report syz ci-upstream-gce-leak
2020/06/30 22:40 upstream 9ebcfadb0610 917afeaa .config console log report syz ci-upstream-gce-leak
2020/06/25 17:51 upstream 3e08a95294a4 c7b4497a .config console log report syz ci-upstream-gce-leak
2020/06/18 04:59 upstream 1b5044021070 b9f3810b .config console log report syz ci-upstream-gce-leak
2020/06/07 15:42 upstream 7ae77150d94d 2c2b926c .config console log report syz ci-upstream-gce-leak
2020/06/07 14:54 upstream 7ae77150d94d 2c2b926c .config console log report syz ci-upstream-gce-leak
2020/06/07 08:31 upstream 7ae77150d94d e6b89e4e .config console log report syz ci-upstream-gce-leak
2020/06/01 05:10 upstream bdc48fa11e46 a0331e89 .config console log report syz ci-upstream-gce-leak
2020/05/30 05:53 upstream e2fce151d2b4 954bd312 .config console log report syz ci-upstream-gce-leak
2020/05/29 11:52 upstream 75caf310d16c d19ed305 .config console log report syz ci-upstream-gce-leak
2020/05/28 08:24 upstream b0c3ba31be3e 142a0957 .config console log report syz ci-upstream-gce-leak
2020/05/24 11:18 upstream 423b8baf18a8 96c92ad3 .config console log report syz ci-upstream-gce-leak
2020/05/23 13:11 upstream 444565650a5f 9682898d .config console log report syz ci-upstream-gce-leak
2020/05/23 03:42 upstream 051143e1602d 9682898d .config console log report syz ci-upstream-gce-leak
2020/05/21 04:55 upstream b85051e755b0 c61086ab .config console log report syz ci-upstream-gce-leak
2020/05/17 08:24 upstream 3d1c1e5931ce 37bccd4e .config console log report syz ci-upstream-gce-leak
2020/05/11 10:25 upstream 2ef96a5bb12b f8f57555 .config console log report syz ci-upstream-gce-leak
2020/05/10 11:44 upstream 1d3962ae3b3d 8742a2b9 .config console log report syz ci-upstream-gce-leak
* Struck through repros no longer work on HEAD.