Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp641098pxk; Thu, 17 Sep 2020 12:05:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmZ/sF7P6bAlmzWuRC0aqMQYB7/FIpaj2SL0YMbaDbONnW92CkQGFKl4EpVhH5n8Iq+mxF X-Received: by 2002:a05:6402:50f:: with SMTP id m15mr36078250edv.41.1600369508988; Thu, 17 Sep 2020 12:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600369508; cv=none; d=google.com; s=arc-20160816; b=VK/LgkDRTsSpZdNk7FlW3SpBGTMiKpcaaECNFiXviH3DpDMCynBaB7C1YnjxNPfuMF 2gm7aNnYCOHNicDaRy2Sl/GIXPOTfzI0jibYPWMhdKR6orcduRtnRYyujO1YIev1Bd5G 9UmZ1iInJPCzDDSDKgw+ZCsDohtE1461WrGIfSzR1zkdM/F8QqufARX5r/3//O9TNJNY fj0FvwLNbge8U76SAoUJyB/2+1viZhpK9pUFLjeUo4Esga9YHPRG/ffgSEqAZB8vf7d8 uzZx/IBGTcfIFS/YJhTwit+Ark4DMmuTQD8HwuLjPXLB2RCfAUBSXG+X4wpz6hrMnEQ2 uh2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:subject:references:in-reply-to:cc:to :from:date:dkim-signature; bh=RGM9lgvQJC1dPwJIkBaPS9fBTeSFwLUCRTf+pNvIrdQ=; b=PjmN1K93Led5jhyRtyp9U77kbl84DKj6FSGI1FuUVD/DU0gk32oJQ/ZcfAFcpIi+5E /N26CR+S7jpimpTEaOBBnLt2NSyMZhkwbiSX9pgUELMJUWraJvTl2C7BwzzGzy5nq/nD Y2U0Kp/qvmLy8XNolTgrqAXKAhu7wmB6GyZUVndjn04tJv9RGCK/iS+nMaiOo7DQfTDo B42fnXpZYYdoR/nzlpXiP+y0fL3bUZgCC9G3syqIc4q4duxp8boL5jEtG5u/8CV7Q/3d 8kxm/QsPnzHDTQQ6I1ii2Y19oAn4iyNfQqvQQG4w9P9WnStFyzOgZluGyihsZZ8idjWl TQpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="WT/5cMsw"; 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 qt10si566436ejb.2.2020.09.17.12.04.44; Thu, 17 Sep 2020 12:05:08 -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="WT/5cMsw"; 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 S1726514AbgIQTDi (ORCPT + 99 others); Thu, 17 Sep 2020 15:03:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:59640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726664AbgIQS7Q (ORCPT ); Thu, 17 Sep 2020 14:59:16 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (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 8E0D42072E; Thu, 17 Sep 2020 18:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600369134; bh=rr3dqiLdvWkyEd1pfoXZ2dEs5VJ/LPeZYXSEk8qGaeU=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From; b=WT/5cMsw/rbv3BnUcqZRGNf/BOUINNMTlTZ+pOjSZQCF/e3upkj9SF/lYLH0xbIHk knAvevwoH1pJVEONygW3spCBkpPbc/eFU6Xc9GFvWmZCT87Vb73Y4/BfTmWbp+9et/ eIAveXNHZV8oI7X59dCPx2weHGAwA56qUpy6iyXE= Date: Thu, 17 Sep 2020 19:58:04 +0100 From: Mark Brown To: Charles Keepax Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org In-Reply-To: <20200917120828.12987-1-ckeepax@opensource.cirrus.com> References: <20200917120828.12987-1-ckeepax@opensource.cirrus.com> Subject: Re: [PATCH v2] regmap: debugfs: Fix handling of name string for debugfs init delays Message-Id: <160036907918.20286.4753770618414417911.b4-ty@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Sep 2020 13:08:28 +0100, Charles Keepax wrote: > 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. > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next Thanks! [1/1] regmap: debugfs: Fix handling of name string for debugfs init delays commit: 94cc89eb8fa5039fcb6e3e3d50f929ddcccee095 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