Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2979918imm; Fri, 20 Jul 2018 08:07:41 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfw4AoSir2Q5aGuq5IPRfG9ritwzyhH4rYBcplw1uuF/dBAeG8mTaRGktn2tm/sMylMMvVh X-Received: by 2002:a63:6949:: with SMTP id e70-v6mr2514523pgc.119.1532099261226; Fri, 20 Jul 2018 08:07:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532099261; cv=none; d=google.com; s=arc-20160816; b=nvns4ugJ7g0uobnW6yp74jx0f9+e0g0dVS5kYfHBruD4tLa/nBTfckcnwn5VAfgq1X i1xzib1eIY+/pBsA/v6xhBUAwhfzh4FmBF+xs2nNyc7Heqb/9P3AyxoA0mibgHgLuWDp d6zfDWbUQN/EzXFEjgosJVf4vAXwplc2MZzajGdwPXV9d3PowphENv0rXjSORFMxnITo ltW9gX7R+h9avQsAyq7Md8miWT81IEE92x2zkfhO2e0YliVRxDM3BGsbaGQhCkdBCYpT WCvA7LGb9ys4nWLLOZt9xeMvNLfZSIZPvPh1mVE3lo11xpbnllMVRMgiopbGEOK9+MER scxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=62qZXJU3Ffr08U2yYEmf4Dn+cH6zAE+X9S/2+PEGwSY=; b=o4elGIi5/bKiCSFR7OJDf8xQOIA0F3UWr8nr96TONgfk04akjSPZT0NW61fbuifu2A sCSolQTtf5ZYXyp1vmTuW2CdH5XwUwT7PXwdBulxXfB8EN3TeybpYDJhFb0ekY/fvT6J 0A5nh/6n9zXQCqErFgHI+2cdl2GhBZ2DtbMSn+UlSEMbr4Li8GIhhhcmR7OQWfpnJxS8 k5bPBBLzhuQVLKkj5UMybn1R1CVc1FPfoNgW9NVgxNWka4zi818T3HBoxUS6BJHR3HuI hqUxYuVKb8WHEdbwh6iN2aEQ1j0avx3z70Nfc3PRLTyKrsiRqSgOeQdisJfr3pzhnZMS xxng== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 62-v6si1850228plc.203.2018.07.20.08.07.26; Fri, 20 Jul 2018 08:07:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731968AbeGTPzd (ORCPT + 99 others); Fri, 20 Jul 2018 11:55:33 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:45483 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731792AbeGTPzd (ORCPT ); Fri, 20 Jul 2018 11:55:33 -0400 Received: by mail-io0-f195.google.com with SMTP id k16-v6so416894iom.12; Fri, 20 Jul 2018 08:06:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=62qZXJU3Ffr08U2yYEmf4Dn+cH6zAE+X9S/2+PEGwSY=; b=d7wh9kvyrfAK6dae+821yV8FuilccMHwYeSFZ1HGvkfwaCAqCv9RPfjuYkUOWix6uF XFBy/059Snb9LrsnNoEbP+fxb0f3XK6I/yh24nfJ5FHkp5gz9yU9KLVI+EEWB6Fj5Mz7 Wh1ooGEx6S9OjlI1jbMXXzU84nrHU7j7nh4JPqVGEnQ8OjwA9T3qnSwo8eYkRto+mH5E W/2RWgetfsHQevI42FI9NTDm9w1YYqmrq6Mdwpt019lp3iK4YdeE1bP/Gxv/Exf8HwB2 81DbEwNVDcphPwciAAwLuvbYAwpidBiftYCRZgSpBWf/VmS9tbDR8vtVwX5LkMgCklxh PK4A== X-Gm-Message-State: AOUpUlFS6X4MecD3iwWFk6TBLx6LDPOMH1Rt0T1FIJ+vDZZ3z2vGs8vo BjhuR9JD+0+1kVhAOQhXjw== X-Received: by 2002:a6b:b496:: with SMTP id d144-v6mr1839368iof.26.1532099211570; Fri, 20 Jul 2018 08:06:51 -0700 (PDT) Received: from localhost ([24.51.61.72]) by smtp.gmail.com with ESMTPSA id f18-v6sm1339237itc.44.2018.07.20.08.06.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 20 Jul 2018 08:06:50 -0700 (PDT) Date: Fri, 20 Jul 2018 09:06:50 -0600 From: Rob Herring To: frowand.list@gmail.com Cc: Alan Tull , pantelis.antoniou@konsulko.com, Pantelis Antoniou , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, geert@linux-m68k.org Subject: Re: [PATCH] of: overlay: update phandle cache on overlay apply and remove Message-ID: <20180720150650.GA32296@rob-hp-laptop> References: <1531429207-3245-1-git-send-email-frowand.list@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531429207-3245-1-git-send-email-frowand.list@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 12, 2018 at 02:00:07PM -0700, frowand.list@gmail.com wrote: > From: Frank Rowand > > A comment in the review of the patch adding the phandle cache said that > the cache would have to be updated when modules are applied and removed. > This patch implements the cache updates. > > Fixes: 0b3ce78e90fc ("of: cache phandle nodes to reduce cost of of_find_node_by_phandle()") > Reported-by: Alan Tull > Suggested-by: Alan Tull > Signed-off-by: Frank Rowand > --- > > Changes since RFC: > - update code comment to mention race condition avoidance > > For the RFC version of this patch, the 0day test reported a general > protection fault from the KASAN runtime memory debugger on x86_64 > in qemu. The GPF was in a devicetree unittest. > > 0day tested the patch on v4.17-rc1, with some other patches applied. > I was unable to replicate the GPF on v4.18-rc1 with just this patch > applied. I was also unable to replicate the GPF on a clone of the > v4.17-rc1 0day repository, using the 0day kernel config. I will > reply to this email with the 0day GPF report. Didn't see any 0-day issues, so I've applied and it is in Linus' tree now. Rob