Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2920373lqz; Wed, 3 Apr 2024 12:21:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX/vFqd91XIotk70ZzwWWaeT/fhDIIQH7QgmUgBmyq1fERk1TaNdLi39bayPe1r8b6I6uWOYj8jaB0xY6CI3Xiw6lvf4/aN4pspUXHCeg== X-Google-Smtp-Source: AGHT+IF8oTJoWdiatpl2osMnRvch2cJbxgUSZQ9mUX/Z2G1XCCOSj6RN2bYCCfBg3+6/tHHQLcTz X-Received: by 2002:a05:6a21:3290:b0:1a7:17f:8a9e with SMTP id yt16-20020a056a21329000b001a7017f8a9emr645086pzb.9.1712172075969; Wed, 03 Apr 2024 12:21:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712172075; cv=pass; d=google.com; s=arc-20160816; b=mGofWfXU4nzQTYGoHWsX1G5OeJyfRg9jB4UNhew+k5vw+lu/5AgVd9xZe4tfTggd59 NtEZ4MNEXdxeqHiR9EWIfX+wweK00NsiHjxLHSO+fy2fLyB5M7+p3UvK9LZutSn7x9B9 vNfBedmhpIbGPOoYP41ux5rELKxFrvzrPpwOZTs7joeHu2waH6RhnTEmSYZzMFhKQLfS 3XTdLyMhqsvpe7ihSToAXKwgb9o9dlyZ6gsJVaG47e3bokkc8GGKff2DDrO/kdGHVvR4 Wh9d32pp95kqkva62EtnT97KKEAJPIcE6YldDaBeGOvMx3HI+X1Y4/dlugbPxrO2B0p5 RQaQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=iJHE0og0yG5WSkDC2lVsO+URjoWzANJCtIgQuEGS8mc=; fh=wN0uZAz5u95dtOi8Azy2mt0q2VMot5NFyp/fAsL4YhQ=; b=DB9NsYs73Rxa+aEQiWOrc3ZBmumYPPdGrNZJR/YMPK95QChq6mQRccsOpP9JWh2gyi PV6jhCGw0s/hx41HTEGUMw/emvDCkMQa0hRH/F/Ywp9VtBBu3EOFi3US3tIx/pW9jHVc DPvVRcjmHnkIO8TOOKGGBBRMKxejge/BXJ/eRrnpCLOVOOBkpOMYWE0F1rffJbdJkAvG ZZ+eNx7i1umbf8FVjkPSXm0V+kwFF2h4XfeXgDNeYHsjJSJ/tPIv8LCeJAEcwxh82tU4 ezNAlMCA0vaKicaaQo9GNurU2ZTfMxnXNS2phaX6Q2+vXmW3b3LbHtOo1JeP7Bhkcy84 0W0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-130422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130422-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z18-20020a63e112000000b005c279da45f1si2689638pgh.566.2024.04.03.12.21.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 12:21:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=omp.ru); spf=pass (google.com: domain of linux-kernel+bounces-130422-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130422-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 28C4CB2F513 for ; Wed, 3 Apr 2024 18:10:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B07BA153BD5; Wed, 3 Apr 2024 18:10:26 +0000 (UTC) Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C57CF1534E6; Wed, 3 Apr 2024 18:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.154.21.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712167826; cv=none; b=jbE26ftL9CC4M0QPifkvzUy0WsxOeV4OKG3ynEG8LKFh99sMdB30ZQVRqMdy5l4psg0DCexNXp+ltBJ/EbEzGUqetuSbevCoUIfQFUSL7zG4d62pVQ3AV9Mwm9Dk2iXo9+0IDO4bXtIMdi5qj5NRrnbjtW6ke1JZYENb+9/oF0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712167826; c=relaxed/simple; bh=qfxMNQ3oAv6Ey3qWHOduRuntmEUDmzlDBJDhK71hVjg=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=EjhML/5fx6gkjEGM2/4x3Ec5vzKGk8nC5ndLnkhD40bMyXtvYvRWSvuEuq4kOPHBj2RaDQzPghYOeqcqauw8R6pCKnLrJuevTzBbW6fDwMcROKYVj5LHo08PC/UDewCOuiXhl4WJz5AtmwmDogfVL4bxY5renbTYS4CqEuqN1rs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru; spf=pass smtp.mailfrom=omp.ru; arc=none smtp.client-ip=90.154.21.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=omp.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=omp.ru Received: from [192.168.1.105] (178.176.79.246) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.1258.12; Wed, 3 Apr 2024 21:10:10 +0300 Subject: Re: [PATCH AUTOSEL 6.8 02/28] usb: storage: sddr55: fix sloppy typing in sddr55_{read|write}_data() To: Sasha Levin , , CC: Karina Yankevich , Alan Stern , Greg Kroah-Hartman , , References: <20240403171656.335224-1-sashal@kernel.org> <20240403171656.335224-2-sashal@kernel.org> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Wed, 3 Apr 2024 21:10:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240403171656.335224-2-sashal@kernel.org> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 6.1.0, Database issued on: 04/03/2024 17:51:55 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 184562 [Apr 03 2024] X-KSE-AntiSpam-Info: Version: 6.1.0.4 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 14 0.3.14 5a0c43d8a1c3c0e5b0916cc02a90d4b950c01f96 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_uf_ne_domains} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: lore.kernel.org:7.1.1;omp.ru:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: ApMailHostAddress: 178.176.79.246 X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 04/03/2024 17:56:00 X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 4/3/2024 3:47:00 PM X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit 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... MBR, Sergey