Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1148827imm; Wed, 17 Oct 2018 14:19:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV616k6FBnCUAgwaXiAQefqqfyd8TLvl1OJoucxl97oxxYLXsN5sdwxYAnjHQDNJNH/azzYJc X-Received: by 2002:a63:1f0a:: with SMTP id f10-v6mr25750654pgf.313.1539811178025; Wed, 17 Oct 2018 14:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539811177; cv=none; d=google.com; s=arc-20160816; b=LezePwkdLoYkGgiXAxltPXPdWLOcCsdtcE1+pDNb6UioCTtyxF+IbR+FrVXbUX5wMg NA5p2pjSfOnoZKU06DJ3xhiMR4C2ZgZhyjGs5C+KEvWodwNFshR5Lk5oSIh8YT02F9hG Boh3/iqcHwq8cHAlSQ5HiigBzbuuTFW2GgJLzsVM7cgrmu6HFEegbPH92sELC1V1qoLp HqfIu51B775/EaqUGY3eDC/cPXneN05QzxTZR2L1r7HEZ74c9LnINabJhwTw6UVriO1j WZzSx5G2dVPQjvOvqNiCq6RwV8Y2yrAUx0AM4dMtysTnoyqEqfwOgRTSXAx3UJtZJJFV 2TmA== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Vq4BRKRP+3oB952NzpZJk+gqFnrMETk8fYcJ8Xhvjos=; b=K6KtwrGCDt2Kcqks7UTVHI1nlCpwk+wO9WwW4omoUo6mnTZetv6eKqt+mXF3UmmLyY RGE1O681QmtES6rtWxl9hwHuLDj/lpqM64q4DNgA1D23r8Tn1YYuAGmOUaWXSiyDu4NE 8m3uDEZuZ3e9AAzJKPbo6+LyNJdhbN65eqES9bC9h+q9AqYX4Jd7Tl9UclXvHtgzrWwT 1mtz+KNbr1222tlveSx0ntCwaOWrRxF/tXWqQXkXXx9eQlXO0ruJD6495bHNKoz4QBNF kH7tLUlOupjG6cdM0X6klDI6NenTPqyYp28fG8D4dqJSOLed1i3rgNMcczsJc0s4PCCC g5IQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WrXjuZHZ; 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 c89-v6si19505453pfe.60.2018.10.17.14.19.22; Wed, 17 Oct 2018 14:19:37 -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=WrXjuZHZ; 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 S1727368AbeJRFO7 (ORCPT + 99 others); Thu, 18 Oct 2018 01:14:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:60726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725745AbeJRFO7 (ORCPT ); Thu, 18 Oct 2018 01:14:59 -0400 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 6F37921473; Wed, 17 Oct 2018 21:17:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539811045; bh=g2il2KgyF0vLxwMylQFDgfxo+XL4J5qudxh9j/KR35g=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=WrXjuZHZ824L7He7U1uvSiBNpx9QBSCtBr9wVYZ1T5aapuFl4NzhNVVE+U/zD8siF upTWTXPMCfcC25luy1HX+O28/Hked8dd52902RKqjn3PPCd0mrcYC49E6oYUHNq609 zcVvrsG754iSk+Pm6yQdJc7zROvG/7a1h52Rf+IU= Received: by mail-ed1-f43.google.com with SMTP id y19-v6so26259090edd.2; Wed, 17 Oct 2018 14:17:25 -0700 (PDT) X-Gm-Message-State: ABuFfog0QE0wicVAXB4LNILJaEVRMEfJ7S2NbQMlvLW9Plg0J6bDdMMr sb+WmeElHt41h1LxZFUaixrdkb7kU2Nnc5FIQMU= X-Received: by 2002:a50:cd57:: with SMTP id d23-v6mr1716930edj.60.1539811043733; Wed, 17 Oct 2018 14:17:23 -0700 (PDT) MIME-Version: 1.0 References: <1539657458-24401-1-git-send-email-frowand.list@gmail.com> <87murekyts.fsf@concordia.ellerman.id.au> In-Reply-To: From: Alan Tull Date: Wed, 17 Oct 2018 16:16:47 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 00/18] of: overlay: validation checks, subsequent fixes To: Frank Rowand Cc: Michael Ellerman , Rob Herring , Pantelis Antoniou , Benjamin Herrenschmidt , Paul Mackerras , Moritz Fischer , linux-kernel , linuxppc-dev , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-fpga@vger.kernel.org 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, Oct 16, 2018 at 10:08 PM Frank Rowand wrote: > > On 10/16/18 02:47, Michael Ellerman wrote: > > frowand.list@gmail.com writes: > > > >> From: Frank Rowand > >> > >> Add checks to (1) overlay apply process and (2) memory freeing > >> triggered by overlay release. The checks are intended to detect > >> possible memory leaks and invalid overlays. > >> > >> The checks revealed bugs in existing code. Fixed the bugs. > >> > >> While fixing bugs, noted other issues, which are fixed in > >> separate patches. > >> > >> ***** Powerpc folks: I was not able to test the patches that > >> ***** directly impact Powerpc systems that use dynamic > >> ***** devicetree. Please review that code carefully and > >> ***** test. The specific patches are: 03/16, 04/16, 07/16 > > > > Hi Frank, > > > > Do you have this series in a git tree somewhere? > > > > I tried applying it on top of linux-next but hit some conflicts which I > > couldn't easily resolve. > > > > cheers > > > > > > git://git.kernel.org/pub/scm/linux/kernel/git/frowand/linux.git > > $ git checkout v4.19-rc1--kfree_validate--v4 > > $ git log --oneline v4.19-rc1.. > 2ba1b7d353dd of: unittest: initialize args before calling of_*parse_*() > 4f9108209f79 of: unittest: find overlays[] entry by name instead of index > 353403c76ff8 of: unittest: allow base devicetree to have symbol metadata > 8fc37e04a01b of: overlay: set node fields from properties when add new overlay n > 05d5df0e5151 of: unittest: remove unused of_unittest_apply_overlay() argument > 8c021cba757a of: overlay: check prevents multiple fragments touching same proper > 797a6f66e039 of: overlay: check prevents multiple fragments add or delete same n > c385e25a040d of: overlay: test case of two fragments adding same node > c88fd240f0e0 of: overlay: make all pr_debug() and pr_err() messages unique > 1028a215d32a of: overlay: validate overlay properties #address-cells and #size-c > f1a97ef74ce4 of: overlay: reorder fields in struct fragment > ffe78cf7a1fb of: dynamic: change type of of_{at,de}tach_node() to void > 5f5ff8ec0c0c of: overlay: do not duplicate properties from overlay for new nodes > 06e72dcb2bb0 of: overlay: use prop add changeset entry for property in new nodes > a02f8d326a08 powerpc/pseries: add of_node_put() in dlpar_detach_node() > e203be664330 of: overlay: add missing of_node_get() in __of_attach_node_sysfs > 8eb46208e7c8 of: overlay: add missing of_node_put() after add new node to change > b22067db7cf9 of: overlay: add tests to validate kfrees from overlay removal That branch is a real time saver, thanks! ALan