Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6840856ybn; Mon, 30 Sep 2019 04:46:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqypecBL8wddMPxxR8rRRiEcx8YD7XG667rnBnbx2PHnR14iJSRuY5OhBt0KvVZdU65K8tfx X-Received: by 2002:a50:af26:: with SMTP id g35mr19521192edd.129.1569843981472; Mon, 30 Sep 2019 04:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569843981; cv=none; d=google.com; s=arc-20160816; b=H42txJpZ/D1lSoPzZJwiC9POKal0VmE2cMcink+E/rhJgnJb2Px6ait0zI1B/AV+p/ 66+F6HW5tb0/qywZtg4rVX950gEGP4Etw6fl0tk/uFAlfPrXk/zjB1mP9q+6cv1XFBcx EDq02/YSehn+me6MFfpeN/KcgQyoJsYNPh87DVkbSraCHlxNWLldUKdflRkCWtdPwnG2 H0IE3uTIopkKWdSHEJ8BqmQSi6oSf6s9kPstfbFpCQ/U1MTXpDbaGzaoTl1p8W37WUEX lIqD4OK5q1+I5u0g7hbR68z0fnJB3us4lMggskvsrU0SsYnWatnsrOhL0pY/QpayOtvG X94A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=vkC8+rhKAuBxD9HUE0lYtxLZMzfRgGyc4qZ+2JXzFQw=; b=XqdiKfMaHTZJQHMGFFLi76RPUbnFsNTTb45QCpqDJI06fb+mSCcAqhtvfuwEE7vN86 Bks1xH2C+E5qlM2sHucHmY1HJgBXsLXnYepXI1ylhBF7Cb3mXZ19Bz1KChZEm8zeROH4 KUOOxLg3mtPeL5258CJt/L3DhMSOOPizt9csMuQqeQ/sZL6iK9oK7IL1a1pcKMdy5tNz KYalmcJ8KpTUbXdDChCC8IQsQ+g6Zjormcji0T1y7ob4EgQRsJqSG25ReAIoDG4Mcsfs oiQBSNbRMJjm1oAEI04id+HsdhzuJMGg5UND6VC/qy0X3wiQxOuttvpiTLx6BCaoa9ko ynaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0SYpXQ7z; 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 y54si7572805edb.217.2019.09.30.04.45.57; Mon, 30 Sep 2019 04:46:21 -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=0SYpXQ7z; 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 S1727106AbfI3Lpr (ORCPT + 99 others); Mon, 30 Sep 2019 07:45:47 -0400 Received: from mail.kernel.org ([198.145.29.99]:42548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726504AbfI3Lpr (ORCPT ); Mon, 30 Sep 2019 07:45:47 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (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 97087216F4; Mon, 30 Sep 2019 11:45:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569843946; bh=iv/Dtkavbg/c29QLGURU+cPsjlv6mILK2Etm2RWqlsg=; h=From:To:Cc:Subject:Date:From; b=0SYpXQ7z0QqoDRun4j/lbd+Nx36/8rnMBqY1n7l6Y4BBOg6z5T4r6JtXfDJGLvQQr dcVxK9jQDZFTsjWZbuJCCNAP+8uqw3xcoyqeX9kSfNfU9Th0kgCph02Y2BHC1OSk3F da3X7DvTVSE0cKe9gbaWg3qLY9bKfNv/RYIiA1FE= From: Will Deacon To: torvalds@linux-foundation.org, yamada.masahiro@socionext.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Will Deacon , Nicolas Saenz Julienne , Catalin Marinas , Russell King , Arnd Bergmann Subject: [PATCH] Partially revert "compiler: enable CONFIG_OPTIMIZE_INLINING forcibly" Date: Mon, 30 Sep 2019 12:45:40 +0100 Message-Id: <20190930114540.27498-1-will@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit ac7c3e4ff401b304489a031938dbeaab585bfe0a for ARM and arm64. Building an arm64 kernel with CONFIG_OPTIMIZE_INLINING=y has been shown to violate fixed register allocations of local variables passed to inline assembly with GCC prior to version 9 which can lead to subtle failures at runtime: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91111 A very similar has been reported for 32-bit ARM as well: https://lkml.kernel.org/r/f5c221f5749e5768c9f0d909175a14910d349456.camel@suse.de Although GCC 9.1 appears to work for the specific case in the bugzilla above, the exact issue has not been root-caused so play safe and disable the option for now on these architectures. Cc: Nicolas Saenz Julienne Cc: Linus Torvalds Cc: Catalin Marinas Cc: Russell King Cc: Masahiro Yamada , Cc: Arnd Bergmann Signed-off-by: Will Deacon --- lib/Kconfig.debug | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 93d97f9b0157..c37c72adaeff 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -312,6 +312,7 @@ config HEADERS_CHECK config OPTIMIZE_INLINING def_bool y + depends on !(ARM || ARM64) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91111 help This option determines if the kernel forces gcc to inline the functions developers have marked 'inline'. Doing so takes away freedom from gcc to -- 2.23.0.444.g18eeb5a265-goog