>Synopsis: arplookup uses potentially unprotected static variable ...
>Arrival-Date: Mon Jun 25 20:50:02 PDT 2001
>Originator: Ernest Hua
FreeBSD ernestbsd.luminousnetworks.com 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Mon Nov 20 13:02:55 GMT 2000 jkh@bento.FreeBSD.org:/usr/src/sys/compile/GENERIC i386
I suspect that there is a hidden problem in using this static variable
in arplookup. We actually found this while working in VxWorks 5.4, but
it appears to be in FreeBSD and NetBSD as well. I'll check a few other
OS's later. The problem is the static variable "sin" in arplookup(),
which is used to hold the IP address to look up. I am not a network
stack expert, but I suspect this path is not multi-thread friendly, and
will have potentially corrupted results for simultaneous callers.
Remove the "static" keyword.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message