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 EC0C0C54E76 for ; Mon, 2 Jan 2023 11:27:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232833AbjABL1x (ORCPT ); Mon, 2 Jan 2023 06:27:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232821AbjABL1S (ORCPT ); Mon, 2 Jan 2023 06:27:18 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D01A364C3 for ; Mon, 2 Jan 2023 03:26:09 -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 6CAFE60F21 for ; Mon, 2 Jan 2023 11:26:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F976C433EF; Mon, 2 Jan 2023 11:26:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672658768; bh=hAvx3q6cfyAeR6U5A9L964J/ewWmzYN0oRYGFofXeKo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QLepNxnP72wuJE79u1ZkQ4IWlQo9jieTQHp86Cpi01UdjYfZAjYraKCV1lRNlaMw0 fm1N/AqfgVuZgBRqSwIAwq8FYYxHY3ZltfbQdCIWOhHKUQOGRMEKVAGq7pSuI2U1GN mBAhlcBvyT9GjCUX5ytUT1nIvIGgD3m9ciQW/PHI= 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 6.1 63/71] f2fs: should put a page when checking the summary info Date: Mon, 2 Jan 2023 12:22:28 +0100 Message-Id: <20230102110554.131875258@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230102110551.509937186@linuxfoundation.org> References: <20230102110551.509937186@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 @@ -1109,6 +1109,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; }