[trusty] btrfs: reboot/crash when running xfs btrfs tests 035
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Colin Ian King |
Bug Description
Running xfs btrfs specific tests 035 with various mount options with 7 target btrfs devices causes the kernel to crash when running inside a virtual machine. Bisecting tracked the fix down to commit 00fdf13a2e9f313
Author: Liu Bo <email address hidden>
Date: Mon Mar 10 18:56:07 2014 +0800
Btrfs: fix a crash of clone with inline extents's split
xfstests's btrfs/035 triggers a BUG_ON, which we use to detect the split
of inline extents in __btrfs_
For inline extents, we cannot duplicate another EXTENT_DATA item, because
it breaks the rule of inline extents, that is, 'start offset' needs to be 0.
We have set limitations for the source inode's compressed inline extents,
because it needs to decompress and recompress. Now the destination inode's
inline extents also need similar limitations.
With this, xfstests btrfs/035 doesn't run into panic.
Signed-off-by: Liu Bo <email address hidden>
Signed-off-by: Chris Mason <email address hidden>
SRU Justification:
[Impact]
Running standard btrfs test 035 will cause a machine to reboot.
[Fix]
commit 00fdf13a2e9f313
Btrfs: fix a crash of clone with inline extents's split
[Testcase]
Run xfs "btrfs specific" test 35 with 7 devices for the btrfs scratch pool. Run with all mount options. Without the fix, the machine reboots. With the fix, one can run this multiple times w/o a reboot.
CVE References
Changed in linux (Ubuntu): | |
importance: | Undecided → High |
status: | New → In Progress |
assignee: | nobody → Colin Ian King (colin-king) |
description: | updated |
Changed in linux (Ubuntu Trusty): | |
status: | In Progress → Fix Committed |
This is upstream as of v3.15, therefore utopic and vivid are not affected.