Received: by 10.192.165.148 with SMTP id m20csp516258imm; Fri, 20 Apr 2018 10:24:25 -0700 (PDT) X-Google-Smtp-Source: AIpwx48xvtTfXMvWmZ6UHpNr205i1uprNsoguGLjGQOpt9oE6anNSYOQ7XRiBEIrDRxoPm23JR2V X-Received: by 10.99.99.68 with SMTP id x65mr9290098pgb.34.1524245064974; Fri, 20 Apr 2018 10:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524245064; cv=none; d=google.com; s=arc-20160816; b=hICuanUhKK9qsQWvyefrZ0/9K778LaOv/7ovGPU5rEkYoxZzSn1FdbSvv0JNra4z4T fo9Zahsjj+PUZ1VfQnI7RbV49e+58UiH/MZHgxhfWCR/dzK2+J8FaDdltZEV/MShQCMS 1FxzYNRjm5r9xZ39R/tFgi99l5akBxAa4BPo2tnz9MoOwZFVnToiqTHrtQv3Zc0NpAQX +0zw7dJ6UgrysUFeIfBhOWOT99eLqY3CWbyczgDi19YiYQ1QG95ZGDcClt1chD4PxcG3 AvtT5/SZi5PW+GhAJPKKkT/2IL8MG0ECK2T8+oyI+0B8sZOYTFLRSEBdnItpZBXhGYzB utRA== 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:dkim-signature:arc-authentication-results; bh=J0TulhvdGOJeriT6An69SUeaUJ0UJm4hK8ZhQplIy/U=; b=QpMy7KKko2ZFgutw5Bw/JwJ1s+7pPxcWiMsg5PT8VneQN3cvjmtbAuB/M4bVL8Trpu 6rG4OLBVt6olnBziYTtv4urXmEPPXeSAVMO8/uJ7YxSBtbSvu9/D2OkVfO1Ds4d/Hmig kojIWO63ns+ZRTczMNXrWG5TGeQbfBrntXygYmn/nYv0hKuSernstBFGMe0uNYhxNhM/ ug+GuG2XtHMbi7XFL92p31ams4DHe3QrTKQEiEqwNJRJzV5vPxZDNbeipjle+TKRaf8g zcSa4/eP6BiP2XojtoTcXEwyNC1oqytNqFjAYmdQ50av/GvZE7u8B3RZ5yp3NVj15Mln zCng== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=Gsp+G+lJ; 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=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8-v6si5631134pli.219.2018.04.20.10.24.10; Fri, 20 Apr 2018 10:24:24 -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=fail header.i=@armlinux.org.uk header.s=pandora-2014 header.b=Gsp+G+lJ; 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=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753242AbeDTRVl (ORCPT + 99 others); Fri, 20 Apr 2018 13:21:41 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:51054 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750745AbeDTRVi (ORCPT ); Fri, 20 Apr 2018 13:21:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2014; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=J0TulhvdGOJeriT6An69SUeaUJ0UJm4hK8ZhQplIy/U=; b=Gsp+G+lJN3VBIu2pUpYRzXe3X 5mdELTPSGzwR5nJ4xBOKH8Y4fJHjTXIbbVJpxlDgZ4j5P1FSh472ofAPunhgPX3vb8hxy1OsxZo/Q p14h4yNDBMk2yZuBsWL6Vl4+TdjNoj9V9pmiOD2A/jpJ4NL98kpimvPsBJOkVZBxPQkc4=; Received: from n2100.armlinux.org.uk ([fd8f:7570:feb6:1:214:fdff:fe10:4f86]:44114) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1f9Zio-0006Zj-8p; Fri, 20 Apr 2018 18:21:18 +0100 Received: from linux by n2100.armlinux.org.uk with local (Exim 4.90_1) (envelope-from ) id 1f9Zij-0004Wk-J0; Fri, 20 Apr 2018 18:21:14 +0100 Date: Fri, 20 Apr 2018 18:21:09 +0100 From: Russell King - ARM Linux To: Kees Cook Cc: Pavel Machek , Daniel Micay , Tony Lindgren , Thorsten Leemhuis , Linus Torvalds , Arnd Bergmann , Stephen Rothwell , Linux-Next Mailing List , Linux Kernel Mailing List , pali.rohar@gmail.com, sre@kernel.org, linux-arm-kernel , linux-omap@vger.kernel.org, Kevin Hilman , Aaro Koskinen , ivo.g.dimitrov.75@gmail.com, Patrik Bachan , "Serge E. Hallyn" , =?utf-8?B?TWlja3Vsw6HFoQ==?= Qwertz , Clayton Craft , Martijn Braam , Sakari Ailus , Filip =?utf-8?Q?Matijevi=C4=87?= , Jinbum Park Subject: Re: [regression v4.17-rc0] Re: FORTIFY_SOURCE breaks ARM compilation in -next -- was Re: ARM compile failure in Re: linux-next: Tree for Apr 4 Message-ID: <20180420172108.GR10990@n2100.armlinux.org.uk> References: <20180404165559.4cd0c12c@canb.auug.org.au> <20180404074856.GA9342@amd> <20180404175852.GI5700@atomide.com> <20180404184622.GA8608@amd> <20180404195951.GJ5700@atomide.com> <20180404201837.GA9710@amd> <20180415173908.GA2024@amd> <20180420073402.GA9356@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 08:05:17AM -0700, Kees Cook wrote: > On Fri, Apr 20, 2018 at 12:34 AM, Pavel Machek wrote: > > On Sun 2018-04-15 11:00:06, Kees Cook wrote: > >> On Sun, Apr 15, 2018 at 10:39 AM, Pavel Machek wrote: > >> > Hi! > >> > > >> >> Thanks. > >> >> > >> >> Ok, let me try to bisect it. Compile-problem should be easy... > >> >> > >> >> Hmm. And as it is compile-problem in single file, it should even be > >> >> reasonably fast. I did not realize how easy it would be: > >> >> > >> >> #!/bin/bash > >> >> set -e > >> >> cp config.ok .config > >> >> yes '' | ARCH=arm make lib/string.o > >> >> > >> >> And the winner is: > >> >> > >> >> ee333554fed55555a986a90bb097ac7f9d6f05bf is the first bad commit > >> >> commit ee333554fed55555a986a90bb097ac7f9d6f05bf > >> >> Author: Jinbum Park > >> >> Date: Tue Mar 6 01:39:24 2018 +0100 > >> > ... > >> > > >> >> Acked-by: Kees Cook > >> >> Signed-off-by: Jinbum Park > >> >> Signed-off-by: Russell King > >> > > >> > So I bisect a problem in -next, and patch is merged to Linus, > >> > _anyway_, breaking compilation there? Neither Jinbum nor Russell even > >> > bother to comment. > >> > >> Hi! Sorry I lost this email in my inbox. It seems this is specific to > >> a particular subset of arm architectures? (My local builds of arm all > >> succeed, for example. Can you send your failing config?) I'll take a > >> closer look on Monday if Daniel doesn't beat me to it. > > > > Daniel, Kees: any news? > > > > I'm aware you did not specify which Monday :-). > > Hi! Sorry, I got distracted. So the .config you sent me builds fine > with my cross compiler. I suspect this is something specific to ELDK's > compiler. I can try some other compiler versions. What version of gcc > is failing? Hi Kees, We know it works fine with: linux-next's gcc 4.6.3 + binutils 2.22 my gcc 4.7.4 + binutils 2.25 kernelci.org's Linaro GCC 5.3-2016.05 toolchain (gcc 5.3.1 20160412) Tony's using gcc 7.3.0 + binutils 2.30 Arnd's using mostly gcc 8.0.1 + binutils 2.29 What-ever toolchain Olof's autobuilder is using which is quite a spread of versions, both binutils and gcc, and they all work. The autobuilders plus Arnd's are regularly verifying lots of kernel trees (including my own) with lots of configurations, and the identified patch has not reproduced this compile failure there. Searching google for: lib/string.c "error: inlining failed in call to always_inline 'strlen': function not inlinable" gives me only three hits on mail-archive.com for this, all of them are Pavel's email or a reply to it. There appears to be no other reports of compile failure anywhere else on the google-crawled Internet. There appears to be no information readily available as to what compiler versions each ELDK version contains (see http://www.denx.de/wiki/view/ELDK-5) so providing the eldk-switch command to us gives us no useful information. I think more information about Pavel's setup is needed, including: * compiler version * environment (any kernel build specific environment variables set?) * exact make command line Maybe even showing the exact command used by kbuild to invoke the C compiler for lib/string.c. It could simply be a bug in the ELDK GCC version that Pavel's using. Could it be that DENX have patched gcc for ELDK and subtly broken it? We all know distros like to apply patches to packages. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up