[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#317062: umount -a hangs in strcmp with 2.6.11/12



tags 317062 patch
thanks

On Fri, Dec 09, 2005 at 11:18:43AM +0000, Colin Watson wrote:
> On Wed, Jul 06, 2005 at 01:37:58AM +0300, Joey Hess wrote:
> > On 2.6.11 or 2.6.12 on i386, in d-i, but ONLY if the d-i image is built
> > to use initramfs, and not it if uses a regular initrd, when /proc,
> > /dev/pts and /dev are mounted, umount -a hangs. strace shows it has
> > called umount syscall on each of these; /dev and /dev/pts are busy and
> > fail. ltrace shows it spinning in a strcmp loop. gdb shows it hanging in
> > mtab_getinfo, looks like the linked list has a loop in it.
> 
> I finally got fed up of the workarounds and decided to track this down.
> In fact it doesn't look like the linked list has a loop, but rather that
> mtab_getinfo just forgets to step its cur pointer if it encounters a
> rootfs. Patch follows (untested as yet, but I'm in the process of
> testing it now):

This patch works. Please apply it.

Cheers,

-- 
Colin Watson                                       [cjwatson@debian.org]



Reply to: