OpenVZ Forum


Home » Mailing lists » Devel » Re: [PATCH] [RFC] network namespace locking rules
Re: [PATCH] [RFC] network namespace locking rules [message #20964] Fri, 28 September 2007 16:28
dlunev is currently offline  dlunev
Messages: 14
Registered: August 2007
Junior Member
Re: [PATCH] [RFC] network namespace locking rules [message #20969 is a reply to message #20964] Fri, 28 September 2007 16:27 Go to previous message
Daniel Lezcano is currently offline  Daniel Lezcano
Messages: 417
Registered: June 2006
Senior Member
Denis V. Lunev wrote:
> 
> ------------------------------------------------------------------------
> 
> Subject:
> Re: [PATCH] [RFC] network namespace locking rules
> From:
> ebiederm@xmission.com (Eric W. Biederman)
> Date:
> Thu, 27 Sep 2007 02:45:34 -0600
> To:
> "Denis V. Lunev" <den@sw.ru>
> 
> To:
> "Denis V. Lunev" <den@sw.ru>
> CC:
> Daniel Lezcano <dlezcano@fr.ibm.com>, Benjamin Thery 
> <benjamin.thery@bull.net>, Kirill Korotaev <dev@sw.ru>
> 
> 
> "Denis V. Lunev" <den@sw.ru> writes:
> 
>> Hello, Eric!
>>
>> Unfortunately, I was wrong that your patch is sane :(
>>
>> It breaks current RTNL socket semantic. Namely, current code relies that
>> - netlink from user-space is queued to RTNL socket if RTNL lock is held
>> - all pending messages in that queue will be processed in rtnl_unlock
> 
> I know we come very close to this but I have a hard time seeing
> this being guaranteed.  We don't hold a lock so I think it is
> possible for a new message to come in via another path on SMP,
> and we miss it in rtnl_unlock.  Although missing that message
> from both paths that grabs rtnl_lock sounds unlikely.
> 

Thanks, I missed this one.
it makes more sense now :)
Previous Topic: [RFC][PATCH 2/2] System V IPC: new IPC_SETID command to modify an ID
Next Topic: [PATCH] [NETNS45] network namespace locking rules
Goto Forum:
  


Current Time: Sun Aug 03 01:07:04 GMT 2025

Total time taken to generate the page: 0.66143 seconds