Re: bug in 2.1.89 include/net/sock.h?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 7 Mar 1998 23:15:49 +0000 (GMT)


> There seems to be a bug in the inline code for sock_queue_rcv_skb in
> include/net/sock.h. After testing for the available space in the socket, the
> skb_set_owner_r() routine updates the space. But if packet filtering is enabled,
> the skb may be rejected by the filter, but the socket's space is never
> corrected.

I dont believe this is correct. The packet will be freed if the filter fails
and this itself will correct the memory count for the packet.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu