On Thu, Jul 30, 2015 at 12:59:30PM -0400, Doug Ledford wrote: > On 07/30/2015 12:50 PM, Jason Gunthorpe wrote: > > On Thu, Jul 30, 2015 at 12:46:52PM -0400, Doug Ledford wrote: > > > >> I've pulled this series in for 4.3. There were some additional items in > >> some of Jason's comments that ought to be looked into, but I think this > >> patch set has reached the point where it's no worse than existing in > >> terms of locking, there were just some existing issues that should be > >> addressed too. > > > > Eh? V6 corrupts random kernel memory if you use the hot-removal. > > I didn't see that in there. Did I read through the discussion too fast? > I'll go recheck...
For a char device you absolutely cannot kfree the cdev in the file release callback. The file still holds a ref on cdev and it will guarenteed use after-free on cdev during core code struct file cleanup. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
