[Bug 1905579] Re: parted crashes with invalid pointer on resizepart on focal

Eric Desrochers 1905579 at bugs.launchpad.net
Mon Nov 30 17:49:28 UTC 2020


** Description changed:

  [Impact]
  
  Parted is crashing (core dumping) during resize operation, while
  changing the end position of a partition.
  
  [Test Case]
  
  root at ubuntu-focal:~# parted /dev/sda resizepart 1 100%
  Warning: Partition /dev/sda1 is being used. Are you sure you want to continue?
  Yes/No? yes
  End?  [42.9GB]?
  free(): invalid pointer
  Aborted (core dumped)
  
  [Where problems could occur]
  
  As per resize documentation:
  "Note that this does not modify any filesystem present in the partition."
  "When growing a partition you will want to grow the filesystem afterwards"
  
+ FS-wise the resize operation won't try to take action on the FS itself.
+ It would need to be done by the admin as a separate step.
+ 
  If any problem arise, it will be limited to the resize functionality of
  parted. In this case, the impact would be similar to the actual parted
- state (before this SRU).
+ state (before this SRU), and one won't be able to resize as requested.
  
  [Other Info]
  
  https://git.savannah.gnu.org/cgit/parted.git/commit/?id=ca845aeeddb17343c9289816833ca352f7c0d87b
  
  # Upstream repo:
  
  git describe --tags ca845ae
  v3.3-5-gca845ae
  
  # Ubuntu
  $ rmadison parted
  
-  parted | 3.2-15ubuntu0.1       | xenial-updates
-  parted | 3.2-20ubuntu0.2       | bionic-updates
-  parted | 3.3-4                 | focal    
-  parted | 3.3-4                 | groovy
-  parted | 3.3-4                 | hirsute
+  parted | 3.2-15ubuntu0.1       | xenial-updates
+  parted | 3.2-20ubuntu0.2       | bionic-updates
+  parted | 3.3-4                 | focal
+  parted | 3.3-4                 | groovy
+  parted | 3.3-4                 | hirsute
  
  [Original Description]
  parted crashes with invalid pointer on resizepart on focal
  
  root at ubuntu-focal:~# parted /dev/sda resizepart 1 100%
  Warning: Partition /dev/sda1 is being used. Are you sure you want to continue?
  Yes/No? yes
  End?  [42.9GB]?
  free(): invalid pointer
  Aborted (core dumped)
  
  Discussion: https://www.mail-archive.com/bug-
  parted at gnu.org/msg04962.html
  
  Fix:
  https://github.com/bcl/parted/commit/883813c365482d06d05a1998e066792c48156f23

** Description changed:

  [Impact]
  
  Parted is crashing (core dumping) during resize operation, while
  changing the end position of a partition.
  
  [Test Case]
  
  root at ubuntu-focal:~# parted /dev/sda resizepart 1 100%
  Warning: Partition /dev/sda1 is being used. Are you sure you want to continue?
  Yes/No? yes
  End?  [42.9GB]?
  free(): invalid pointer
  Aborted (core dumped)
  
  [Where problems could occur]
  
  As per resize documentation:
  "Note that this does not modify any filesystem present in the partition."
  "When growing a partition you will want to grow the filesystem afterwards"
  
  FS-wise the resize operation won't try to take action on the FS itself.
  It would need to be done by the admin as a separate step.
  
  If any problem arise, it will be limited to the resize functionality of
- parted. In this case, the impact would be similar to the actual parted
+ parted. In this case, the impact would be ~ similar to the actual parted
  state (before this SRU), and one won't be able to resize as requested.
  
  [Other Info]
  
  https://git.savannah.gnu.org/cgit/parted.git/commit/?id=ca845aeeddb17343c9289816833ca352f7c0d87b
  
  # Upstream repo:
  
  git describe --tags ca845ae
  v3.3-5-gca845ae
  
  # Ubuntu
  $ rmadison parted
  
   parted | 3.2-15ubuntu0.1       | xenial-updates
   parted | 3.2-20ubuntu0.2       | bionic-updates
   parted | 3.3-4                 | focal
   parted | 3.3-4                 | groovy
   parted | 3.3-4                 | hirsute
  
  [Original Description]
  parted crashes with invalid pointer on resizepart on focal
  
  root at ubuntu-focal:~# parted /dev/sda resizepart 1 100%
  Warning: Partition /dev/sda1 is being used. Are you sure you want to continue?
  Yes/No? yes
  End?  [42.9GB]?
  free(): invalid pointer
  Aborted (core dumped)
  
  Discussion: https://www.mail-archive.com/bug-
  parted at gnu.org/msg04962.html
  
  Fix:
  https://github.com/bcl/parted/commit/883813c365482d06d05a1998e066792c48156f23

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

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

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

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

** Changed in: parted (Ubuntu Bionic)
   Importance: Undecided => Medium

** Changed in: parted (Ubuntu Focal)
   Importance: Undecided => Medium

** Changed in: parted (Ubuntu Focal)
     Assignee: (unassigned) => Eric Desrochers (slashd)

** Changed in: parted (Ubuntu Groovy)
   Importance: Undecided => Medium

** Changed in: parted (Ubuntu Groovy)
     Assignee: (unassigned) => Eric Desrochers (slashd)

** Changed in: parted (Ubuntu Hirsute)
   Importance: Undecided => Medium

** Changed in: parted (Ubuntu Xenial)
   Importance: Undecided => Medium

** Changed in: parted (Ubuntu Xenial)
     Assignee: (unassigned) => Eric Desrochers (slashd)

** Changed in: parted (Ubuntu Bionic)
     Assignee: (unassigned) => Eric Desrochers (slashd)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to parted in Ubuntu.
https://bugs.launchpad.net/bugs/1905579

Title:
  parted crashes with invalid pointer on resizepart on focal

Status in parted package in Ubuntu:
  In Progress
Status in parted source package in Xenial:
  In Progress
Status in parted source package in Bionic:
  In Progress
Status in parted source package in Focal:
  In Progress
Status in parted source package in Groovy:
  In Progress
Status in parted source package in Hirsute:
  In Progress

Bug description:
  [Impact]

  Parted is crashing (core dumping) during resize operation, while
  changing the end position of a partition.

  [Test Case]

  root at ubuntu-focal:~# parted /dev/sda resizepart 1 100%
  Warning: Partition /dev/sda1 is being used. Are you sure you want to continue?
  Yes/No? yes
  End?  [42.9GB]?
  free(): invalid pointer
  Aborted (core dumped)

  [Where problems could occur]

  As per resize documentation:
  "Note that this does not modify any filesystem present in the partition."
  "When growing a partition you will want to grow the filesystem afterwards"

  FS-wise the resize operation won't try to take action on the FS
  itself. It would need to be done by the admin as a separate step.

  If any problem arise, it will be limited to the resize functionality
  of parted. In this case, the impact would be ~ similar to the actual
  parted state (before this SRU), and one won't be able to resize as
  requested.

  [Other Info]

  https://git.savannah.gnu.org/cgit/parted.git/commit/?id=ca845aeeddb17343c9289816833ca352f7c0d87b

  # Upstream repo:

  git describe --tags ca845ae
  v3.3-5-gca845ae

  # Ubuntu
  $ rmadison parted

   parted | 3.2-15ubuntu0.1       | xenial-updates
   parted | 3.2-20ubuntu0.2       | bionic-updates
   parted | 3.3-4                 | focal
   parted | 3.3-4                 | groovy
   parted | 3.3-4                 | hirsute

  [Original Description]
  parted crashes with invalid pointer on resizepart on focal

  root at ubuntu-focal:~# parted /dev/sda resizepart 1 100%
  Warning: Partition /dev/sda1 is being used. Are you sure you want to continue?
  Yes/No? yes
  End?  [42.9GB]?
  free(): invalid pointer
  Aborted (core dumped)

  Discussion: https://www.mail-archive.com/bug-
  parted at gnu.org/msg04962.html

  Fix:
  https://github.com/bcl/parted/commit/883813c365482d06d05a1998e066792c48156f23

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



More information about the foundations-bugs mailing list