[lxc-devel] [lxc/lxc] 1a7040: cgfs: add print_cgfs_init_debuginfo()

GitHub noreply at github.com
Mon Nov 7 17:09:08 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 1a704014eeedf1c52135e520962fcff94fdf67c3
      https://github.com/lxc/lxc/commit/1a704014eeedf1c52135e520962fcff94fdf67c3
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-10-30 (Sun, 30 Oct 2016)

  Changed paths:
    M src/lxc/cgroups/cgfs.c

  Log Message:
  -----------
  cgfs: add print_cgfs_init_debuginfo()

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 82a2fe03a61febcc1b2300550a70ac698cb1fd11
      https://github.com/lxc/lxc/commit/82a2fe03a61febcc1b2300550a70ac698cb1fd11
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-10-30 (Sun, 30 Oct 2016)

  Changed paths:
    M src/lxc/cgroups/cgfs.c

  Log Message:
  -----------
  cgfs: skip empty entries under /proc/self/cgroup

If cgroupv2 is enabled either alone or together with legacy hierarchies
/proc/self/cgroup can contain entries of the form:
   0::/

These entries need to be skipped.

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: 517587ef58a7dfd0bbc597963fd9a99ab4099420
      https://github.com/lxc/lxc/commit/517587ef58a7dfd0bbc597963fd9a99ab4099420
  Author: Christian Brauner <christian.brauner at canonical.com>
  Date:   2016-10-30 (Sun, 30 Oct 2016)

  Changed paths:
    M src/lxc/cgroups/cgfs.c

  Log Message:
  -----------
  cgfs: explicitly check for NULL

Somehow this implementation of a cgroupfs backend decided to use the hierarchy
numbers it detects in /proc/cgroups and /proc/self/cgroups as indices for
the hierarchy struct. Controller numbering usually starts at 1 but may start at
0 if:

    a) the controller is not mounted on a cgroups v1 hierarchy;
    b) the controller is bound to the cgroups v2 single unified hierarchy; or
    c) the controller is disabled

To avoid having to rework our fallback backend significantly, we should
explicitly check for each controller if hierarchy[i] != NULL.

Signed-off-by: Christian Brauner <christian.brauner at canonical.com>


  Commit: f79750ace93892e7fac01d6b06a2c063453441ce
      https://github.com/lxc/lxc/commit/f79750ace93892e7fac01d6b06a2c063453441ce
  Author: Serge Hallyn <serge at hallyn.com>
  Date:   2016-11-07 (Mon, 07 Nov 2016)

  Changed paths:
    M src/lxc/cgroups/cgfs.c

  Log Message:
  -----------
  Merge pull request #1262 from brauner/2016-10-29/lxc_free_cgroup_sigsegv

cgfs: various fixes


Compare: https://github.com/lxc/lxc/compare/f5795427b157...f79750ace938


More information about the lxc-devel mailing list