Re: [f2fs-dev] [PATCH v2] f2fs: validate orphan inode entry count
patchwork-bot+f2fs--- via Linux-f2fs-devel <[email protected]>
| Newsgroups | net.sourceforge.lists.linux-f2fs-devel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <178153740564.3946007.4916019333564296614.git-patchwork-notify@kernel.org> |
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <[email protected]>: 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 _______________________________________________ Linux-f2fs-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel