Skip to content

e2fsprogs: backport fix for e2fsck skipping checks with orphan_file f… - #18338

Open
Ankita Pareek (Ankita13-code) wants to merge 1 commit into
3.0-devfrom
fix/e2fsprogs-orphan-file-skip-check
Open

e2fsprogs: backport fix for e2fsck skipping checks with orphan_file f…#18338
Ankita Pareek (Ankita13-code) wants to merge 1 commit into
3.0-devfrom
fix/e2fsprogs-orphan-file-skip-check

Conversation

@Ankita13-code

@Ankita13-code Ankita Pareek (Ankita13-code) commented Aug 6, 2026

Copy link
Copy Markdown
Merge Checklist
  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted
  • LICENSE-MAP files are up-to-date
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

Backport upstream fix for e2fsck incorrectly skipping filesystem checks when the orphan_file feature is enabled and orphan inodes are present. After an unclean reboot, this causes the kernel to reject mounting with "bad orphan inode" errors, dropping the system into emergency mode.

The fix is a minimal 4-line backport of upstream commit a8df015 which adds a check in check_if_skip() to force e2fsck to run when both orphan_file and orphan_present superblock features are set.

This same fix was validated by Fedora (e2fsprogs-1.47.1-6) and SUSE, and confirmed working by multiple independent testers.

Change Log
  • Backport upstream commit a8df015 to e2fsprogs 1.47.0 (patch: CVE-2024-e2fsck-orphan-file-skip-check.patch)
  • Bump release from 2 to 3
  • Update toolchain and pkggen manifests for aarch64 and x86_64
Does this affect the toolchain?

YES

Associated issues
  • Emergency mode after unclean reboot on ext4 filesystems with orphan_file feature
Links to CVEs
Test Methodology

@microsoft-github-policy-service microsoft-github-policy-service Bot added Packaging 3.0-dev PRs Destined for AzureLinux 3.0 labels Aug 6, 2026
…eature

After an unclean reboot, e2fsck could skip filesystem checks even when
orphan inodes are present on filesystems with the orphan_file feature
enabled. This caused the kernel to reject mounting with 'bad orphan
inode' errors, dropping the system into emergency mode.

Backport upstream commit a8df015009e7cd71b411f21e7d6f0797a28cba5c which
adds a check in check_if_skip() to not skip when both orphan_file and
orphan_present features are set.

This fix was confirmed working by Fedora (1.47.1-6) and SUSE.

Reference: https://bugzilla.redhat.com/show_bug.cgi?id=2318710
Reference: https://bugzilla.suse.com/show_bug.cgi?id=1226043
Upstream: tytso/e2fsprogs@a8df015
Signed-off-by: Ankita Pareek <ankitapareek@microsoft.com>
@Ankita13-code
Ankita Pareek (Ankita13-code) force-pushed the fix/e2fsprogs-orphan-file-skip-check branch from e57927f to 6fb069e Compare August 6, 2026 11:55
@Ankita13-code
Ankita Pareek (Ankita13-code) marked this pull request as ready for review August 6, 2026 12:21
@Ankita13-code
Ankita Pareek (Ankita13-code) requested a review from a team as a code owner August 6, 2026 12:21
if (ctx->options & E2F_OPT_JOURNAL_ONLY)
goto skip;

+ if (ext2fs_has_feature_orphan_file(fs->super) &&

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Patch looks good w.r.t upstream.
How have we verified this ?

@Sumynwa Sumedh Alok Sharma (Sumynwa) Aug 7, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding to what Muhammad Falak R Wani (@mfrw) said about testing, upstream patch has added tests for this fix. Can we check if we can apply that patch and run ptest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.0-dev PRs Destined for AzureLinux 3.0 Packaging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants