Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7146025rwp; Tue, 18 Jul 2023 10:41:01 -0700 (PDT) X-Google-Smtp-Source: APBJJlGOqu3d2z02+ZJTxT+fWjvWtACC18hrvsF9qj/9MXV0fW99mxTzR/R9Yfk1Sb61/x/FITux X-Received: by 2002:a05:6a20:4409:b0:134:76d5:d3fd with SMTP id ce9-20020a056a20440900b0013476d5d3fdmr110773pzb.0.1689702033076; Tue, 18 Jul 2023 10:40:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689702033; cv=none; d=google.com; s=arc-20160816; b=bDkWaUJKUPD2PC25Ryua9EoCHosDVFNCwfnMCpQ8pqdvPRX4RXexBjfhdv6CIFbJ/w JbeLJODTi1GMxsdrnFXcYaNHqRkwS3rbwsQLvLS+jbFxjoK74nn3Jt9aoq1mVqldZ/8W jO/9A71AGl1A8G+LtZj9CphHy4LD2yjynsd0se5fXB4CHtX+RzpIS2XV8UNax3zlbYrg 0e3yoi1SRtygRFlRQ6K/PizA88uvmo65y23sBeRLah4meMaRN10e3yPfchoCyF4IRud9 Tvc146+dwEGqhJs0+rQ9rSuZXmd53a0uRkGvrbD1SLCYvnU3kvoE9MB1t9ZdIljwdkIS hO0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qllRDtRzTypdZztvcnHwPcbsEQrFc/2Bk+u5pdDyOOo=; fh=VO9Ls1WGF4WsLrQruKVmilJuvQ85XyPro5eMCd+kb2o=; b=TXRvlssGMlXpBvjXRQrmiPrjffcoQyA6V23h2tMLP2a4g0TzMWQzZZg5rirllr4+At Do5gZcrBbz1VmRKMtjZgCMI1ZOW9ZOJB4dan6zXmXNZW5Me6i80Wxtsd0r5VIsKzm8D2 pAqhCvqYcI5yGaud3wgtc7B7Aq48VfXFpqJwaiC3wDcKHHQ6Zf5chFcJrGogda1qA9XF YtvftbqCRlpfYv+3cSeOIykiB2WSL+QFSYpoUVleKzwuQRGXue3YRZZAV8zJ+sgUhPTC Jo3CFbkPHnPY8hS7Zbwpzf5kJfETJpWKaniGd2krVWeUAvnLu6iYok8dAEIVYsq+jhu4 Gmqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fhEwSrVA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g130-20020a636b88000000b0055c96379d01si1912857pgc.705.2023.07.18.10.40.18; Tue, 18 Jul 2023 10:40:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fhEwSrVA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232055AbjGRRSr (ORCPT + 99 others); Tue, 18 Jul 2023 13:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbjGRRSQ (ORCPT ); Tue, 18 Jul 2023 13:18:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25497CC for ; Tue, 18 Jul 2023 10:18:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AE68761689 for ; Tue, 18 Jul 2023 17:18:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4FE7C433C8; Tue, 18 Jul 2023 17:18:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689700695; bh=qllRDtRzTypdZztvcnHwPcbsEQrFc/2Bk+u5pdDyOOo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fhEwSrVAhaV4JxPjCqoHkgK65jNKKiFjp9EvfPDQDnSLS4MgACggBCn0r42wwCInN yRwAf9szLO8IkvkKStI83NQrK05PNXalZqkcuE+j3gYiRjX+W53qhSc6r2xqif2Gds 4AnyH6/Q2yWN49dGzC496d9FthaHk8xPwBQX8HYHCJ5AU/Rv5XFF2bcWrLf6MikBJp dOcf+p0sP4UrSvWi9iKVX0KVcu1U/ODblcE9VXrtPfAQBPbMgyLP7dPTmpJFmNjUnK h0h3imKK++hIIcXs+XzllMfBdsECIVPOz2piukDIBCepEceKZonIyh86kYBvI/Tfx5 kPrhO7slgTCEg== Date: Tue, 18 Jul 2023 18:18:10 +0100 From: Mark Brown To: Charles Keepax Cc: gregkh@linuxfoundation.org, rafael@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] regmap: maple: Clear async flag when doing a maple tree cache sync Message-ID: <563cf3d2-08bd-4768-950a-02e89fa6b6c8@sirena.org.uk> References: <20230718171346.1002994-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jX0zQrUA1ZrYLM9B" Content-Disposition: inline In-Reply-To: <20230718171346.1002994-1-ckeepax@opensource.cirrus.com> X-Cookie: Nothing happens. X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --jX0zQrUA1ZrYLM9B Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 18, 2023 at 06:13:46PM +0100, Charles Keepax wrote: > The normal regcache_sync function sets the async flag on the register > map. The maple tree sync code uses a temporary buffer, which is freed > after the register is written, however, as the async flag is set the > buffer might not be used until after it is freed. Fix this by clearing > the async flag in the maple tree sync function. It would be better to push this down into the rbtree code which is what really wants this. --jX0zQrUA1ZrYLM9B Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmS2yVEACgkQJNaLcl1U h9CrLQf/e18FV13uCRRk0ryECfTcb8N093348JVmoJABfUmDeV5wJ1dKE0Q768WH 4hc0TN7GtZcEs7tUewjrvVgu1DiU70drj/X2o2EYl55CltHYDNVgeVKjGJTD9VoK j8SOklqawxR3CdfeOxkglEuPlaoDeeko3KXtKeQ/DzAatjvQFQM7V0DZFjqufTYA 7OUTVqe9A5ttLx0kn1SX50VeXGhvkZwEEhgKH8elBP6qz5Q8DO1B4YkRekwL/IKX ccqTP9luFBLOj5EVL9wh6cNyM/9cch/+lF/UVCgoRS3nbZAvUbxQiAKdgiKOrywG CPKa6dhBKpkHrKPZxbVnaJMbS5ZvIQ== =e8u1 -----END PGP SIGNATURE----- --jX0zQrUA1ZrYLM9B--