Skip to content

cgroup: errno can be clobbered by free() #2153

Description

@eriksjolund

Inspired by @jnovy comment quote:
"errno can be clobbered by free()"
I searched for some more

% git grep -B1 -P 'crun_make_error.*errno'  | grep -A1 release
libcrun/cgroup.c-          crun_error_release (err);
libcrun/cgroup.c:          return crun_make_error (err, errno, "error when using statfs on `%s`", CGROUP_ROOT "/freezer");

In other words, here is another one:

crun/src/libcrun/cgroup.c

Lines 164 to 165 in 96c7f15

crun_error_release (err);
return crun_make_error (err, errno, "error when using statfs on `%s`", CGROUP_ROOT "/freezer");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions