Thanks for your reply Evgeni, I can confirm that the issue is related to the /sys/fs/cgroup/systemd to be mounted under the cgroup2 hierarchy with systemd 232-2. The 4.8 kernel doesn't play a role here: I tried to revert to an older snapshot with systemd 231-10 and 4.8 kernel and lxc behaves correctly because /sys/fs/cgroup/systemd is mounted under cgroup1 hierarchy by default.
As explained by the GH thread /sys/fs/cgroup/systemd should be mounted with cgroup instead of cgroup2. Any idea on how to force systemd to use cgroup instead of cgroup2 hierarchy? On Mon, Nov 7, 2016 at 8:42 AM, Evgeni Golov <evg...@debian.org> wrote: > Hi Andrea, > > On Sun, Nov 06, 2016 at 05:07:40PM +0100, Andrea wrote: > > lxc-ls -f fails attempting to free an invalid pointer, a user after free > maybe? > > Could be, there was a similar report upstream... > > Can you please post the outputs of > cat /proc/1/mountinfo > cat /proc/self/cgroup > > I suspect that with kernel 4.8 systemd mounts th cgroup2 fs instead of > old cgroup and this breaks libpam-cgfs and that confuses lxc-* :( > > See also https://github.com/lxc/lxc/issues/1280 > > Regards > Evgeni >