Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp749675imm; Wed, 13 Jun 2018 07:44:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJC5O6Zzf9O1NTPt8ShkMgstyVFMKOejm8jttYs6EMx7J6PwMyI5TeH+jFijOgzvW6qxSAM X-Received: by 2002:a65:5c89:: with SMTP id a9-v6mr4270048pgt.51.1528901082515; Wed, 13 Jun 2018 07:44:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528901082; cv=none; d=google.com; s=arc-20160816; b=urL6wNfvcNBVNMspJy/XqlpudghMNhH7p8yxuQPUkzyhpMuzR8r6MwsnKFgEFP4FiD P/GcDUHP1vZWGkn1UKi9ayny5XuMHFYAS6DCLse4wgyM9ubjDShqVZdVIELZjpKJd04x oQLZknezKu6PwaNOJA7BwlEl6Pyfc8qmoLBM3VVxWNxIkFEMNb8iJX/z8ns2aiKi7aEv 6DQclMySZiduCNGzrG2TBo0jtTCxmp1tCk9pru6yxoup35NTxcRBPMVIngyMUb2bMm9O ZDhB7SM8H8ZfrZv/eQJx8tY5saFElprkxYgPSnniB6smozDeZ1xrYJy/c1cF/Zjks8JZ bwgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=vv30LvcaL2LWsmODqbzvMrHDzIbqfZIbcdhtSqSV3ds=; b=Fg0EY7201NaIN4XtfoUFKSOvXzmSKJQ25iR/aLn4X8q3UvvPvLV5b1lYDC1a58DH6H 2SImR++Gevkc8Rs9xfZhH9whRq/ot3a6dXfV1ob0jaPiNhKvm7NqDWdp9X83bp0lQUu9 lseqBGCxRXDPvXU3fP+M3H+UCJgSa0eR3wPVpEJjCujeXGs87JaoAzOVHv6vHmDGcO0+ SWdFu21WIVKaIz9DVIUpcUD/0SoLxYxU6UT8cDXNi6Q/QhtSxv7v+VnpQO7AVnC7aTqv /yQ5nS/Jhlk6WvT0VEUQTK+/Pe7ixcoksUH99bcf4yEJP15LvIXSDv+RJxKSYCA2Ulx9 0L8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zQ/EVIc5"; 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 n9-v6si2494077pgp.558.2018.06.13.07.44.27; Wed, 13 Jun 2018 07:44:42 -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="zQ/EVIc5"; 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 S935902AbeFMOne (ORCPT + 99 others); Wed, 13 Jun 2018 10:43:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:46362 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935659AbeFMOnc (ORCPT ); Wed, 13 Jun 2018 10:43:32 -0400 Received: from mail-yw0-f169.google.com (mail-yw0-f169.google.com [209.85.161.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 88B72208B0; Wed, 13 Jun 2018 14:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1528901011; bh=8ITtq0quMLWbenYml34LGnlOLM0b1HPvTI0ggCNnhe8=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=zQ/EVIc57AuZpOBgzDmzRwhGNHXw6zmRF86X7ZsFAIsQu0BspNsQheJNPegD0dVlr FOc4Cs3LIX/jpw+reIh4AwaFnW9ldHcGBQuhw/Aqoz8sZ1007/Of65DckGVdCUZDQR Z4SaAfdD+v6APzi6OGYSDN24RMZDz7wUfc/hoxGU= Received: by mail-yw0-f169.google.com with SMTP id t198-v6so963587ywc.3; Wed, 13 Jun 2018 07:43:31 -0700 (PDT) X-Gm-Message-State: APt69E1KzpCk3A4VqAHyoIUiNe3Vijh22TrBKyZzl2pseaQrh60nsoJV cMq/SICRf1VpGNsKF5XVmkusiL3tOk7GdHrYtkk= X-Received: by 2002:a81:a316:: with SMTP id a22-v6mr2457034ywh.142.1528901010797; Wed, 13 Jun 2018 07:43:30 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a5b:b87:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 07:42:50 -0700 (PDT) In-Reply-To: References: <1520208889-3908-1-git-send-email-frowand.list@gmail.com> <1520208889-3908-2-git-send-email-frowand.list@gmail.com> From: Alan Tull Date: Wed, 13 Jun 2018 09:42:50 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 1/3] of: cache phandle nodes to reduce cost of of_find_node_by_phandle() To: Frank Rowand Cc: Rob Herring , cpandya@codeaurora.org, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-kernel , linux-fpga@vger.kernel.org, Moritz Fischer Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 12, 2018 at 1:16 PM, Alan Tull wrote: > On Sun, Mar 4, 2018 at 6:14 PM, wrote: > > Hi Frank, > > I'm investigating a refcount use-after-free warning that happens after > overlays are applied, removed, reapplied a few (typically three) times > (see below). This is new in v4.17, didn't happen in v4.16. As I was > investigating I found that rebuilding the phandle_cache after overlays > are applied or removed seems to help. I was probably wrong about this. The more I look at the phandle_cache code, the more it looks looks good and straightforward. Probably disabling phandle_cache is 'fixing' things through some weird side effect. I'll keep investigating. Sorry for the noise. Alan