Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3377385imm; Sun, 14 Oct 2018 18:56:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV61aS48NKwmNw5ebE+aZbiTiBiq6BkhoikKdLMWJnuwOu3HVJ/N8UgDWY3n0LQA4VeDCSF+7 X-Received: by 2002:a62:18a:: with SMTP id 132-v6mr15659717pfb.207.1539568563516; Sun, 14 Oct 2018 18:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539568563; cv=none; d=google.com; s=arc-20160816; b=nWphDg3YZNQWdQwwvnxrG9HrIlMjt9e+FYpF2ur6amBO5U8hMkXghADD+xWrOoNhfL PPHMFYuv6LqnXgDqVrvpTaXkIDY8LkZ+kDVLpb0Zqyy6TCzsLtYJJFcmC0nOKzrQQhIs iJoHQDzl1VYwM+GfpRJR3/kfe0BXN6mZTugV+RE6DcdHEfc1vbrUk2x20YAqZJ9zXidM QovFYtrka4vEa4QGinOqJRUyg1PIIfmddOzvTJzB0IaODBkSoOy+a7Z2y4EmOcd4zw7k vJQGpEKwbeafptfwjghBY2Q9DBCLGJrIYQS9t35GAEjpm4ldpRqV6nbrtxyLF545gJf1 OzQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=/57q6iukOKIXyiEG2mHtNmaACpOCNf2QHmfj1gCreng=; b=j9isjfPv89ntcLJ4EZ/9005NrCMBMyxVgZh9/5FRbOu5R36fgOOLi/XoqvH9CNNT3Z oMLa7mUbh4b2kHmlIAbGqbIdwllgQ+SpY6UN5Gm83qN1B3QnWkywW2jqaDp9FWV/1ZLQ AFfymS4jA2bONbZEiu/oZnvQSK5B6DmlU+H7BTzluzPSxUAq0IK+FlaLQVjSXfac1e+s mhwowFz2uRrcj0i9Le9/5TWSGPXMy0VH3Dr2aKDifSFKHGEdu2RUmoA+nBqehAnmKNYs LwbKKLIGrf6T5nSq4EuCnFuxoWuQpZhahS7nY8bZQU/WSJcLnKuJxS6bRGTS1JHk2lar b6dA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n135-v6si9794039pfd.38.2018.10.14.18.55.48; Sun, 14 Oct 2018 18:56:03 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726561AbeJOJid (ORCPT + 99 others); Mon, 15 Oct 2018 05:38:33 -0400 Received: from smtprelay0206.hostedemail.com ([216.40.44.206]:40489 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726487AbeJOJic (ORCPT ); Mon, 15 Oct 2018 05:38:32 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 0BD57100E806B; Mon, 15 Oct 2018 01:55:29 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:599:800:960:966:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2196:2199:2393:2559:2562:2828:2898:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3870:3871:3872:3874:4321:4385:5007:6119:7514:7576:9010:10004:10400:10848:11026:11232:11658:11914:12043:12048:12438:12740:12760:12895:13069:13095:13255:13311:13357:13439:14096:14097:14181:14659:14721:21080:21433:21627:30012:30054:30070:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:39,LUA_SUMMARY:none X-HE-Tag: rest56_4cb72aaaa3b19 X-Filterd-Recvd-Size: 2553 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf14.hostedemail.com (Postfix) with ESMTPA; Mon, 15 Oct 2018 01:55:27 +0000 (UTC) Message-ID: <16f48648393366d91e43cd66b3d0a346b1ed29ab.camel@perches.com> Subject: Re: [PATCH v3 13/18] of: overlay: check prevents multiple fragments touching same property From: Joe Perches To: Frank Rowand , Rob Herring , Pantelis Antoniou , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , Alan Tull , Moritz Fischer Cc: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, devicetree@vger.kernel.org, linux-fpga@vger.kernel.org Date: Sun, 14 Oct 2018 18:55:25 -0700 In-Reply-To: <850f0866-1189-5a49-01c5-79caf270abbd@gmail.com> References: <1539563070-12969-1-git-send-email-frowand.list@gmail.com> <1539563070-12969-14-git-send-email-frowand.list@gmail.com> <850f0866-1189-5a49-01c5-79caf270abbd@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-10-14 at 18:52 -0700, Frank Rowand wrote: > On 10/14/18 18:06, Joe Perches wrote: > > On Sun, 2018-10-14 at 17:24 -0700, frowand.list@gmail.com wrote: > > > From: Frank Rowand > > > > > > Add test case of two fragments updating the same property. After > > > adding the test case, the system hangs at end of boot, after > > > after slub stack dumps from kfree() in crypto modprobe code. [] > > I think this is worse performance than before. > > > > This now walks all entries when before it would > > return -EINVAL directly when it found a match. > > Yes, it is worse performance, but that is OK. > > This is a check that is done when a devicetree overlay is applied. > If an error occurs then that means that the overlay was incorrectly > specified. The file drivers/of/unittest-data/overlay_bad_add_dup_prop.dts > in this patch provides an example of how a bad overlay can be created. > > Once an error was detected, the check could return immediately, or it > could continue to give a complete list of detected errors. I chose to > give the complete list of detected errors. Swell. Please describe that in the commit message.