rshared bind mount loses the peer group of its source on kernel 6.12
I maintainer di solito rispondono entro 1 giorno
@kolyshkin ci sta già lavorando.
Dal 21/10/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
A bind mount with the rshared option is expected to stay in the peer group of its source, so that mounts made on the host below the source propagate into the container (#2122, fixed by 39c49297 for the pre-created bind mounts).
On CentOS Stream 10 (kernel 6.12.0-84.el10), the bind mount in the container is not shared at all. The mount-propagation-shared test in tests/test_mounts.py fails there with the current main (98558b51):
# bind mount at /mnt has no shared peer group
# mountinfo line: 308 531 252:2 /usr /mnt rw,relatime - xfs /dev/vda2 rw,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota
while on the host /usr is part of /, which is shared:
69 1 252:2 / / rw,relatime shared:1 - xfs /dev/vda2 rw,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota
The same test passes on Fedora 45 with kernel 7.3, where crun sets up the rootfs with OPEN_TREE_NAMESPACE instead of unshare(CLONE_NEWNS) + pivot_root, so the fix might cover only that path. I have not looked into the root cause yet.
To reproduce, as root, run a container with
{"destination": "/mnt", "type": "bind", "source": "/usr", "options": ["bind", "rshared"]}
and check that /mnt in /proc/self/mountinfo of the container has the same shared:N tag as the host mount that /usr is on.
Note that tests/test_mounts.py is skipped in the CI, as the libmount python module is not available on the Ubuntu runners, so this test has not been run there.
- Lingua principale
- C
- Stelle
- 4.2k
- Fork
- 476
- Merge medio
- 1g 10h
- PR unite (30g)
- 55
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di containers/crun
-
krun: render-server sandbox dev-binds only /dev/dri, so NVIDIA GPUs are invisibleForse già presa @ViderStar l’ha presa 31 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
containers/crun#2413 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
containers/crun#2495 ·
I maintainer di solito rispondono entro 1 giorno
-
1.31: fail to run with mounts inside target on old kernels without mount_setattr()Forse già presa @martinetd l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
containers/crun#2484 ·
I maintainer di solito rispondono entro 1 giorno
-
1.31: exec fails with "write to /proc/self/oom_score_adj: Permission denied" under a systemd user manager (rootless podman API, healthchecks)Forse già presa @rfay l’ha presa 13 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
containers/crun#2466 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
krun: hardcoded /usr/bin/bwrap and /usr/libexec/virgl_render_server break distributions that install the server under /usr/libForse già presa @slp l’ha presa 7 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
containers/crun#2414 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di containers/crun
Issue simili
-
bug severity: medium
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AlessandroSangiuliano/Uros#1014 ·
-
severity: low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
luainkernel/lunatik#2727 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 6 giorni
-
Termux compilation failureApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bot-triaged module: cuda module: memory usage module: pybind module: tensor creation triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pytorch/pytorch#206707 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno