From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2380C433FE for ; Thu, 5 May 2022 17:14:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382602AbiEERST (ORCPT ); Thu, 5 May 2022 13:18:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382089AbiEERSQ (ORCPT ); Thu, 5 May 2022 13:18:16 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 671955C879; Thu, 5 May 2022 10:14:36 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1E326106F; Thu, 5 May 2022 10:14:36 -0700 (PDT) Received: from FVFF77S0Q05N.cambridge.arm.com (FVFF77S0Q05N.cambridge.arm.com [10.1.38.147]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id F09AD3FA31; Thu, 5 May 2022 10:14:33 -0700 (PDT) Date: Thu, 5 May 2022 18:14:25 +0100 From: Mark Rutland To: Sami Tolvanen Cc: LKML , Kees Cook , Josh Poimboeuf , Peter Zijlstra , X86 ML , Catalin Marinas , Will Deacon , Nathan Chancellor , Nick Desaulniers , Joao Moreira , Sedat Dilek , Steven Rostedt , linux-hardening@vger.kernel.org, linux-arm-kernel , llvm@lists.linux.dev Subject: Re: [RFC PATCH 00/21] KCFI support Message-ID: References: <20220429203644.2868448-1-samitolvanen@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 05, 2022 at 09:00:39AM -0700, Sami Tolvanen wrote: > On Thu, May 5, 2022 at 5:36 AM Mark Rutland wrote: > > FWIW, a `-DLLVM_ENABLE_ASSERTIONS=ON` build also seems to work for me when > > building a kernel with CONFIG_CFI_CLANG=y. It's much slower than a regular > > Release build, so I'm still waiting for that to finish building a kernel, but > > it has gotten much further through the build without issues. > > Thanks for confirming. This issue should be fixed here if you want to > give it another try: > > https://github.com/samitolvanen/llvm-project/commits/kcfi That works for me, building in Release mode. A defconfig + CFI_CLANG kernel built with that builds and boots clenaly. Thanks! Mark.