Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp460600lqh; Thu, 28 Mar 2024 07:11:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaaLLuLxQrV+ajZ/aOeIzWZuZMpr7bzd3uODhc5ldSM/4KP/y2dqub2+tUpQf8+5XepH2JfPC94xF7kwkfY58wdrtLlajPU/VbsxjcYA== X-Google-Smtp-Source: AGHT+IFdwAtAj94kMNh5xmHQQX5LOMDgHB1OinPue5gQd3Ft1TRD6KejnS8H6f3hEv6VwFkoe2T5 X-Received: by 2002:a17:906:6d51:b0:a47:acc:6ebb with SMTP id a17-20020a1709066d5100b00a470acc6ebbmr2085780ejt.32.1711635063976; Thu, 28 Mar 2024 07:11:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711635063; cv=pass; d=google.com; s=arc-20160816; b=ELWhY1yM/6MZeX8Xoxl6Q4dpMZYD5aT0zvbF6KilamT9DUoMunfspSLvz9DWEzzVaP D2L6XiWACzuOspzkjv7jTsKkctROQgQEDIUVDiQdVWvhdoYX/DA7c3nZ5KvZ9YQY4xEf js+6kumjD4ApVoxnYBe0ZgDMX2srOBUJJ+9ZDJ8vNpDe9USzQCR3TLVEVGfzycpNTzkB LcBWe7qisMxBfOz6uFkEGyO9vIFKtGyzXUBKAMAiKBhlmNFf6mgoP/RYW37GZ1vBlXzy J79qU5CJbdENqkGoUNMFtL1jefbw+re/+6Q/cnK3/Ej8p0SU6ozPBoUsGQHvQzBiNGnR 4skA== 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:date:message-id:subject :references:in-reply-to:cc:to:from:dkim-signature; bh=IQSUib3KXAUDkQRCvjryGl5h1bPOi5vkGbiCC60GYZQ=; fh=Is9FGDoQwYnRoD1P3NM4XxWDQRA2dbgmBXv7wmcSwa8=; b=q+11ZBgfx75YLpQLnm8tRovH4f2abHxplqSLYM355hQdS1s5V1z4JLwi1ohMUQAPEd XGKm9KMV14eJeDRCL7AvdjFO/eYllQX2M1Wn9zdXR3+1RDtq2zPVFkR6AzbD3cwhwHgg ldkPvoXDt7LI9s42nr838L8JU6JLW+wWFCGqRq01xGQKDeYcE5vvv0QjkG70TAYSVEGr GMNIZQgpvHXKDlMt2h2beSm6AqaGDOrOM0k9FlLLVc8gEVm9rzwkll6KxMPZR014QmCW /OuG5gX8vwSaFmTjyATYc03plFeu0xEJt008q51N+19NctBaM/GV+LsCZ6zAZTVtZKaP fzfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rRpN4Xry; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123037-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 g14-20020a170906538e00b00a4732e58b42si773859ejo.424.2024.03.28.07.11.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 07:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-123037-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=rRpN4Xry; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-123037-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-123037-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 B076A1F26D24 for ; Thu, 28 Mar 2024 14:11:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 43C2912DD90; Thu, 28 Mar 2024 14:10:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rRpN4Xry" 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 6A457199BC for ; Thu, 28 Mar 2024 14:10:13 +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=1711635013; cv=none; b=gNzFIphI4fiWdwkC+amG8qaRaVzdNJCel8ETbhN/vkwWEctqdXn9dLCB6eDczRgnnX2Apq/nWPRDts2gUmeaRWBkJrCU87q5OnFe/B8a3ToFtOnAdMw9f8p8+2IASWuDYbVcKrjzohX5bsULetj7crUZZey5TPV9tELd+rG/5vY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711635013; c=relaxed/simple; bh=GV6iHbk8G+1IAC8aqbD0IvBMdnIYfcUoFdz3NEJc4Io=; h=From:To:Cc:In-Reply-To:References:Subject:Message-Id:Date: MIME-Version:Content-Type; b=h4HAcYMXnE48FAYsYk2MJq7pgDrZmYe7SvuXLyUsGoWFkUESUGgVYts219U4CYN5kAUnCQ0VEqq+0eiuKuuIcxgCx3KDiznoYlGWWK2N8+LwtvKcaCPaWgGxZ6PuG9B2PbXAdTAOpBroDSMZcEu9usBitaOdPLTrg0YhboPHo0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rRpN4Xry; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E19AC433A6; Thu, 28 Mar 2024 14:10:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711635013; bh=GV6iHbk8G+1IAC8aqbD0IvBMdnIYfcUoFdz3NEJc4Io=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=rRpN4XrymAcc9PwagT8541WrrwmSGVmZwBoUH9JmmytEbJ0ptBIi9WO8kKrEUNcpN K6tGDww3o3Msf7Up8RM22Uoap6WCNcoEMRvlRux4f6XrnPAZU4ExETr72m5hNZDVyT Twm8nBDfsi7vXRAPOEM23WElSgxMTnj04RmVuGQo35LQUnmTVhoCxAixbaJKBzyyES +MO6TloDH0knu7ASCQELRMTTSSooup3B8webyboy2nEIngKm8hF8e/zOIYhrnZ6CLp CYqIetDta+t9SRNIXBXbrsfxFeZOxAn7lcXDEfEUsaLKsMvxohSmMojLf2Zx0oPsDb fA2Ca3LC9QMjQ== From: Mark Brown To: Richard Fitzgerald Cc: linux-kernel@vger.kernel.org, patches@opensource.cirrus.com In-Reply-To: <20240327114406.976986-1-rf@opensource.cirrus.com> References: <20240327114406.976986-1-rf@opensource.cirrus.com> Subject: Re: [PATCH] regmap: maple: Fix cache corruption in regcache_maple_drop() Message-Id: <171163501205.33337.6238909725521756529.b4-ty@kernel.org> Date: Thu, 28 Mar 2024 14:10:12 +0000 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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.14-dev On Wed, 27 Mar 2024 11:44:06 +0000, Richard Fitzgerald wrote: > When keeping the upper end of a cache block entry, the entry[] array > must be indexed by the offset from the base register of the block, > i.e. max - mas.index. > > The code was indexing entry[] by only the register address, leading > to an out-of-bounds access that copied some part of the kernel > memory over the cache contents. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: maple: Fix cache corruption in regcache_maple_drop() commit: 00bb549d7d63a21532e76e4a334d7807a54d9f31 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark