Re: Possible race condition on videobuf2?

2013-10-14 Thread Ricardo Ribalda Delgado
Hello Hans Thanks for your feedback. I have send a patch to the list with your suggestion. If I dont apply my patch, but your your branch I still get the error: Thanks! [ 57.567944] BUG: unable to handle kernel NULL pointer dereference at 0260 [ 57.567980] IP:

Re: Possible race condition on videobuf2?

2013-10-14 Thread Hans Verkuil
On 10/14/13 09:42, Ricardo Ribalda Delgado wrote: Hello Hans Thanks for your feedback. I have send a patch to the list with your suggestion. If I dont apply my patch, but your your branch I still get the error: Thanks for testing this. I suspected that might be the case. What exactly is

Re: Possible race condition on videobuf2?

2013-10-14 Thread Ricardo Ribalda Delgado
Hello Hans There is a java web server that broadcast the images. :S I can see that the server does open/read/close everytime it is asked for an image. The error was triggered once in a while. Now I can try to trigger the error faster by openning multiple client windows. I dont know how the

Re: Possible race condition on videobuf2?

2013-10-14 Thread Hans Verkuil
On 10/14/13 09:53, Ricardo Ribalda Delgado wrote: Hello Hans There is a java web server that broadcast the images. :S I can see that the server does open/read/close everytime it is asked for an image. The error was triggered once in a while. Now I can try to trigger the error faster by

Possible race condition on videobuf2?

2013-10-13 Thread Ricardo Ribalda Delgado
Hello These days I have been testing an app that uses the old read/write API. It is interfacing a videobuf2-sg driver. Once in a while I get an oops on the vb2_perform_fileio function. After digging a while I have been able to fix the bug like this: int vb2_fop_release(struct file *file) {

Re: Possible race condition on videobuf2?

2013-10-13 Thread Hans Verkuil
Hi Ricardo, On 10/13/2013 03:03 PM, Ricardo Ribalda Delgado wrote: Hello These days I have been testing an app that uses the old read/write API. It is interfacing a videobuf2-sg driver. Once in a while I get an oops on the vb2_perform_fileio function. After digging a while I have been