2003-07-14 22:43:17

by NeilBrown

[permalink] [raw]
Subject: Re: mountd segmentation fault in nfs-utils-1.0.4 with 2.5.75-bk1

On Monday July 14, [email protected] wrote:
>=20
> The mountd daemon segmentation faults after receiving a mount request=
from
> the client. Checking /var/log/messages, I get some strange logs:
>=20
> Jul 14 16:17:25 vega rpc.mountd: authenticated mount request from
> \200a^U@\200a^U@H=E9^F^HH=E9^F^H\220a^U@\220a^U@\230a^U@\230a^U@=A0a^=
U@=A0a^U@,=E8^F^H,=E8^F^H=B0a^U@=B0a^U@,a^U@,a^U@Aa^U@Aa^U@Ea^U@Ea^U@Da=
^U@Da^U@Oa^U@Oa^U@=E0a^U@=E0a^U@=E8a^U@=E8a^U@oa^U@oa^U@oa^U@oa^U@:793
> for /nfsserver/reiserfs (/nfsserver/reiserfs)
> Jul 14 16:17:25 vega rpc.mountd: MNT1(/nfsserver/ext2) called
>=20
>=20
> I attached an strace of the rpc.mountd pid during an unsuccessful mou=
nt
> request. I can re-test this on 2.6.0-test1 if needed.

Thanks.
There is a stray 'free(hp)' at line 169 in utils/mountd/auth.c,
in the middle of auth_authenticate.
Could you remove that and try again? =20

NeilBrown



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
http://www.parasoft.com/bulletproofapps1
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs


2003-07-14 21:55:45

by Robert Williamson

[permalink] [raw]
Subject: Re: mountd segmentation fault in nfs-utils-1.0.4 with 2.5.75-bk1


Okay, BTW I ran the 'mount -t nfsd nfsd /proc/fs/nfs' command and the
mounts succeeded.


Robert V. Williamson <[email protected]>
Linux Test Project
IBM Linux Technology Center
Web: http://ltp.sourceforge.net
IRC: #ltp on freenode.irc.net
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
"Only two things are infinite, the universe and human stupidity, and I'=
m
not sure about the former." -Albert Einstein


=
=20
Neil Brown =
=20
<[email protected] To: Robert William=
son/Austin/IBM@IBMUS =20
du.au> cc: nfs-list@lists=
.sourceforge.net =20
Subject: Re: mountd seg=
mentation fault in nfs-utils-1.0.4 with 2.5.75-bk1 =20
07/14/2003 04:52 =
=20
PM =
=20
=
=20




On Monday July 14, [email protected] wrote:
>
> The mountd daemon segmentation faults after receiving a mount request=

from
> the client. Checking /var/log/messages, I get some strange logs:
>
> Jul 14 16:17:25 vega rpc.mountd: authenticated mount request from
>
\200a^U@\200a^U@H=E9^F^HH=E9^F^H\220a^U@\220a^U@\230a^U@\230a^U@=A0a^U@=
=A0a^U@,=E8^F^H,=E8^F^H=B0a^U@=B0a^U@,a^U@,a^U@Aa^U@Aa^U@Ea^U@Ea^U@Da^U=
@Da^U@Oa^U@Oa^U@=E0a^U@=E0a^U@=E8a^U@=E8a^U@oa^U@oa^U@oa^U@oa^U@:793

> for /nfsserver/reiserfs (/nfsserver/reiserfs)
> Jul 14 16:17:25 vega rpc.mountd: MNT1(/nfsserver/ext2) called
>
>
> I attached an strace of the rpc.mountd pid during an unsuccessful mou=
nt
> request. I can re-test this on 2.6.0-test1 if needed.

Thanks.
There is a stray 'free(hp)' at line 169 in utils/mountd/auth.c,
in the middle of auth_authenticate.
Could you remove that and try again?

NeilBrown


=




-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
http://www.parasoft.com/bulletproofapps1
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2003-07-14 22:07:14

by Robert Williamson

[permalink] [raw]
Subject: Re: mountd segmentation fault in nfs-utils-1.0.4 with 2.5.75-bk1


Works! Thanks for the quick response. I saw that free(hp), and wonder=
ed
why it seemed a bit out of place, but figured I'd post first.


Robert V. Williamson <[email protected]>
Linux Test Project
IBM Linux Technology Center
Web: http://ltp.sourceforge.net
IRC: #ltp on freenode.irc.net
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
"Only two things are infinite, the universe and human stupidity, and I'=
m
not sure about the former." -Albert Einstein


=
=20
Neil Brown =
=20
<[email protected] To: Robert William=
son/Austin/IBM@IBMUS =20
du.au> cc: nfs-list@lists=
.sourceforge.net =20
Subject: Re: mountd seg=
mentation fault in nfs-utils-1.0.4 with 2.5.75-bk1 =20
07/14/2003 04:52 =
=20
PM =
=20
=
=20




On Monday July 14, [email protected] wrote:
>
> The mountd daemon segmentation faults after receiving a mount request=

from
> the client. Checking /var/log/messages, I get some strange logs:
>
> Jul 14 16:17:25 vega rpc.mountd: authenticated mount request from
>
\200a^U@\200a^U@H=E9^F^HH=E9^F^H\220a^U@\220a^U@\230a^U@\230a^U@=A0a^U@=
=A0a^U@,=E8^F^H,=E8^F^H=B0a^U@=B0a^U@,a^U@,a^U@Aa^U@Aa^U@Ea^U@Ea^U@Da^U=
@Da^U@Oa^U@Oa^U@=E0a^U@=E0a^U@=E8a^U@=E8a^U@oa^U@oa^U@oa^U@oa^U@:793

> for /nfsserver/reiserfs (/nfsserver/reiserfs)
> Jul 14 16:17:25 vega rpc.mountd: MNT1(/nfsserver/ext2) called
>
>
> I attached an strace of the rpc.mountd pid during an unsuccessful mou=
nt
> request. I can re-test this on 2.6.0-test1 if needed.

Thanks.
There is a stray 'free(hp)' at line 169 in utils/mountd/auth.c,
in the middle of auth_authenticate.
Could you remove that and try again?

NeilBrown


=




-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
http://www.parasoft.com/bulletproofapps1
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs