Re: [PATCH] removed socket buffer in unix domain socket

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 7 Jan 2002 13:53:02 +0000 (GMT)


> */
> - if(UNIXCB(skb).fp)
> + if(s->dead && UNIXCB(skb).fp)
> {

The bug may be real but the fix would prevent garbage collection working
at all - which I grant would fix the problem.

You don't need a socket to be dead to want to garbage collect it. If a
socket is getting disposed of while in use then there is a
maybe_unmark_and.. call missing, or a lock on the unix socket table missing
somewhere.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/