From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from a.ns.miles-group.at ([95.130.255.143] helo=radon.swed.at) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XRTD8-00075I-Df for linux-mtd@lists.infradead.org; Tue, 09 Sep 2014 21:44:27 +0000 Message-ID: <540F749B.6080607@nod.at> Date: Tue, 09 Sep 2014 23:43:55 +0200 From: Richard Weinberger MIME-Version: 1.0 To: Richard Genoud Subject: Re: [PATCH] UBI: add missing kmem_cache_free() in process_pool_aeb error path References: <1410265519-25111-1-git-send-email-richard.genoud@gmail.com> In-Reply-To: <1410265519-25111-1-git-send-email-richard.genoud@gmail.com> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Artem Bityutskiy List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Am 09.09.2014 14:25, schrieb Richard Genoud: > I ran into this error after a ubiupdatevol, because I forgot to backport > e9110361a9a4 UBI: fix the volumes tree sorting criteria. > > UBI error: process_pool_aeb: orphaned volume in fastmap pool > UBI error: ubi_scan_fastmap: Attach by fastmap failed, doing a full scan! > kmem_cache_destroy ubi_ainf_peb_slab: Slab cache still has objects > CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.18-00053-gf05cac8dbf85 #1 > [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > [] (show_stack) from [] (destroy_ai+0x230/0x244) > [] (destroy_ai) from [] (ubi_attach+0x98/0x1ec) > [] (ubi_attach) from [] (ubi_attach_mtd_dev+0x2b8/0x868) > [] (ubi_attach_mtd_dev) from [] (ubi_init+0x1dc/0x2ac) > [] (ubi_init) from [] (do_one_initcall+0x94/0x140) > [] (do_one_initcall) from [] (kernel_init_freeable+0xe8/0x1b0) > [] (kernel_init_freeable) from [] (kernel_init+0x8/0xe4) > [] (kernel_init) from [] (ret_from_fork+0x14/0x24) > UBI: scanning is finished > > Freeing the cache in the error path fixes the Slab error. > > Tested on at91sam9g35 (3.14.18+fastmap backports) > > Signed-off-by: Richard Genoud > Cc: stable # >= 3.10 I guess you wrote 3.10 because there is no stable kernel between >= 3.7 and < 3.10? Patch looks good otherwise. Acked-by: Richard Weinberger Thanks, //richard