* Re: [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers
[not found] ` <1375819848-2658-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
@ 2014-05-23 13:54 ` Hans Verkuil
2014-05-26 22:38 ` Laurent Pinchart
2014-06-25 16:58 ` Sasha Levin
0 siblings, 2 replies; 6+ messages in thread
From: Hans Verkuil @ 2014-05-23 13:54 UTC (permalink / raw)
To: Laurent Pinchart, linux-media
Cc: Sakari Ailus, Katsuya MATSUBARA, Sylwester Nawrocki, linux-sh,
Sasha Levin, LKML, Dave Jones
Hi Laurent,
This patch caused a circular locking dependency as reported by Sasha Levin:
https://lkml.org/lkml/2014/5/5/366
The reason is that copy_to/from_user is called in video_usercopy() with the
core lock held. The copy functions can fault which takes the mmap_sem. If it
was just video_usercopy() then it would be fairly easy to solve this, but
the copy_to_/from_user functions are also called from read and write and they
can be used in other unexpected places.
I'm not sure if vb2_fop_get_unmapped_area() is a problem. I suspect (but I'm
not sure) that when that one is called the mmap_sem isn't taken, in which
case taking the lock is fine.
But taking the lock in vb2_fop_mmap() does cause lockdep problems.
Ideally I would like to drop taking that lock in vb2_fop_mmap and resolve the
race condition that it intended to fix in a different way.
Regards,
Hans
On 08/06/2013 10:10 PM, Laurent Pinchart wrote:
> The vb2_fop_mmap() and vb2_fop_get_unmapped_area() functions are plug-in
> implementation of the mmap() and get_unmapped_area() file operations
> that calls vb2_mmap() and vb2_get_unmapped_area() on the queue
> associated with the video device. Neither the
> vb2_fop_mmap/vb2_fop_get_unmapped_area nor the
> v4l2_mmap/vb2_get_unmapped_area functions in the V4L2 core take any
> lock, leading to race conditions between mmap/get_unmapped_area and
> other buffer-related ioctls such as VIDIOC_REQBUFS.
>
> Fix it by taking the queue or device lock around the vb2_mmap() and
> vb2_get_unmapped_area() calls.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> drivers/media/v4l2-core/videobuf2-core.c | 18 ++++++++++++++++--
> 1 file changed, 16 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c
> index 9fc4bab..c9b50c7 100644
> --- a/drivers/media/v4l2-core/videobuf2-core.c
> +++ b/drivers/media/v4l2-core/videobuf2-core.c
> @@ -2578,8 +2578,15 @@ EXPORT_SYMBOL_GPL(vb2_ioctl_expbuf);
> int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma)
> {
> struct video_device *vdev = video_devdata(file);
> + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev->lock;
> + int err;
>
> - return vb2_mmap(vdev->queue, vma);
> + if (lock && mutex_lock_interruptible(lock))
> + return -ERESTARTSYS;
> + err = vb2_mmap(vdev->queue, vma);
> + if (lock)
> + mutex_unlock(lock);
> + return err;
> }
> EXPORT_SYMBOL_GPL(vb2_fop_mmap);
>
> @@ -2685,8 +2692,15 @@ unsigned long vb2_fop_get_unmapped_area(struct file *file, unsigned long addr,
> unsigned long len, unsigned long pgoff, unsigned long flags)
> {
> struct video_device *vdev = video_devdata(file);
> + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev->lock;
> + int ret;
>
> - return vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
> + if (lock && mutex_lock_interruptible(lock))
> + return -ERESTARTSYS;
> + ret = vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
> + if (lock)
> + mutex_unlock(lock);
> + return ret;
> }
> EXPORT_SYMBOL_GPL(vb2_fop_get_unmapped_area);
> #endif
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers
2014-05-23 13:54 ` [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers Hans Verkuil
@ 2014-05-26 22:38 ` Laurent Pinchart
2014-06-25 16:58 ` Sasha Levin
1 sibling, 0 replies; 6+ messages in thread
From: Laurent Pinchart @ 2014-05-26 22:38 UTC (permalink / raw)
To: Hans Verkuil
Cc: Laurent Pinchart, linux-media, Sakari Ailus, Katsuya MATSUBARA,
Sylwester Nawrocki, linux-sh, Sasha Levin, LKML, Dave Jones
Hi Hans,
On Friday 23 May 2014 15:54:29 Hans Verkuil wrote:
> Hi Laurent,
>
> This patch caused a circular locking dependency as reported by Sasha Levin:
>
> https://lkml.org/lkml/2014/5/5/366
>
> The reason is that copy_to/from_user is called in video_usercopy() with the
> core lock held. The copy functions can fault which takes the mmap_sem. If it
> was just video_usercopy() then it would be fairly easy to solve this, but
> the copy_to_/from_user functions are also called from read and write and
> they can be used in other unexpected places.
>
> I'm not sure if vb2_fop_get_unmapped_area() is a problem. I suspect (but I'm
> not sure) that when that one is called the mmap_sem isn't taken, in which
> case taking the lock is fine.
>
> But taking the lock in vb2_fop_mmap() does cause lockdep problems.
>
> Ideally I would like to drop taking that lock in vb2_fop_mmap and resolve
> the race condition that it intended to fix in a different way.
I'm of course fine with a different way to solve the race condition, if we can
find a good one. Do you already know how you would like to solve this ?
> On 08/06/2013 10:10 PM, Laurent Pinchart wrote:
> > The vb2_fop_mmap() and vb2_fop_get_unmapped_area() functions are plug-in
> > implementation of the mmap() and get_unmapped_area() file operations
> > that calls vb2_mmap() and vb2_get_unmapped_area() on the queue
> > associated with the video device. Neither the
> > vb2_fop_mmap/vb2_fop_get_unmapped_area nor the
> > v4l2_mmap/vb2_get_unmapped_area functions in the V4L2 core take any
> > lock, leading to race conditions between mmap/get_unmapped_area and
> > other buffer-related ioctls such as VIDIOC_REQBUFS.
> >
> > Fix it by taking the queue or device lock around the vb2_mmap() and
> > vb2_get_unmapped_area() calls.
> >
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas@ideasonboard.com>
> > ---
> >
> > drivers/media/v4l2-core/videobuf2-core.c | 18 ++++++++++++++++--
> > 1 file changed, 16 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/media/v4l2-core/videobuf2-core.c
> > b/drivers/media/v4l2-core/videobuf2-core.c index 9fc4bab..c9b50c7 100644
> > --- a/drivers/media/v4l2-core/videobuf2-core.c
> > +++ b/drivers/media/v4l2-core/videobuf2-core.c
> > @@ -2578,8 +2578,15 @@ EXPORT_SYMBOL_GPL(vb2_ioctl_expbuf);
> >
> > int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma)
> > {
> >
> > struct video_device *vdev = video_devdata(file);
> >
> > + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev-
>lock;
> > + int err;
> >
> > - return vb2_mmap(vdev->queue, vma);
> > + if (lock && mutex_lock_interruptible(lock))
> > + return -ERESTARTSYS;
> > + err = vb2_mmap(vdev->queue, vma);
> > + if (lock)
> > + mutex_unlock(lock);
> > + return err;
> >
> > }
> > EXPORT_SYMBOL_GPL(vb2_fop_mmap);
> >
> > @@ -2685,8 +2692,15 @@ unsigned long vb2_fop_get_unmapped_area(struct file
> > *file, unsigned long addr,>
> > unsigned long len, unsigned long pgoff, unsigned long flags)
> >
> > {
> >
> > struct video_device *vdev = video_devdata(file);
> >
> > + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev-
>lock;
> > + int ret;
> >
> > - return vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
> > + if (lock && mutex_lock_interruptible(lock))
> > + return -ERESTARTSYS;
> > + ret = vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
> > + if (lock)
> > + mutex_unlock(lock);
> > + return ret;
> >
> > }
> > EXPORT_SYMBOL_GPL(vb2_fop_get_unmapped_area);
> > #endif
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers
2014-05-23 13:54 ` [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers Hans Verkuil
2014-05-26 22:38 ` Laurent Pinchart
@ 2014-06-25 16:58 ` Sasha Levin
2014-07-01 21:08 ` Laurent Pinchart
1 sibling, 1 reply; 6+ messages in thread
From: Sasha Levin @ 2014-06-25 16:58 UTC (permalink / raw)
To: Hans Verkuil, Laurent Pinchart, linux-media
Cc: Sakari Ailus, Katsuya MATSUBARA, Sylwester Nawrocki, linux-sh,
LKML, Dave Jones
Ping?
On 05/23/2014 09:54 AM, Hans Verkuil wrote:
> Hi Laurent,
>
> This patch caused a circular locking dependency as reported by Sasha Levin:
>
> https://lkml.org/lkml/2014/5/5/366
>
> The reason is that copy_to/from_user is called in video_usercopy() with the
> core lock held. The copy functions can fault which takes the mmap_sem. If it
> was just video_usercopy() then it would be fairly easy to solve this, but
> the copy_to_/from_user functions are also called from read and write and they
> can be used in other unexpected places.
>
> I'm not sure if vb2_fop_get_unmapped_area() is a problem. I suspect (but I'm
> not sure) that when that one is called the mmap_sem isn't taken, in which
> case taking the lock is fine.
>
> But taking the lock in vb2_fop_mmap() does cause lockdep problems.
>
> Ideally I would like to drop taking that lock in vb2_fop_mmap and resolve the
> race condition that it intended to fix in a different way.
>
> Regards,
>
> Hans
>
> On 08/06/2013 10:10 PM, Laurent Pinchart wrote:
>> The vb2_fop_mmap() and vb2_fop_get_unmapped_area() functions are plug-in
>> implementation of the mmap() and get_unmapped_area() file operations
>> that calls vb2_mmap() and vb2_get_unmapped_area() on the queue
>> associated with the video device. Neither the
>> vb2_fop_mmap/vb2_fop_get_unmapped_area nor the
>> v4l2_mmap/vb2_get_unmapped_area functions in the V4L2 core take any
>> lock, leading to race conditions between mmap/get_unmapped_area and
>> other buffer-related ioctls such as VIDIOC_REQBUFS.
>>
>> Fix it by taking the queue or device lock around the vb2_mmap() and
>> vb2_get_unmapped_area() calls.
>>
>> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
>> ---
>> drivers/media/v4l2-core/videobuf2-core.c | 18 ++++++++++++++++--
>> 1 file changed, 16 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c
>> index 9fc4bab..c9b50c7 100644
>> --- a/drivers/media/v4l2-core/videobuf2-core.c
>> +++ b/drivers/media/v4l2-core/videobuf2-core.c
>> @@ -2578,8 +2578,15 @@ EXPORT_SYMBOL_GPL(vb2_ioctl_expbuf);
>> int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma)
>> {
>> struct video_device *vdev = video_devdata(file);
>> + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev->lock;
>> + int err;
>>
>> - return vb2_mmap(vdev->queue, vma);
>> + if (lock && mutex_lock_interruptible(lock))
>> + return -ERESTARTSYS;
>> + err = vb2_mmap(vdev->queue, vma);
>> + if (lock)
>> + mutex_unlock(lock);
>> + return err;
>> }
>> EXPORT_SYMBOL_GPL(vb2_fop_mmap);
>>
>> @@ -2685,8 +2692,15 @@ unsigned long vb2_fop_get_unmapped_area(struct file *file, unsigned long addr,
>> unsigned long len, unsigned long pgoff, unsigned long flags)
>> {
>> struct video_device *vdev = video_devdata(file);
>> + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock : vdev->lock;
>> + int ret;
>>
>> - return vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
>> + if (lock && mutex_lock_interruptible(lock))
>> + return -ERESTARTSYS;
>> + ret = vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
>> + if (lock)
>> + mutex_unlock(lock);
>> + return ret;
>> }
>> EXPORT_SYMBOL_GPL(vb2_fop_get_unmapped_area);
>> #endif
>>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers
2014-06-25 16:58 ` Sasha Levin
@ 2014-07-01 21:08 ` Laurent Pinchart
2014-07-02 6:33 ` Hans Verkuil
0 siblings, 1 reply; 6+ messages in thread
From: Laurent Pinchart @ 2014-07-01 21:08 UTC (permalink / raw)
To: Sasha Levin
Cc: Hans Verkuil, Laurent Pinchart, linux-media, Sakari Ailus,
Katsuya MATSUBARA, Sylwester Nawrocki, linux-sh, LKML, Dave Jones
On Wednesday 25 June 2014 12:58:03 Sasha Levin wrote:
> Ping?
Hans, I've replied to your previous e-mail with
I'm of course fine with a different way to solve the race condition, if we can
find a good one. Do you already know how you would like to solve this ?
> On 05/23/2014 09:54 AM, Hans Verkuil wrote:
> > Hi Laurent,
> >
> > This patch caused a circular locking dependency as reported by Sasha
> > Levin:
> >
> > https://lkml.org/lkml/2014/5/5/366
> >
> > The reason is that copy_to/from_user is called in video_usercopy() with
> > the
> > core lock held. The copy functions can fault which takes the mmap_sem. If
> > it was just video_usercopy() then it would be fairly easy to solve this,
> > but the copy_to_/from_user functions are also called from read and write
> > and they can be used in other unexpected places.
> >
> > I'm not sure if vb2_fop_get_unmapped_area() is a problem. I suspect (but
> > I'm not sure) that when that one is called the mmap_sem isn't taken, in
> > which case taking the lock is fine.
> >
> > But taking the lock in vb2_fop_mmap() does cause lockdep problems.
> >
> > Ideally I would like to drop taking that lock in vb2_fop_mmap and resolve
> > the race condition that it intended to fix in a different way.
> >
> > Regards,
> >
> > Hans
> >
> > On 08/06/2013 10:10 PM, Laurent Pinchart wrote:
> >> The vb2_fop_mmap() and vb2_fop_get_unmapped_area() functions are plug-in
> >> implementation of the mmap() and get_unmapped_area() file operations
> >> that calls vb2_mmap() and vb2_get_unmapped_area() on the queue
> >> associated with the video device. Neither the
> >> vb2_fop_mmap/vb2_fop_get_unmapped_area nor the
> >> v4l2_mmap/vb2_get_unmapped_area functions in the V4L2 core take any
> >> lock, leading to race conditions between mmap/get_unmapped_area and
> >> other buffer-related ioctls such as VIDIOC_REQBUFS.
> >>
> >> Fix it by taking the queue or device lock around the vb2_mmap() and
> >> vb2_get_unmapped_area() calls.
> >>
> >> Signed-off-by: Laurent Pinchart
> >> <laurent.pinchart+renesas@ideasonboard.com>
> >> ---
> >>
> >> drivers/media/v4l2-core/videobuf2-core.c | 18 ++++++++++++++++--
> >> 1 file changed, 16 insertions(+), 2 deletions(-)
> >>
> >> diff --git a/drivers/media/v4l2-core/videobuf2-core.c
> >> b/drivers/media/v4l2-core/videobuf2-core.c index 9fc4bab..c9b50c7 100644
> >> --- a/drivers/media/v4l2-core/videobuf2-core.c
> >> +++ b/drivers/media/v4l2-core/videobuf2-core.c
> >> @@ -2578,8 +2578,15 @@ EXPORT_SYMBOL_GPL(vb2_ioctl_expbuf);
> >> int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma)
> >> {
> >> struct video_device *vdev = video_devdata(file);
> >> + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock :
> >> vdev->lock;
> >> + int err;
> >>
> >> - return vb2_mmap(vdev->queue, vma);
> >> + if (lock && mutex_lock_interruptible(lock))
> >> + return -ERESTARTSYS;
> >> + err = vb2_mmap(vdev->queue, vma);
> >> + if (lock)
> >> + mutex_unlock(lock);
> >> + return err;
> >> }
> >> EXPORT_SYMBOL_GPL(vb2_fop_mmap);
> >>
> >> @@ -2685,8 +2692,15 @@ unsigned long vb2_fop_get_unmapped_area(struct
> >> file *file, unsigned long addr,>>
> >> unsigned long len, unsigned long pgoff, unsigned long flags)
> >> {
> >> struct video_device *vdev = video_devdata(file);
> >> + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock :
> >> vdev->lock;
> >> + int ret;
> >>
> >> - return vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
> >> + if (lock && mutex_lock_interruptible(lock))
> >> + return -ERESTARTSYS;
> >> + ret = vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
> >> + if (lock)
> >> + mutex_unlock(lock);
> >> + return ret;
> >>
> >> }
> >> EXPORT_SYMBOL_GPL(vb2_fop_get_unmapped_area);
> >> #endif
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers
2014-07-01 21:08 ` Laurent Pinchart
@ 2014-07-02 6:33 ` Hans Verkuil
2014-07-02 7:56 ` Laurent Pinchart
0 siblings, 1 reply; 6+ messages in thread
From: Hans Verkuil @ 2014-07-02 6:33 UTC (permalink / raw)
To: Laurent Pinchart, Sasha Levin
Cc: Laurent Pinchart, linux-media, Sakari Ailus, Katsuya MATSUBARA,
Sylwester Nawrocki, linux-sh, LKML, Dave Jones
For now it is -ENOTIME for me. It's on my TODO list, but there are a number of
other things I want to finish first.
Regards,
Hans
On 07/01/2014 11:08 PM, Laurent Pinchart wrote:
> On Wednesday 25 June 2014 12:58:03 Sasha Levin wrote:
>> Ping?
>
> Hans, I've replied to your previous e-mail with
>
> I'm of course fine with a different way to solve the race condition, if we can
> find a good one. Do you already know how you would like to solve this ?
>
>> On 05/23/2014 09:54 AM, Hans Verkuil wrote:
>>> Hi Laurent,
>>>
>>> This patch caused a circular locking dependency as reported by Sasha
>>> Levin:
>>>
>>> https://lkml.org/lkml/2014/5/5/366
>>>
>>> The reason is that copy_to/from_user is called in video_usercopy() with
>>> the
>>> core lock held. The copy functions can fault which takes the mmap_sem. If
>>> it was just video_usercopy() then it would be fairly easy to solve this,
>>> but the copy_to_/from_user functions are also called from read and write
>>> and they can be used in other unexpected places.
>>>
>>> I'm not sure if vb2_fop_get_unmapped_area() is a problem. I suspect (but
>>> I'm not sure) that when that one is called the mmap_sem isn't taken, in
>>> which case taking the lock is fine.
>>>
>>> But taking the lock in vb2_fop_mmap() does cause lockdep problems.
>>>
>>> Ideally I would like to drop taking that lock in vb2_fop_mmap and resolve
>>> the race condition that it intended to fix in a different way.
>>>
>>> Regards,
>>>
>>> Hans
>>>
>>> On 08/06/2013 10:10 PM, Laurent Pinchart wrote:
>>>> The vb2_fop_mmap() and vb2_fop_get_unmapped_area() functions are plug-in
>>>> implementation of the mmap() and get_unmapped_area() file operations
>>>> that calls vb2_mmap() and vb2_get_unmapped_area() on the queue
>>>> associated with the video device. Neither the
>>>> vb2_fop_mmap/vb2_fop_get_unmapped_area nor the
>>>> v4l2_mmap/vb2_get_unmapped_area functions in the V4L2 core take any
>>>> lock, leading to race conditions between mmap/get_unmapped_area and
>>>> other buffer-related ioctls such as VIDIOC_REQBUFS.
>>>>
>>>> Fix it by taking the queue or device lock around the vb2_mmap() and
>>>> vb2_get_unmapped_area() calls.
>>>>
>>>> Signed-off-by: Laurent Pinchart
>>>> <laurent.pinchart+renesas@ideasonboard.com>
>>>> ---
>>>>
>>>> drivers/media/v4l2-core/videobuf2-core.c | 18 ++++++++++++++++--
>>>> 1 file changed, 16 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/drivers/media/v4l2-core/videobuf2-core.c
>>>> b/drivers/media/v4l2-core/videobuf2-core.c index 9fc4bab..c9b50c7 100644
>>>> --- a/drivers/media/v4l2-core/videobuf2-core.c
>>>> +++ b/drivers/media/v4l2-core/videobuf2-core.c
>>>> @@ -2578,8 +2578,15 @@ EXPORT_SYMBOL_GPL(vb2_ioctl_expbuf);
>>>> int vb2_fop_mmap(struct file *file, struct vm_area_struct *vma)
>>>> {
>>>> struct video_device *vdev = video_devdata(file);
>>>> + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock :
>>>> vdev->lock;
>>>> + int err;
>>>>
>>>> - return vb2_mmap(vdev->queue, vma);
>>>> + if (lock && mutex_lock_interruptible(lock))
>>>> + return -ERESTARTSYS;
>>>> + err = vb2_mmap(vdev->queue, vma);
>>>> + if (lock)
>>>> + mutex_unlock(lock);
>>>> + return err;
>>>> }
>>>> EXPORT_SYMBOL_GPL(vb2_fop_mmap);
>>>>
>>>> @@ -2685,8 +2692,15 @@ unsigned long vb2_fop_get_unmapped_area(struct
>>>> file *file, unsigned long addr,>>
>>>> unsigned long len, unsigned long pgoff, unsigned long flags)
>>>> {
>>>> struct video_device *vdev = video_devdata(file);
>>>> + struct mutex *lock = vdev->queue->lock ? vdev->queue->lock :
>>>> vdev->lock;
>>>> + int ret;
>>>>
>>>> - return vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
>>>> + if (lock && mutex_lock_interruptible(lock))
>>>> + return -ERESTARTSYS;
>>>> + ret = vb2_get_unmapped_area(vdev->queue, addr, len, pgoff, flags);
>>>> + if (lock)
>>>> + mutex_unlock(lock);
>>>> + return ret;
>>>>
>>>> }
>>>> EXPORT_SYMBOL_GPL(vb2_fop_get_unmapped_area);
>>>> #endif
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers
2014-07-02 6:33 ` Hans Verkuil
@ 2014-07-02 7:56 ` Laurent Pinchart
0 siblings, 0 replies; 6+ messages in thread
From: Laurent Pinchart @ 2014-07-02 7:56 UTC (permalink / raw)
To: Hans Verkuil
Cc: Sasha Levin, Laurent Pinchart, linux-media, Sakari Ailus,
Katsuya MATSUBARA, Sylwester Nawrocki, linux-sh, LKML, Dave Jones
Hi Hans,
On Wednesday 02 July 2014 08:33:47 Hans Verkuil wrote:
> For now it is -ENOTIME for me. It's on my TODO list, but there are a number
> of other things I want to finish first.
No worries, I know how it feels. I just wanted to make sure you hadn't missed
my e-mail.
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-07-02 7:55 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201308061239.27188.hverkuil@xs4all.nl>
[not found] ` <1375819848-2658-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com>
2014-05-23 13:54 ` [PATCH v7] media: vb2: Take queue or device lock in mmap-related vb2 ioctl handlers Hans Verkuil
2014-05-26 22:38 ` Laurent Pinchart
2014-06-25 16:58 ` Sasha Levin
2014-07-01 21:08 ` Laurent Pinchart
2014-07-02 6:33 ` Hans Verkuil
2014-07-02 7:56 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox