Bug 200071
Summary: | BUG() in jbd2_journal_dirty_metadata() that kernel cannot handle when mounting and operating a crafted ext4 image | ||
---|---|---|---|
Product: | File System | Reporter: | Wen Xu (wen.xu) |
Component: | ext4 | Assignee: | fs_ext4 (fs_ext4) |
Status: | RESOLVED CODE_FIX | ||
Severity: | normal | CC: | tytso, wen.xu |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.17 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
The (compressed) crafted image which causes crash
poc.c A (compressed) simplified image |
Description
Wen Xu
2018-06-14 04:04:21 UTC
Created attachment 276543 [details]
The (compressed) crafted image which causes crash
Created attachment 276545 [details]
poc.c
Created attachment 276573 [details]
A (compressed) simplified image
This bug is addressed by these two commits: jbd2: don't mark block as modified if the handle is out of credits http://patchwork.ozlabs.org/patch/930638/ ext4: avoid running out of journal credits when appending to an inline file http://patchwork.ozlabs.org/patch/930641/ This bug can be triggered without needing a specially crafted file system (although, of course, the inline_data feature has to be enabled in the file system --- which is currently not enabled by the default). This has been assigned CVE-2018-10883 Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1596846 |