[pkg-lxc-devel] Bug#843427: Bug#843427: lxc-ls -f aborts with Glibc invalid pointer to free()

Andrea Villa andreakarimodm at gmail.com
Mon Nov 7 10:53:47 UTC 2016


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 <evgeni at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-lxc-devel/attachments/20161107/4b615220/attachment-0001.html>


More information about the Pkg-lxc-devel mailing list