Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2714030lqp; Mon, 25 Mar 2024 07:21:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX3SvB4HZ6witsoyAiqKbhgpGofGrLW2ic5HbWgCYJlc4qM3LTCMZ33NMI12IeYHWopzk7s6HJVs86pLbm3NQT9XwVOoukTIHrfg9EZqA== X-Google-Smtp-Source: AGHT+IESC5JWWOLk0cOj0tU18UQazjxCMFGeHOK7wQE7lIDojhiq2MXCidQE9K/UPIJYO+HcIjDr X-Received: by 2002:a17:907:72cb:b0:a47:4a75:649 with SMTP id du11-20020a17090772cb00b00a474a750649mr4160974ejc.13.1711376485678; Mon, 25 Mar 2024 07:21:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711376485; cv=pass; d=google.com; s=arc-20160816; b=e5wXD+0jVBgOROQjfru0XIMwnh7gKVXsMOPVWqbLBrWRAvBLLL5RrWei4CFBedPlp/ 6xtQAHC5lKfd6XnOWDoytj/lbJsFnZOOcJdi/+9iOUsssarmdde93sNXdlRm+kZfWoc3 rCiibeBaK+diPzM9fsV+2UzkoH5Ur604+RbcodmGHMecvv57ISfmj3RVP1H7OzcwkZPx PxXi8SwyLfQ4pE0aKFfB2xVYQ+OtkryRs+CKVj1by7AUUnd8udmXb54ZvXUn/tWIlFSL gK6upOk6xxVXgwrGzwrAQ///CcM1EM+fAZoo1Xbh7J5B79zh+mwqex1csMpueuHNJjh1 q0CQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+fYpIswoyUf/77da/e8+AFgNqj1S3IPZlB14Z5/zv28=; fh=QN7T6wVxVqaf/KM3leLi0sUfyTUd4UkfCaQ8geWn8r8=; b=GhV3U51hFwheDYeNWdestoevjoIGABfTbZ4cklaWOjhFo+eF2HaMXRfy/VONRS6G2H zXe5trHHWK5G2kt6lXtNGF8jHtkulU5hSRUl35Cv5s3wTldKe1HRde5qP3mDJmZgMgyC soLd/GxhtzIUWEf8tIANJnsD4e6Og0bKQ0K6z1mD0DlYVZCXpp1vL4t7zPGrScpnZJs/ OgPkpL/sEXCLbQZl3+80BIzdpc9zSNrXhviDtpa5EDcYOOuviAK7hrKAMUUfjwAkP/b4 NzGAzE5bxUQI3ByxcfQuUSlqO7Y7/Uls9mWHGIc5VQ++H+ldJI3ZOYVgjo30cS7pSEtp yfFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KB7EBpxK; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-116814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gf25-20020a170906e21900b00a46caa13e68si2503626ejb.327.2024.03.25.07.21.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 07:21:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=KB7EBpxK; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-116814-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116814-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 176C81F3E78E for ; Mon, 25 Mar 2024 14:21:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47E7A13440E; Mon, 25 Mar 2024 10:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="KB7EBpxK" Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) (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 8E1A012FB3D for ; Mon, 25 Mar 2024 10:18:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.199 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711361934; cv=none; b=TAMy/mFDoFSB7i9jyrSnP6ssUa8bPitOKO0UMR6Hm/ZrWiEZLH3YNoUA98ft9IxXpTGDJZdiZDR3jKF8JaEx/3cRoSCR3dwHvBKWiSrKP6gATAW/tGjOFs9hz5/ae90rHmdK6/XlvkcE6SlboM/YhALiAar/SRaDGwyw657uR4w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711361934; c=relaxed/simple; bh=GVHQhp9rhkLHtDl2HzRv9RdkmY4aiP1Z3zDs9NaQdAI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BSix4Ttb6b6aZi7TumEBOkfLs6s6iucwdzi8RsjecV1xA6XBB/J5Tn0itc4I1kQ1ev+VoLnSnx/J/go816iixjmJ+UDFBS96wgF8rimLj8k9tx8n8RwkxYmuZbQtsVp/K9LbLG1WIveVLVR4OVsAS/P0O07R94p4cHgXault/QM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=KB7EBpxK; arc=none smtp.client-ip=217.70.183.199 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 4291DFF80B; Mon, 25 Mar 2024 10:18:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1711361925; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+fYpIswoyUf/77da/e8+AFgNqj1S3IPZlB14Z5/zv28=; b=KB7EBpxKVXlxzcEmFit9EC+eJ5OE/bihBkdkNq2JDR0EAJVSUxHL8GfrpQFud5eml2i1hz P5D2K8GcVCi4EZGqr80eEzQYzti5+bghIa7WImvVgygqTTsqoj6ROWAidrHsH8tospjjl/ ZZ2A7IK5Sez6SE/R2Pde6umhnmIL6zGbxhna5SZWSr2HLL9FubKscdFw4SfZv0wPl5qTuy XhGpY4gi2iG0G/ZKvVs6UyP39R2FDUHMbL5xW+yLOSFB2TdKDfSX+/AMUEMVvPQog0IRSc OzPP/e8Oko9t9RfGi5KcsblxwKx1F/ovRUOL0uAseQGf6BzMcv1rNgwFiSwQ4Q== From: Miquel Raynal To: Denis Arefev , Miquel Raynal Cc: Richard Weinberger , Vignesh Raghavendra , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org, trufanov@swemel.ru, vfh@swemel.ru Subject: Re: [PATCH] mtd: partitions: redboot: Added conversion of operands to a larger type Date: Mon, 25 Mar 2024 11:18:42 +0100 Message-Id: <20240325101842.262419-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240315093758.20790-1-arefev@swemel.ru> References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'1162bc2f8f5de7da23d18aa4b7fbd4e93c369c50' Content-Transfer-Encoding: 8bit X-GND-Sasl: miquel.raynal@bootlin.com On Fri, 2024-03-15 at 09:37:58 UTC, Denis Arefev wrote: > The value of an arithmetic expression directory * master->erasesize is > subject to overflow due to a failure to cast operands to a larger data > type before perfroming arithmetic > > Found by Linux Verification Center (linuxtesting.org) with SVACE. > > Signed-off-by: Denis Arefev Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks. Miquel