From: Scott Wood Date: Tue, 3 May 2011 17:20:42 -0500 Subject: [U-Boot] [PATCH 2/2] powerpc/85xx: verify the device tree before booting Linux In-Reply-To: References: <1304353907-31127-1-git-send-email-timur@freescale.com> <1304353907-31127-2-git-send-email-timur@freescale.com> <8FB32031-7344-4C7F-84F2-BA43E9959D07@kernel.crashing.org> Message-ID: <20110503172042.0696d263@schlenkerla.am.freescale.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 3 May 2011 10:10:18 -0500 Kumar Gala wrote: > > On May 3, 2011, at 9:41 AM, Timur Tabi wrote: > > > On May 3, 2011, at 9:21 AM, Kumar Gala wrote: > > > >>> > >>> + > >>> + ft_verify_fdt(*of_flat_tree); > >> > >> Do we not want to error out here if verify fails? > > > > Maybe. I didn't want a false negative to prevent booting. If the DT is wrong, the kernel won't display any messages, so the warning will be the last thing the user sees anyway. > > > > If the consensus is that failure should abort, then I can add that. I don't have a strong preference either way. > >> > > I would think that a verify of this form should be considered as bad as not passing a checksum verification. This seems to have a higher potential for false positives than a checksum. -Scott