Re: Serious locking bug in Linux NFS

Tony Cook (kernel@cook.ml.org)
Sun, 18 Oct 1998 11:22:32 +1000 (EST)


On Fri, 16 Oct 1998, H.J. Lu wrote:

> Someone else said:
> > 3) I got this message while starting statd:
> >
> > Oct 16 13:50:15 linuxserver ./statd[23846]: address mismatch: expected
> > 240.92.123.21, got 240.92.123.21
> >
>
> Here is the relevant code:
>
> if (lp->addr.s_addr != sin->sin_addr.s_addr)
> dprintf(L_WARNING, "address mismatch: "
> "expected %s, got %s\n",
> inet_ntoa(lp->addr),
> inet_ntoa(sin->sin_addr));
>
> I don't see how it can happen besides a bad compiler/HW. It looks
> like you may have a compiler/HW.

inet_ntoa() uses a static buffer for the returned string (at least for
glibc). The two addresses printed when this message is triggered will
_always_ be the same.

-
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.tux.org/lkml/