Re: [PATCH] drm/atomic-helpers: Make nonblocking more resilient

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 28.02.2017 11:11, Daniel Vetter wrote:
> We've switched to refcounting for the event completion, which means
> there's no risk for use-after free anymore after:
>
> commit 24835e442f289813aa568d142a755672a740503c
> Author: Daniel Vetter <daniel.vetter@xxxxxxxx>
> Date:   Wed Dec 21 11:23:30 2016 +0100
>
>     drm: reference count event->completion
>
> This should make the commit machinery a bit more resilient against
> drivers bugs. It won't fix any driver bugs of course.
>
> References: https://bugs.freedesktop.org/show_bug.cgi?id=96781
> Signed-off-by: Daniel Vetter <daniel.vetter@xxxxxxxxx>

Regarding problems described on the bug tracker - it could be a blind
guess, but you can check if events are not canceled meanwhile, if for
some reason event responsible for page-flip is canceled completion is
not called.

Regards
Andrzej

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux