Re: [PATCH v2 1/1] v4l: event: Prevent freeing event subscriptions while accessed

2018-09-14 Thread Hans Verkuil
On 09/13/18 00:24, Sakari Ailus wrote: > The event subscriptions are added to the subscribed event list while > holding a spinlock, but that lock is subsequently released while still > accessing the subscription object. This makes it possible to unsubscribe > the event --- and freeing the

[PATCH v2 1/1] v4l: event: Prevent freeing event subscriptions while accessed

2018-09-12 Thread Sakari Ailus
The event subscriptions are added to the subscribed event list while holding a spinlock, but that lock is subsequently released while still accessing the subscription object. This makes it possible to unsubscribe the event --- and freeing the subscription object's memory --- while the subscription