Re: [2.1.111 & 2.1.115] Problems

H. Peter Anvin (hpa@transmeta.com)
9 Aug 1998 22:52:35 GMT


Followup to: <35CE1A66.12498B2@transmeta.com>
By author: Bill Hawes <whawes@transmeta.com>
In newsgroup: linux.dev.kernel
> >
> > The problem is in the file fs/autofs/inode.c:206, the inlined function fget()
> > calles fcheck(), and this function dereference current->files, which is this
> > case NULL. There are no changes to the autofs-code from 2.1.111 to 2.1.115.
> > I have no idea to search for. Since a build the autofs as modul I can't
> > remove it. Also the umounting of all filesystems at shutdown hangs.
>
> The fget() function should never be called from a context where current->files is
> NULL. Calling fget() implies that the caller wants to do something with files,
> and you need a files struct for this. So this isn't an autofs bug, but rather a
> problem with the way it's being invoked.
>
> Can you do some further investigation to find how autofs is getting called in
> this way? (I.e. what volume it's trying to mount, and what process asked for that
> volume, etc.)
>

This implies someone is trying to mount an autofs without having a the
write end of a pipe in the fd= option, which can only happen if you're
*NOT* using automount(8) to mount autofs (which is an error,
incidentally.) Either that, or mount(8) have started to close the
pipe before mounting, but I find that highly unlikely.

-hpa

-- 
    PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD  1E DF FE 69 EE 35 BD 74
    See http://www.zytor.com/~hpa/ for web page and full PGP public key
        I am Bahá'í -- ask me about it or see http://www.bahai.org/
   "To love another person is to see the face of God." -- Les Misérables

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html