From: Ido Schimmel <[email protected]>
Date: Mon, 13 Jul 2020 18:20:14 +0300

> From: Ido Schimmel <[email protected]>
> 
> Dereferencing the reporter after it was destroyed in order to unlock the
> reporters lock results in a use-after-free [1].
> 
> Fix this by storing a pointer to the lock in a local variable before
> destroying the reporter.
> 
> [1]
 ...
> Fixes: 3c5584bf0a04 ("devlink: Rework devlink health reporter destructor")
> Fixes: 15c724b997a8 ("devlink: Add devlink health port reporters API")
> Signed-off-by: Ido Schimmel <[email protected]>
> Reviewed-by: Moshe Shemesh <[email protected]>
> Reviewed-by: Jiri Pirko <[email protected]>

Applied to net-next, thanks.

Reply via email to