Re: [BUG] cdev_put() race condition

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Boaz Harrosh
Date: Thursday, December 18, 2008 - 1:25 am

Hans Verkuil wrote:

OK I see. 



No, But at this point cdev_del has already been called before the final put,
so if a chrdev_open is called while in cdev_release it will not find my
device anymore. I have separated the unmapping of the device from it's final put.


I agree, that's why I like Tejun's patch because in theory we can get
rid of the shadow kref. (Without a layering violation)


OK I see, I do use udev in all my fedora images. I will try to disable it
and test. So far I was unable to reproduce the problem with my device.


Thanks
Boaz
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG] cdev_put() race condition, Hans Verkuil, (Mon Dec 8, 1:56 pm)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Tue Dec 16, 3:06 am)
Re: [BUG] cdev_put() race condition, Greg KH, (Tue Dec 16, 1:22 pm)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Tue Dec 16, 2:00 pm)
Re: [BUG] cdev_put() race condition, Greg KH, (Tue Dec 16, 2:21 pm)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Tue Dec 16, 4:23 pm)
Re: [BUG] cdev_put() race condition, Greg KH, (Tue Dec 16, 4:30 pm)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Wed Dec 17, 6:37 am)
Re: [BUG] cdev_put() race condition, Boaz Harrosh, (Wed Dec 17, 7:52 am)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Wed Dec 17, 8:07 am)
Re: [BUG] cdev_put() race condition, Boaz Harrosh, (Wed Dec 17, 9:09 am)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Wed Dec 17, 10:33 am)
Re: [BUG] cdev_put() race condition, Al Viro, (Wed Dec 17, 11:08 am)
Re: [BUG] cdev_put() race condition, Greg KH, (Wed Dec 17, 11:16 am)
Re: [BUG] cdev_put() race condition, Laurent Pinchart, (Wed Dec 17, 12:27 pm)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Wed Dec 17, 12:30 pm)
Re: [BUG] cdev_put() race condition, Greg KH, (Wed Dec 17, 12:35 pm)
Re: [BUG] cdev_put() race condition, Greg KH, (Wed Dec 17, 12:38 pm)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Wed Dec 17, 12:39 pm)
Re: [BUG] cdev_put() race condition, Greg KH, (Wed Dec 17, 12:53 pm)
Re: [BUG] cdev_put() race condition, Hans Verkuil, (Wed Dec 17, 1:18 pm)
Re: [BUG] cdev_put() race condition, Greg KH, (Wed Dec 17, 1:52 pm)
Re: [BUG] cdev_put() race condition, Boaz Harrosh, (Thu Dec 18, 1:12 am)
Re: [BUG] cdev_put() race condition, Boaz Harrosh, (Thu Dec 18, 1:25 am)