Using cgm on cgroups that have a comma does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cgmanager (Ubuntu) |
Fix Released
|
High
|
Serge Hallyn | ||
Trusty |
New
|
Medium
|
Unassigned | ||
Utopic |
Fix Released
|
High
|
Unassigned |
Bug Description
=======
SRU Justification
Impact: cgmanager can be made to crash if controllers are co-mounted a certain way
Test case:
Edit /etc/init/
mount -t cgroup -o cpu,cpuacct none /mnt
reboot, then try
cgm create cpu,cpuacct xxx
Regresion potential: this patch only prevents us trying to memmove off the ends of
a char*. There should be no regressions.
=======
When I try using cgm on cgroups that have a comma, I get an Invalid Request error.
For example, if I try "cgm create net_cls,net_prio $USER" inside a Vivid container, the Vivid host's cgmanager will start to spin at 100% CPU and the command fails.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: cgmanager 0.36-2ubuntu1
ProcVersionSign
Uname: Linux 3.19.0-9-generic x86_64
ApportVersion: 2.16.2-0ubuntu4
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Mar 23 12:25:36 2015
InstallationDate: Installed on 2013-03-18 (734 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
SourcePackage: cgmanager
UpgradeStatus: Upgraded to vivid on 2014-10-20 (153 days ago)
Changed in cgmanager (Ubuntu): | |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
importance: | Undecided → High |
status: | New → Triaged |
no longer affects: | cgmanager (Ubuntu Trusty) |
description: | updated |
description: | updated |
Changed in cgmanager (Ubuntu Utopic): | |
importance: | Undecided → High |
This bug was fixed in the package cgmanager - 0.36-2ubuntu3
---------------
cgmanager (0.36-2ubuntu3) vivid; urgency=medium
* d/p/0006- cgmanager- make-exception- for-proxys- placed- in-system. patch:
Make a special case for when cgproxy is started by systemd under a special
slice. Without this, nested containers with cgmanager are not possible.
* Fix up the last patch - no behavior change, just make the flow more
reassuring
-- Serge Hallyn <email address hidden> Mon, 23 Mar 2015 18:21:47 -0500