https://bugzilla.novell.com/show_bug.cgi?id=887713 https://bugzilla.novell.com/show_bug.cgi?id=887713#c0 Summary: /proc in chroot not removable Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: x86-64 OS/Version: openSUSE 13.1 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: richard@nod.at QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 On 13.1 (kernel 3.11.10-17-default) it happens sometimes that a procfs directory within a chroot is not deletable after the chroot is gone. This happens every few days on my build server where I build images using kiwi. Kiwi seems to chroot into image-root/ and has a procfs in image-root/proc/. After kiwi is done and image-root/proc/ is no longer mounted the image-root/proc/ directory cannot be deleted. It fails with EBUSY. According to lsof/fuser no process has image-root/proc open or as cwd. I've double check it. Sample output: ---cut--- azrael:/home/rw/work/sigmaworkstation/maker # ls -la /home/rw/work/sigmaworkstation/maker/_build/basesystem/tmp/build/image-root/proc total 8 drwxr-xr-x 2 root root 4096 Jul 17 11:05 . drwxr-xr-x 3 root root 4096 Jul 17 11:21 .. azrael:/home/rw/work/sigmaworkstation/maker # ls -la /home/rw/work/sigmaworkstation/maker/_build/basesystem/tmp/build/image-root/ total 12 drwxr-xr-x 3 root root 4096 Jul 17 11:21 . drwxr-xr-x 3 root root 4096 Jul 17 11:07 .. drwxr-xr-x 2 root root 4096 Jul 17 11:05 proc azrael:/home/rw/work/sigmaworkstation/maker # rmdir /home/rw/work/sigmaworkstation/maker/_build/basesystem/tmp/build/image-root/proc rmdir: failed to remove ‘/home/rw/work/sigmaworkstation/maker/_build/basesystem/tmp/build/image-root/proc’: Device or resource busy azrael:/home/rw/work/sigmaworkstation/maker # umount /home/rw/work/sigmaworkstation/maker/_build/basesystem/tmp/build/image-root/proc umount: /home/rw/work/sigmaworkstation/maker/_build/basesystem/tmp/build/image-root/proc: not mounted azrael:/home/rw/work/sigmaworkstation/maker # cat /proc/self/mounts | grep proc proc /proc proc rw,relatime 0 0 systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=25,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0 ---cut--- Looks like a kernel VFS issue to me. Reproducible: Sometimes Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.