Bug 199869
Summary: | use-after-free in ext4_journal_get_write_access() 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 DUPLICATE | ||
Severity: | normal | CC: | tytso, wen.xu |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.17-rc5 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: |
The (compressed) crafted image which causes crash
poc.c |
Description
Wen Xu
2018-05-28 23:21:50 UTC
Created attachment 276245 [details]
poc.c
This is a dup of #200001. With "ext4: always verify the magic number in xattr blocks" applied, I'm no longer seeing crashes and instead we get the following: root@kvm-xfstests:~# /vdb/poc/do-869 [ 82.775704] EXT4-fs (loop0): barriers disabled [ 82.778168] EXT4-fs (loop0): mounted filesystem with ordered data mode. Opts: (null) [ 82.786417] EXT4-fs error (device loop0): ext4_get_branch:171: inode #14: block 1048576: comm poc-199869: invalid block [ 82.790189] EXT4-fs error (device loop0): ext4_map_blocks:592: inode #14: block 1048576: comm poc-199869: lblock 41 mapped to illegal pblock (length 1) [ 82.795350] EXT4-fs error (device loop0): ext4_clear_blocks:849: inode #14: comm poc-199869: attempt to clear invalid blocks 1048576 len 1 [ 82.811524] EXT4-fs error (device loop0): ext4_xattr_block_get:533: inode #14: comm poc-199869: corrupted xattr block 97 [ 82.813991] EXT4-fs error (device loop0): ext4_xattr_block_get:533: inode #14: comm poc-199869: corrupted xattr block 97 [ 82.817136] EXT4-fs error (device loop0): ext4_xattr_block_get:533: inode #14: comm poc-199869: corrupted xattr block 97 [ 82.819888] EXT4-fs error (device loop0): ext4_xattr_block_get:533: inode #14: comm poc-199869: corrupted xattr block 97 [ 82.822414] EXT4-fs error (device loop0): ext4_xattr_block_get:533: inode #14: comm poc-199869: corrupted xattr block 97 [ 82.824712] EXT4-fs error (device loop0): ext4_xattr_block_get:533: inode #14: comm poc-199869: corrupted xattr block 97 [ 82.826988] EXT4-fs error (device loop0): ext4_xattr_block_get:533: inode #14: comm poc-199869: corrupted xattr block 97 [ 82.829463] EXT4-fs warning (device loop0): ext4_evict_inode:302: xattr delete (err -117) *** This bug has been marked as a duplicate of bug 200001 *** |