Messages in this thread |  | | Subject | Re: [PATCH RFC] fix RCU-callback-after-kmem_cache_destroy problem in sl[aou]b | From | Pekka Enberg <> | Date | Fri, 26 Jun 2009 11:45:13 +0300 |
| |
On Thu, 2009-06-25 at 15:08 -0700, Paul E. McKenney wrote: > On Thu, Jun 25, 2009 at 04:27:19PM -0500, Matt Mackall wrote: > > On Thu, 2009-06-25 at 12:31 -0700, Paul E. McKenney wrote: > > > Hello! > > > > > > Jesper noted that kmem_cache_destroy() invokes synchronize_rcu() rather > > > than rcu_barrier() in the SLAB_DESTROY_BY_RCU case, which could result > > > in RCU callbacks accessing a kmem_cache after it had been destroyed. > > > > > > The following untested (might not even compile) patch proposes a fix. > > > > Acked-by: Matt Mackall <mpm@selenic.com> > > > > Nick, you'll want to make sure you get this in SLQB. > > > > > Reported-by: Jesper Dangaard Brouer <jdb@comx.dk> > > And I seem to have blown Jesper's email address (apologies, Jesper!), so: > > Reported-by: Jesper Dangaard Brouer <hawk@comx.dk>
Compiles and boots here so I went ahead and applied the patch. ;) Thanks a lot Paul!
Pekka
|  |