← Back to team overview

kernel-packages team mailing list archive

[Bug 1435441] [NEW] btrfs: invalid size on resize ioctl is ignored and not flagged up as an error (trusty)

 

Public bug reported:

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 9a40f1222a372de77344d85d31f8fe0e1c0e60e7
"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.

** Affects: linux (Ubuntu)
     Importance: Low
     Assignee: Colin Ian King (colin-king)
         Status: In Progress

** Changed in: linux (Ubuntu)
       Status: New => In Progress

** Changed in: linux (Ubuntu)
   Importance: Undecided => Low

** Changed in: linux (Ubuntu)
     Assignee: (unassigned) => Colin Ian King (colin-king)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1435441

Title:
  btrfs: invalid size on resize ioctl is ignored and not flagged up as
  an error (trusty)

Status in linux package in Ubuntu:
  In Progress

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 9a40f1222a372de77344d85d31f8fe0e1c0e60e7
  "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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1435441/+subscriptions


Follow ups

References