diff options
| author | Theodore Ts'o <[email protected]> | 2012-03-12 03:30:16 +0000 |
|---|---|---|
| committer | Theodore Ts'o <[email protected]> | 2012-03-12 03:30:16 +0000 |
| commit | 31d4f3a2f3c73f279ff96a7135d7202ef6833f12 (patch) | |
| tree | 9240ee74aa863ea27f5e9c89e1e3cf0e4784c032 /fs/jbd2/commit.c | |
| parent | ext4: add comments to definition of ext4_io_end_t (diff) | |
| download | kernel-31d4f3a2f3c73f279ff96a7135d7202ef6833f12.tar.gz kernel-31d4f3a2f3c73f279ff96a7135d7202ef6833f12.zip | |
ext4: check for zero length extent
Explicitly test for an extent whose length is zero, and flag that as a
corrupted extent.
This avoids a kernel BUG_ON assertion failure.
Tested: Without this patch, the file system image found in
tests/f_ext_zero_len/image.gz in the latest e2fsprogs sources causes a
kernel panic. With this patch, an ext4 file system error is noted
instead, and the file system is marked as being corrupted.
https://bugzilla.kernel.org/show_bug.cgi?id=42859
Signed-off-by: "Theodore Ts'o" <[email protected]>
Cc: [email protected]
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
