btrfs: invalid size on resize ioctl is ignored and not flagged up as an error (trusty)
Bug #1435441 reported by
Colin Ian King
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Low
|
Colin Ian King |
Bug Description
SRU Justification: (Trusty)
[Impact]
Illegal and/or incorrect btrfs resize parameters can be passed to the btrfs_ioctl_resize handler and it is not picked up as an error.
[Fix]
upstream commit 9a40f1222a372de
"btrfs: filter invalid arg for btrfs resize"
this is a simple parsing check, risk is low to zero.
[Testcase]
# btrfs fi resize -10A <mnt>
# btrfs fi resize -10Gaha <mnt>
These should fail with -EINVAL. Without the fix, they don't. With the fix they do.
Changed in linux (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → Low |
assignee: | nobody → Colin Ian King (colin-king) |
To post a comment you must log in.
This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- trusty' to 'verification- done-trusty' .
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!