[lvc-project] [PATCH net] net: wwan: iosm: Fix tainted pointer delete is case of region creation fail

Simon Horman horms at kernel.org
Wed Jun 5 21:58:48 MSK 2024


On Tue, Jun 04, 2024 at 11:25:00AM +0300, Aleksandr Mishin wrote:
> In case of region creation fail in ipc_devlink_create_region(), previously
> created regions delete process starts from tainted pointer which actually
> holds error code value.
> Fix this bug by decreasing region index before delete.
> 
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
> 
> Fixes: 4dcd183fbd67 ("net: wwan: iosm: devlink registration")
> Signed-off-by: Aleksandr Mishin <amishin at t-argos.ru>

Reviewed-by: Simon Horman <horms at kernel.org>




More information about the lvc-project mailing list