Re: [PATCH net-2.6.25] [IPV6] ADDRLABEL: Fix double free on label deletion.

2008-01-29 Thread Paul E. McKenney
On Mon, Jan 28, 2008 at 09:02:22PM +0900, YOSHIFUJI Hideaki / 吉藤英明 wrote: > If an entry is being deleted because it has only one reference, > we immediately delete it and blindly register the rcu handler for it, > This results in oops by double freeing that object. > > This patch fixes it by cons

Re: [PATCH net-2.6.25] [IPV6] ADDRLABEL: Fix double free on label deletion.

2008-01-28 Thread David Miller
From: YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]> Date: Mon, 28 Jan 2008 21:02:22 +0900 (JST) > If an entry is being deleted because it has only one reference, > we immediately delete it and blindly register the rcu handler for it, > This results in oops by double freeing that object. > > This

[PATCH net-2.6.25] [IPV6] ADDRLABEL: Fix double free on label deletion.

2008-01-28 Thread YOSHIFUJI Hideaki / 吉藤英明
If an entry is being deleted because it has only one reference, we immediately delete it and blindly register the rcu handler for it, This results in oops by double freeing that object. This patch fixes it by consolidating the code paths for the deletion; let its rcu handler delete the object if