[Devel] Re: [NETLINK] Don't attach callback to a going-away netlink socket

Evgeniy Polyakov johnpol at 2ka.mipt.ru
Wed Apr 18 02:29:03 PDT 2007


On Wed, Apr 18, 2007 at 11:16:50AM +0200, Patrick McHardy (kaber at trash.net) wrote:
> > That is what I referred to as error path. Btw, with positive return
> > value we end up in subsequent call to input which will free callback
> > under lock as expected.
> 
> 
> No, nothing is going to call netlink_dump after the initial call since
> the socket is gone.

Argh, userspace socket's sk_data_rady() if dump returned positive value.
So, callback is not freed to allow to put several pages before
NLMSG_DONE via single dump?

-- 
	Evgeniy Polyakov




More information about the Devel mailing list