Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2613222pxk; Sun, 4 Oct 2020 05:58:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkD0UTk/6NAZ0mVw+9vQszfNAQMw9Ua68Litt+jZAkcLHvj5dmpQiw7SNnSElAKzeVIDEm X-Received: by 2002:a17:906:3f95:: with SMTP id b21mr10480998ejj.93.1601816291311; Sun, 04 Oct 2020 05:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601816291; cv=none; d=google.com; s=arc-20160816; b=IJa8sgnzD0gk9lAZPsUUnii29zHvgLXatvYcrydpMCTMtV4PqyuanPLv4G4t8U2pdp nnKaJqt9twyDkNBbD6mmMCaez9SX2cbW9LZtXJ0/v3csi6vye1EJpYl8PDOKgCTwZoll be9rGe7C7TZLFXe6S89tU5zjKNo9V1mEA7dk4RtOQoGyZ8xTnE1uj3sTYkCAB5hq3BEq Yow+IjHghBnhXwcETVcGk3PqQsvGoSOqLwF0qmgL1otOWhrx2oP2yvUPG2XzejbPu+om FGE3GRDj7rMSazYTf7KfJvEP1oM1BgQHkavY55n6SiZpn5s59vVVkQ1MVclWZvOxKXIk z4/w== 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=52FEtgQUG/O9kP0FhERa4o7/QAq62Z4PQlotEmutHnc=; b=O0QOC3mvAPyLJgpwQ50GGWlbT4j8ImBKfX0GrpXhFbZd6be3hP4JjxtrTWB3ulxIsI iMmrAdfJSlE/DP7Uc03ycSZ06XTK5Th9YeVdFI+0ZkQJPB2XOwvG9cAOxGVQaMN4qweU vWunenW85mk3DRETZYftQWVfH7XBYXcMQfWRKZ8jz/+CULBLaFuc3lFiASNlUVmSd5u1 4UvUv9G1+jdaA2ARNuUlrtpk7LoqbW6w6woovp93FjkDa+Lh8gf1pg7Np/Hp2Tt5wQ3l x3VDfURbzCaq8EjnpgVH4Wy/QAqBeAAWM++TPnp6J+cL6lldV14Fp1J5ii2FJ1Ebu9qP zkGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xGyKJbqy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k4si4950651edx.303.2020.10.04.05.57.48; Sun, 04 Oct 2020 05:58:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xGyKJbqy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726063AbgJDMyc (ORCPT + 99 others); Sun, 4 Oct 2020 08:54:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:58332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725856AbgJDMyc (ORCPT ); Sun, 4 Oct 2020 08:54:32 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 78822206C1; Sun, 4 Oct 2020 12:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601816071; bh=j3fXHj/yGgiocWlpffObQ87hxGbFY8VMgsdEnHS+RgM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xGyKJbqy1ZzzgZQ+FZKigyr1eTqDna+upxevSXMqM0R0oEozpTa5dcH6ULDSC78Kn xQ31FhC8YOzLtY/hAMLsQ+yujsixctAQn8g04r6mL2HWZBpPZB7C3MAq0oCKLrU2nq +cB+I1q8Fv21TUqB5eCAy8amOoOSEVBFm9NSlcco= Date: Sun, 4 Oct 2020 08:54:29 -0400 From: Sasha Levin To: Charles Keepax Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Mark Brown Subject: Re: [PATCH AUTOSEL 5.8 14/29] regmap: debugfs: Fix handling of name string for debugfs init delays Message-ID: <20201004125429.GK2415204@sasha-vm> References: <20200929013027.2406344-1-sashal@kernel.org> <20200929013027.2406344-14-sashal@kernel.org> <20200929083334.GX10899@ediswmail.ad.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20200929083334.GX10899@ediswmail.ad.cirrus.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 08:33:34AM +0000, Charles Keepax wrote: >On Mon, Sep 28, 2020 at 09:30:11PM -0400, Sasha Levin wrote: >> From: Charles Keepax >> >> [ Upstream commit 94cc89eb8fa5039fcb6e3e3d50f929ddcccee095 ] >> >> In regmap_debugfs_init the initialisation of the debugfs is delayed >> if the root node isn't ready yet. Most callers of regmap_debugfs_init >> pass the name from the regmap_config, which is considered temporary >> ie. may be unallocated after the regmap_init call returns. This leads >> to a potential use after free, where config->name has been freed by >> the time it is used in regmap_debugfs_initcall. >> > >Afraid this patch had some issues if you are back porting it you >definitely need to take these two patches as well: > >commit 1d512ee861b80da63cbc501b973c53131aa22f29 >regmap: debugfs: Fix more error path regressions Looks like 1d512ee861b is queued for the merge window even though it's a bugfix for this release? I'm going to drop this patch. -- Thanks, Sasha