linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.27k stars 1k forks source link

cgroup EROFS not handled correctly #1082

Closed richiejp closed 9 months ago

richiejp commented 9 months ago

clone303 fails with TBROK when /sys/fs/cgroup is mounted as read-only (ro) which is normal for a container. We probably want to handle this with TCONF.

# clone303
tst_buffers.c:56: TINFO: Test is using guarded buffers
tst_cgroup.c:387: TBROK: mkdirat(4</sys/fs/cgroup>, 'ltp', 0777): EROFS (30)

Summary:
passed   0
failed   0
broken   1
skipped  0
warnings 0

Can be reproduced with the Alpine container: https://github.com/richiejp/ltp/blob/alpine-container/Containerfile https://hub.docker.com/repository/docker/richiejp/ltp/general

Martchus commented 9 months ago

https://patchwork.ozlabs.org/project/ltp/list/?series=374745

Martchus commented 9 months ago

The patch has been merged so this issue can be closed.

pevik commented 9 months ago

We both forget to add Fixes: #1082 to the git commit message, thus closing manually. Fixed in ec08f1d382ef87e7c353e4720d17050d068f577f.