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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D1F3C46467 for ; Mon, 16 Jan 2023 16:41:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233488AbjAPQlZ (ORCPT ); Mon, 16 Jan 2023 11:41:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233642AbjAPQk4 (ORCPT ); Mon, 16 Jan 2023 11:40:56 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 266962687E for ; Mon, 16 Jan 2023 08:29:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B74F161062 for ; Mon, 16 Jan 2023 16:29:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCEFEC43392; Mon, 16 Jan 2023 16:29:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1673886549; bh=YDLBgVbFGlpp5Fh17+mb4ujeyfkabmdhBH6RYqk33BY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GEoCQE/BGo9jMusY+SDixkBOQA8+/lbOsKTWIa2DmOx/wTnM+yMdQEGFUZ/DkfpjF OYyCz1QA58WbuHgxiTfxR+cL3Tqg+SvNkAbRL0Vk4OuG0MhZZNJb1U1BMFN3O9G8AD ODAXC75GOtzjEOg0nhahnU9yKNHXX9pXClYEYOXM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Pavel Machek , Chao Yu , Jaegeuk Kim Subject: [PATCH 5.4 472/658] f2fs: should put a page when checking the summary info Date: Mon, 16 Jan 2023 16:49:20 +0100 Message-Id: <20230116154931.086580004@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230116154909.645460653@linuxfoundation.org> References: <20230116154909.645460653@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Pavel Machek commit c3db3c2fd9992c08f49aa93752d3c103c3a4f6aa upstream. The commit introduces another bug. Cc: stable@vger.kernel.org Fixes: c6ad7fd16657e ("f2fs: fix to do sanity check on summary info") Signed-off-by: Pavel Machek Reviewed-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Greg Kroah-Hartman --- fs/f2fs/gc.c | 1 + 1 file changed, 1 insertion(+) --- a/fs/f2fs/gc.c +++ b/fs/f2fs/gc.c @@ -643,6 +643,7 @@ static bool is_alive(struct f2fs_sb_info if (ofs_in_node >= max_addrs) { f2fs_err(sbi, "Inconsistent ofs_in_node:%u in summary, ino:%u, nid:%u, max:%u", ofs_in_node, dni->ino, dni->nid, max_addrs); + f2fs_put_page(node_page, 1); return false; }