Re: [PATCH net-2.6.25 2/2][NEIGH] Use the ctl paths to create neighbours sysctls
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-12-01 13:09:25
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2007-12-01 13:09:25
On Fri, Nov 30, 2007 at 08:29:16PM +0300, Pavel Emelyanov wrote:
Since the path is modified, it is put on the stack, to avoid possible races with multiple calls to neigh_sysctl_register() : it is called by protocols and I didn't find any protection in this case. Did I overlooked the rtnl lock?.
I think the only caller that can be a module is IPv6 :)
The stack growth of the neigh_sysctl_register() is 40 bytes. I believe this is OK, since this is not that much and this function is not called with the deep stack (device/protocols register).
Yes it's fine.
Signed-off-by: Pavel Emelyanov <redacted>
Both applied to net-2.6.25. Thanks Pavel! -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt