Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1087046lqe; Sun, 7 Apr 2024 19:11:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUlAQbro8DsDPqSPWoZcCfjdohfJGEero5/HKdO/kzvxVeKizN8D4Kz7T37LdfRuFl8uq1ZonIWrNBhyznIcc19xAI2rY+b4QM6O8pq+Q== X-Google-Smtp-Source: AGHT+IEDuiynatEcDqoQXs7NRJishS8cv4bTbAj7udERt5fhmRWS9P9lA1cViogPIPL8IVgQH/N3 X-Received: by 2002:a17:906:5959:b0:a51:c4e0:4a4c with SMTP id g25-20020a170906595900b00a51c4e04a4cmr1909749ejr.22.1712542304004; Sun, 07 Apr 2024 19:11:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712542303; cv=pass; d=google.com; s=arc-20160816; b=JBgRoic98WLh7SUlEcTlVZLNFqSr0yRyT75ywzhsF0CWDumOiNfFCL+MgooR2nz7Wr QqLtnFH3t02kS+xMP04dO2ZzYTpCLFE9ritZcL2Cip27q5OurNYQyoJMBS5Cf2KwT8C/ gHmTrZYl1AnoU79UDeebGlr8wpvYp8JSVm3lztEIOJA5jPVoTjtT3zmfIphVhv4jiZBe 0WqzBIjWmlsYb06s+7cwd5TRFZ7skVD+iUQul2pqTcXNPQM8und/J935BABkS3EoRaVj JJdJbbfZZlZ09j29pYtMY7lgYxbr7TL1Yjfov9bX4Xrp6MUMEv7ceVsAPUSmDxTZnXcx b/KA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ZX8HLyfFybtkPzTW0AEQYPylEJNKfvlRvn07sYyI7Pg=; fh=kJ1nFXv5efjh4jGkSFH6cokVRcRBZZ2x7vQmodtQ0DY=; b=JFOyWNiz8v0Y2Gcv4b4AFGo7qzJU7GEPaYFa2SJYaEhE9kVNeEIUmszIPmy50SDhht 6YDBNy753JCQmnTk3EcMk9nM95Cgbo9CCUkTmg7TL9dVyyHCbgZ5xsTrMxH8ZDukTWlH 57X989CHrDB4LhXQHfeesdB77vI1bpsegXCNgsKSkAfHEnad4JxrQNJObwCt8mLQYbzi GafltmSCi/3Tf+1S7WeKmPsxk5NUzwyUrTZsqM8aKRwfLfJO2EQ2I3WcLtA8KwIqzUNp eJ9ek0J/ZnbOiP09RIdI6lNRlVyU/Bf6Hq0OyMrt4LIY7gKGh6jh3pfb+EnGo5+5hAHF X2hQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fFe/BU2T"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ka3-20020a170907990300b00a51a6c09d37si2989016ejc.557.2024.04.07.19.11.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 19:11:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-134710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="fFe/BU2T"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-134710-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-134710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3B8981F21673 for ; Mon, 8 Apr 2024 02:11:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2214E1877; Mon, 8 Apr 2024 02:11:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fFe/BU2T" 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 44EBC10E9; Mon, 8 Apr 2024 02:11:29 +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=1712542290; cv=none; b=fqTM53tpVqDJ3GcOMUiNpTlb9FRhUZJD/0vZBXrpTm8axswXtHkFQZ8gUFzkzu+YzrkdNBer1MoVBTXg1EMmwwKzeTi4NNCI9QGPUjJOpGmlgZXooHoBRBqichlnD4KqV4WDFkrgFl4bvoLcSq1W6tZeV81UMyb0snoR8Bi42f4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712542290; c=relaxed/simple; bh=asmZwSNHBAKQz1t1okuL2m8ib3XSi5a7JrXiy00ga0w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ishcB8ZAVQjeROb1dkG/x8HDWiG4KWsCK831LWygN6EAI+0TQUeHFsXrwXuR95ewXYrJwmid5jOzakYFY6GPJGlw5Zv40DQgj405R4VSgrPsTs41HWhBmZa22IlQkNeGQiU0iGnjxe4YV99PDJl24gA+BPLf0ZdqJ3E+lLNfiMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fFe/BU2T; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98EECC433C7; Mon, 8 Apr 2024 02:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712542289; bh=asmZwSNHBAKQz1t1okuL2m8ib3XSi5a7JrXiy00ga0w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fFe/BU2Ty7omNJGVlH/TfAQWMY25SHTytH2WTXsuH0MhBfkq06CSuB8TvHu4uC4vO vZl3P4dOnuQzi/ae36s22IyQEIv4Y7JEm6P0ZM/KL7qgfhjq0eeQmQmOPwBitXUjIz ju3NSpw3kL3gCCgMCo2kSj16u8Ziu0MUWi9sINudLnbYTapKuI+exkfqmSiD6gp7x/ ahjHJ2fC/w/Sa5jeg3aN6mHo6+56plNNGExztMDjfpcEvciEHhSJ0C9HqI0HJHMM+N Baa8yTr7Lqh+7OdciPANq4oiRJI3MjSbYo9XW1f12IRouZrib5RFi6Hzk6iP8IwAIq cr6hhdU/0dEig== Date: Sun, 7 Apr 2024 22:11:29 -0400 From: Sasha Levin To: Sergey Shtylyov Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Karina Yankevich , Alan Stern , Greg Kroah-Hartman , linux-usb@vger.kernel.org, usb-storage@lists.one-eyed-alien.net Subject: Re: [PATCH AUTOSEL 6.8 02/28] usb: storage: sddr55: fix sloppy typing in sddr55_{read|write}_data() Message-ID: References: <20240403171656.335224-1-sashal@kernel.org> <20240403171656.335224-2-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: On Wed, Apr 03, 2024 at 09:10:10PM +0300, Sergey Shtylyov wrote: >On 4/3/24 8:16 PM, Sasha Levin wrote: > >> From: Karina Yankevich >> >> [ Upstream commit d6429a3555fb29f380c5841a12f5ac3f7444af03 ] >> >> In sddr55_{read|write}_data(), the address variables are needlessly typed >> as *unsigned long* -- which is 32-bit type on the 32-bit arches and 64-bit >> type on the 64-bit arches; those variables' value should fit into just 3 >> command bytes and consists of 10-bit block # (or at least the max block # >> seems to be 1023) and 4-/5-bit page # within a block, so 32-bit *unsigned* >> *int* type should be more than enough... >> >> Found by Linux Verification Center (linuxtesting.org) with the Svace static >> analysis tool. >> >> [Sergey: rewrote the patch subject/description] >> >> Signed-off-by: Karina Yankevich >> Signed-off-by: Sergey Shtylyov >> Reviewed-by: Alan Stern >> Link: https://lore.kernel.org/r/4c9485f2-0bfc-591b-bfe7-2059289b554e@omp.ru >> Signed-off-by: Greg Kroah-Hartman >> Signed-off-by: Sasha Levin > >[...] > > I doubt this is worth pulling into the stable kernels, it >does not fix any serious issue... Dropped, thanks! -- Thanks, Sasha