From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CFBB2146D53 for ; Mon, 15 Jun 2026 15:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781537411; cv=none; b=Vma7SRSyCushHPzST3n3jgN7k9xxwqkVQGsZN9WfXoAtv4PiWWKbZyTqHlywXQnjGe+ZuVPLSuXRI17Ylfik1z8ynn7xFVztv7m4rBOk3oKI+vh12tbReGB4ILNIwgLAeLnzBSjlnCQl5yXvYUC8JtH/5cyy5FSqEn4vYByqezs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781537411; c=relaxed/simple; bh=srewXNpBn/FHfoO2Lx5m/ch6bJJ87/xoQNRC3avPewI=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=loNyqB63kqKhJSsef7DgpvWtnW/pnsPVE9PKmnUo4IK0mhXumfAhYeqfFLehp/5iJr29vaag74z4Koo2H9AiNjg+0ETuYVQ7h83zUU2wRODZPfZa55jhGQClaDUTXJCOEIxBqxDjN4amDYm16CCRPLCA5IrJ5qP9ItAEU43IbEg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KXnLcB04; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KXnLcB04" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6B6C31F000E9; Mon, 15 Jun 2026 15:30:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1781537410; bh=KHl7EarGbqvA9kn+YJmWk4AdrVxstzmkgQrT2YInGPw=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=KXnLcB04CnK07hLb+x7GvsrUUpo5moQt0dm9WvFwSsYHndDX6EWOSah5GYaupazko 8ZSxs3xBQBTAwwckTjIZFGFQe7uTsRBoUjo8yFZd4v+APyEhgZbEfPaP2DEk6KtLjL EvVyNO9kFS5WJ7kyUKUOPCj8BBX+s7RpIrGnHjPKarepV7mdl87hRitWlVA15mywZ+ cMjWHP+BKINBSCn08bpUGCYVOY2fHeZPAJyjdbOcvCSS9q58+QSiY4Vna1Urk8QQfA p7p4Mxwu+OalV7BoNR+f2TRIavMN+WuOsCG0VwbDCyJ855Urv+W3/dr9DUAS2nY40n +pLjBMEE+SeTA== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id D0A713811A64; Mon, 15 Jun 2026 15:30:06 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [f2fs-dev] [PATCH v2] f2fs: validate orphan inode entry count From: patchwork-bot+f2fs@kernel.org Message-Id: <178153740564.3946007.4916019333564296614.git-patchwork-notify@kernel.org> Date: Mon, 15 Jun 2026 15:30:05 +0000 References: <20260526053557.1096229-1-qiwenjie@xiaomi.com> In-Reply-To: <20260526053557.1096229-1-qiwenjie@xiaomi.com> To: Wenjie Qi Cc: jaegeuk@kernel.org, chao@kernel.org, linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, stable@kernel.org, qiwenjie@xiaomi.com Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim : On Tue, 26 May 2026 13:35:57 +0800 you wrote: > f2fs_recover_orphan_inodes() trusts the orphan block entry_count when > replaying orphan inodes from the checkpoint pack. A corrupted entry_count > larger than F2FS_ORPHANS_PER_BLOCK makes the recovery loop read past the > ino[] array and interpret footer or following data as inode numbers. > > On a crafted image, mounting an unpatched kernel can drive orphan recovery > into f2fs_bug_on() and panic the kernel. Validate entry_count before > consuming entries so corrupted checkpoint data fails the mount with > -EFSCORRUPTED and requests fsck instead. > > [...] Here is the summary with links: - [f2fs-dev,v2] f2fs: validate orphan inode entry count https://git.kernel.org/jaegeuk/f2fs/c/de81d95d4e42 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html