OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Don't attach callback to a going-away netlink socket
Re: [PATCH] Don't attach callback to a going-away netlink socket [message #12049 is a reply to message #12046] Mon, 16 April 2007 12:55 Go to previous messageGo to previous message
Patrick McHardy is currently offline  Patrick McHardy
Messages: 107
Registered: March 2006
Senior Member
Pavel Emelianov wrote:
> Patrick McHardy wrote:
>
>>>There is a race between netlink_dump_start() and netlink_release()
>>>that can lead to the situation when a netlink socket with non-zero
>>>callback is freed.
>>
>>
>>Can you describe the race in more detail please?
>>
>
> Here it is:
>
> [...]
> The proposal it to make sock_orphan before detaching the callback
> in netlink_release() and to check for the sock to be SOCK_DEAD in
> netlink_dump_start() before setting a new callback.


Thanks, good catch. Your patch also looks good.

Acked-by: Patrick McHardy <kaber@trash.net>
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to query mount propagation state?
Next Topic: [PATCH] Report that kernel is tainted if there were an OOPS before
Goto Forum:
  


Current Time: Thu Aug 15 19:20:03 GMT 2024

Total time taken to generate the page: 0.02860 seconds