Re: [PATCH net-next] devlink: Use after free in devlink_health_reporter_destroy()

2019-01-23 Thread Eran Ben Elisha
On 1/23/2019 11:44 AM, Dan Carpenter wrote: > This calls kfree(reporter); before dereferencing reporter on the next > line when it does mutex_unlock(&reporter->devlink->lock); > > Fixes: 880ee82f0313 ("devlink: Add health reporter create/destroy > functionality") > Signed-off-by: Dan Carpenter

[PATCH net-next] devlink: Use after free in devlink_health_reporter_destroy()

2019-01-23 Thread Dan Carpenter
This calls kfree(reporter); before dereferencing reporter on the next line when it does mutex_unlock(&reporter->devlink->lock); Fixes: 880ee82f0313 ("devlink: Add health reporter create/destroy functionality") Signed-off-by: Dan Carpenter --- net/core/devlink.c | 6 -- 1 file changed, 4 ins