Re: [PATCH v4 1/3] venus: core: handle race condititon for core ops

2020-09-20 Thread Stanimir Varbanov
On 9/16/20 11:49 AM, Mansur Alisha Shaik wrote: > For core ops we are having only write protect but there > is no read protect, because of this in multthreading > and concurrency, one CPU core is reading without wait > which is causing the NULL pointer dereferece crash. > > one such scenario

[PATCH v4 1/3] venus: core: handle race condititon for core ops

2020-09-16 Thread Mansur Alisha Shaik
For core ops we are having only write protect but there is no read protect, because of this in multthreading and concurrency, one CPU core is reading without wait which is causing the NULL pointer dereferece crash. one such scenario is as show below, where in one CPU core, core->ops becoming NULL