Skip to content

Infinite loop when reading /proc/cpuinfo #75

@aither64

Description

@aither64

When CPU limit is set to a higher value than the number of CPUs on the host system, reading
from /proc/cpuinfo in containers never ends, it keeps returning processor 0 over and over.

Reproducer on a system with 8 CPUs:

ct new --distribution alpine testct
ct set cpu-limit testct 1000
ct start testct
ct exec testct cat /proc/cpuinfo

Metadata

Metadata

Assignees

No one assigned

    Labels

    kernelKernel related work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions