OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] pid: Extend/Fix pid_vnr
Re: [PATCH] pid: Extend/Fix pid_vnr [message #24624 is a reply to message #24622] Fri, 07 December 2007 01:57 Go to previous messageGo to previous message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
Quoting sukadev@us.ibm.com (sukadev@us.ibm.com):
> Oleg Nesterov [oleg@tv-sign.ru] wrote:
> | On 12/05, Eric W. Biederman wrote:
> | > 
> | > +pid_t pid_vnr(struct pid *pid)
> | > +{
> | > +	return pid_nr_ns(pid, current->nsproxy->pid_ns);
> | > +}
> 
> Hmm. current->nsproxy be NULL during process exit ?
> So this safe as long as pid_vnr() is not called after a
> process exits its namespaces. Probably no such callers atm. 

Yes I did a little audit for those this morning bc I frankly didn't
believe there weren't any.  But I couldn't find any :)

-serge

> | 
> | Excellent!!!
> | 
> | This allows us to do many cleanups. I am sending the trivial patch just
> | as example.
> | 
> | Oleg.
> _______________________________________________
> Containers mailing list
> Containers@lists.linux-foundation.org
> https://lists.linux-foundation.org/mailman/listinfo/containers
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH][VLAN] Merge tree equal tails in vlan_skb_recv
Next Topic: [PATCH][IPV4] Swap the ifa allocation with the"ipv4_devconf_setall" call
Goto Forum:
  


Current Time: Tue Aug 26 23:02:44 GMT 2025

Total time taken to generate the page: 0.10835 seconds