From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.4 required=3.0 tests=FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 974DAC54E8F for ; Mon, 11 May 2020 18:21:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 835BE20736 for ; Mon, 11 May 2020 18:21:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731105AbgEKSVW (ORCPT ); Mon, 11 May 2020 14:21:22 -0400 Received: from mail-il1-f198.google.com ([209.85.166.198]:48960 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729825AbgEKSVV (ORCPT ); Mon, 11 May 2020 14:21:21 -0400 Received: by mail-il1-f198.google.com with SMTP id i2so10162724ile.15 for ; Mon, 11 May 2020 11:21:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=6IhQVM21jouY7unYnKk8xoX6AewAdvt9Su+siXbvu9Q=; b=qBYYEl8uLCkIkGEkiLXshr1Ioi4mdk+Fi2BFVVScNYbiS+rmxvaFoKxOcHcwoDxjfc CIVIPZbQpZydRbKJ4uWfT1Z33RDDV5yBMPQGfw0lBa1tkrOjReqdEgHHHXxm7yIcMPTa YUyLBqm8D6bs1mwq+3S4o8rr5lLaOt53LcR05mRlZPmz6SvCVpKbJfYkFRsCCWt7T4Kr NvBfXDRBtaEK6Vn9jNhJg2bI/pvM3y2CYWDBlSp38cIwzb0kWZ6lzP95o1oB2OTUz/lS LeSgd0B0oxhs0nfLvfJkaZRfV/FH1OdQxbosY/z0Cm/7ZtXRxj9HfCYtpN0SBRO84cDK at8g== X-Gm-Message-State: AGi0PuaSyDOovECJgX6JCpGkVs4PMvTXpMdTD+VC1lnUXV2ty1dqP5+/ EBSH7olN7RWZ+7GGOPBacWHRUB5mhnf4QEdTVFh73uld2Zml X-Google-Smtp-Source: APiQypKk9BzI5bmAuB7bOiRXIisFnD9ZGVqUW1uDSRyhqz1+fyIfPz5wIODV8zkIdpJDFQ2y/MUCPhy8Or0CVm37ApnS21xXNNS+ MIME-Version: 1.0 X-Received: by 2002:a02:3b4b:: with SMTP id i11mr16870119jaf.16.1589221280294; Mon, 11 May 2020 11:21:20 -0700 (PDT) Date: Mon, 11 May 2020 11:21:20 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000e1accc05a563699e@google.com> Subject: memory leak in erase_aeb (2) From: syzbot To: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, miquel.raynal@bootlin.com, richard@nod.at, syzkaller-bugs@googlegroups.com, vigneshr@ti.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 2ef96a5b Linux 5.7-rc5 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1383fd32100000 kernel config: https://syzkaller.appspot.com/x/.config?x=c566cc03357343ce dashboard link: https://syzkaller.appspot.com/bug?extid=d9aab50b1154e3d163f5 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1166ab14100000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+d9aab50b1154e3d163f5@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff888127f372c0 (size 32): comm "syz-executor.0", pid 6931, jiffies 4294945277 (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 01 00 00 00 02 00 00 00 ................ backtrace: [<0000000049aad7d8>] erase_aeb+0x25/0x110 drivers/mtd/ubi/wl.c:1690 [<000000004a6c95d3>] ubi_wl_init+0x193/0x5c0 drivers/mtd/ubi/wl.c:1757 [<00000000a1d58128>] ubi_attach+0x611/0x18ba drivers/mtd/ubi/attach.c:1605 [<00000000eb6b9da4>] ubi_attach_mtd_dev+0x665/0xcc0 drivers/mtd/ubi/build.c:967 [<000000000a8ebd80>] ctrl_cdev_ioctl+0x144/0x1b0 drivers/mtd/ubi/cdev.c:1043 [<000000007ada47ea>] vfs_ioctl fs/ioctl.c:47 [inline] [<000000007ada47ea>] ksys_ioctl+0xa6/0xd0 fs/ioctl.c:771 [<00000000bd687125>] __do_sys_ioctl fs/ioctl.c:780 [inline] [<00000000bd687125>] __se_sys_ioctl fs/ioctl.c:778 [inline] [<00000000bd687125>] __x64_sys_ioctl+0x1a/0x20 fs/ioctl.c:778 [<000000006f0eae66>] do_syscall_64+0x6e/0x220 arch/x86/entry/common.c:295 [<00000000eaee3164>] entry_SYSCALL_64_after_hwframe+0x44/0xa9 --- This bug is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches