From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 606D413AA3F; Wed, 5 Jun 2024 18:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717613933; cv=none; b=mdRJPICjVI8NZ7sPVnHx6suMUCvCQPLOK7Pok9Fn8Pjuwr7Qjyc/Bx8IeHnzO/F9xsOLARgZvHXj2QWss/t0x+9tcqFExMGlewWvlFERbAAloWhDcgYMkhuAewiUhqdVnYzUDvylOB2XuFcCfyDJ4YJaGAKoLT3eLzFXlzi42ac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717613933; c=relaxed/simple; bh=w1G9Oy3BR84r7WDCDEjU/smytorKBoYjKrur2nAtEeY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ACO5C5Pq2W9WIBpE/JDvcJ/dMWI2KVByHQODmXtPnES/oWkKOy2nvnvYk0bhquwiSfOdV+eKR5KpF1G7Q4e4dLtcYeq03JGPEx9kHLv56mYYu6ea5dRDo8I+jEokTDMsbTRxMY4bOTDurP0q/gycIw8V+PBu0x/15sTk0/6W2gY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R0vWrlMl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R0vWrlMl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F6EEC32781; Wed, 5 Jun 2024 18:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717613933; bh=w1G9Oy3BR84r7WDCDEjU/smytorKBoYjKrur2nAtEeY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R0vWrlMlRj4c1iScujbH5fsyGqtYPyP+/J0VJNX4ix9iLi62oUIDLwnohofDukOsm EySt6P4ujd48YhL2UYG1uzc4Egw4XJ/Gat/kQnIYtrwMj9VK1pQ1iwtCgWoqx7nPkB PZVgPcg9IRc5rTwGSokHOze9XEZcuLIKMIAf0rgODSqbuA22uVD3u5Z4IxtPfj4Ued /0TKGZ9XHvVYRSiARf9kxsXjAkMwZwEq3dyoFhMlWj7SezQ8aufULPgYgxYi73afkn 9B1uaZjQad5b6KKyX/eyu7v+PaN4v3hEoBatvmlumA64STa6ptiYuyzGjNBCGL60GP SdVOEIoS6KjwQ== Date: Wed, 5 Jun 2024 19:58:48 +0100 From: Simon Horman To: Aleksandr Mishin Cc: M Chetan Kumar , Loic Poulain , Sergey Ryazanov , Johannes Berg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH net] net: wwan: iosm: Fix tainted pointer delete is case of region creation fail Message-ID: <20240605185848.GV791188@kernel.org> References: <20240604082500.20769-1-amishin@t-argos.ru> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240604082500.20769-1-amishin@t-argos.ru> 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 Reviewed-by: Simon Horman