Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1201639ybl; Fri, 16 Aug 2019 10:33:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuK/MDtprTEsdY/DcN7gKbpJdob24CltorZVB9FQfdHY0yovmHpFNRXlNG7rt2IagBnKW2 X-Received: by 2002:a17:90a:5887:: with SMTP id j7mr8265093pji.136.1565976780684; Fri, 16 Aug 2019 10:33:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565976780; cv=none; d=google.com; s=arc-20160816; b=XLr3HEfoT/w9GnP2SuyvKJ91nfTaio46SqEyKoeybuhVUV20xKi7LQpah2nIQtWb8Q OCaEraEe4SxaOsKV2nTTrxxIKExM9lnlkF1v0Ab2WyI5Iy68xHCCCqxi3HmH3sknxqRo dX3hi1pqL4jms4cEyUgF43td89jMlOn4ys5QteuXudQOtT1jZ5ScDvPg1rvg2oXATiLi omRIcOennJPry99xh9d1jtpDXRq1Ru0SzN3Z4TmMREboBnFDT+6wz1ynk+X2BokhElcG e+IrqPx6Subt2qL4pV5mC3gA1Y7jx1NTD4/Cx7XcdsEMzdvt2brKZBzXb6pMQ0lx+CS2 eqDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:user-agent:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=TkuDPGpcaz9V3TCFafNZva2EkKV3wli6koFG9q5cghE=; b=RXVrgK9tW+50YvKqJJYp5vCZtR7ls0p8eNOiufJjInQS/ar4jIPuzlwlBLlrrj9+b9 DN8F8ADI90xLt6DKmBzJzEMGkuVM12PDDE5aH0mIHnB6n+pOgDYlejvBL1vsKNu464Ai SXkirl+wOIBbbRbFgdN0FjM67cFzWJOihAes/63AhFcxx6mANCtwsbHBYLQGSI5SS3bw 6FbdzQf2nJeOWFwOUhedn8HVVVV2wk/EY/q2tClp7pNT5ZxRRwsWL2KEei8o8uQm5ER2 3HqBAAwQJl4ufK8dChqCGSdf2iZqM6D9TiM57dyJ8sPDzwjB/7XozMS1xt5jNrC7WCmS oIxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IbJQDF+M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id t15si4387936ply.162.2019.08.16.10.32.45; Fri, 16 Aug 2019 10:33:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IbJQDF+M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727619AbfHPRbt (ORCPT + 99 others); Fri, 16 Aug 2019 13:31:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:53504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbfHPRbt (ORCPT ); Fri, 16 Aug 2019 13:31:49 -0400 Received: from kernel.org (unknown [104.132.0.74]) (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 ED6022086C; Fri, 16 Aug 2019 17:31:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565976708; bh=TkuDPGpcaz9V3TCFafNZva2EkKV3wli6koFG9q5cghE=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=IbJQDF+M60CpxSWWfFxbJldVOU254xLnYDUJYNlSZnGUjjsP5jU8N4k8bJdJVtEMm r0zuiph/HEhroZv2olfyQPYZfr7PTyd7AZqpFJPtbZtHNLlMyLwTQUiOQWLqI/5bdZ iRY9zd6DWAqebbBCbfzmU8RvYADgN5P7dxEdQn5s= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20190815223155.21384-1-martin.blumenstingl@googlemail.com> <20190815232951.AA402206C2@mail.kernel.org> Subject: Re: [PATCH RFC v1] clk: Fix potential NULL dereference in clk_fetch_parent_index() From: Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, mturquette@baylibre.com To: Martin Blumenstingl User-Agent: alot/0.8.1 Date: Fri, 16 Aug 2019 10:31:47 -0700 Message-Id: <20190816173147.ED6022086C@mail.kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Martin Blumenstingl (2019-08-15 23:48:08) > > > I have seen the original crash when I was testing an MMC driver which > > > is not upstream yet on v5.3-rc4. I'm not sure whether this fix is > > > "correct" (it fixes the crash for me) or where to point the Fixes tag > > > to, it may be one of: > > > - fc0c209c147f ("clk: Allow parents to be specified without string na= mes") > > > - 1a079560b145 ("clk: Cache core in clk_fetch_parent_index() without = names") > > > > > > This is meant to be applied on top of v5.3-rc4. > > > > > > > Ah ok. I thought that strcmp() would ignore NULL arguments, but > > apparently not. I can apply this to clk-fixes. > at least ARM [0] and the generic [1] implementations don't >=20 > I did not bisect this so do you have any suggestion for a Fixes tag? I > mentioned two candidates above, but I'm not sure which one to use > just let me know, then I'll resend with the fixes tag so you can take > it through clk-fixes >=20 >=20 I added the fixes tag for the first one, where it was broken, i.e. fc0c209c147f. Thanks.