Received: by 2002:a19:651b:0:0:0:0:0 with SMTP id z27csp3654678lfb; Mon, 9 May 2022 00:55:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9YvXfIhqkprRVwGNxbQU6ciQprsT9erInvS4R6/Bt78DCWosh7GfRIN2XPVm1OaX14hPy X-Received: by 2002:a17:90a:fa06:b0:1d7:765d:111b with SMTP id cm6-20020a17090afa0600b001d7765d111bmr25007000pjb.185.1652082928076; Mon, 09 May 2022 00:55:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652082928; cv=none; d=google.com; s=arc-20160816; b=Kvm3LoxQG6kGUwg3+46v9MSG0Ki8O1Y+pPZ3wMMWKsFCIxiTR9mwz2mbtNfEkdYZSY 6DOXQjkQHMCfzFf07CQa9WqmpwN3emLiPq9GENgJOkDj3IYRQ6/Yy6buzUrjrTsSuk69 6CEoftPVlhwBU3FliXcch9Ff06osQMIbFkCF29QnTokOcojeN8L/RjzaX1rWFSPRZr6k 7yaEaYx4b+I8Pp2wrhZtnZ2u4hF9Uos6jBdU+ExXNO0UA1m6qXejEFL0oSEH4nYC7Mlp dANE8Bk54KJWQW8VvfH3Cym97BBHkDhaxIyBQo/FtRiUgHZLNIQ5WpkBVS149VdSv1Ib tcig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=r+0eXxTJFr7Eeu/stTk14Wg14JlJEfdw0FO81Gf6QdI=; b=k2BNs0wHonvWHUAKyQAjgd+sIDVbxcwlfZUW4+pedtJBEwNHTWLMK9tzEUdu+PbO9k hdhaiFr7/MFHd7+CmFxZ9uwB1cPJ0Z/GWz5cocjB7XqDBa7+emwuJINoGFuL2+0a3oAw hRDZnHnKjN/eoavx1ZHb15OezHdB9ahphbPCxXdLhsHmUoftYGHqFmJzZOqvAtBxjzIl 75uDYTxCJ8WzjADbtUyakarZ7x8rSmcxeERZseJRHU7pqz8DGSvAqevhw8wNIdAQ6GAk EROhVx/t8860ETXzH1ZsL6JAXzsnmxr7dtUfrKTAoNW3MvSdttRAV7btbsMc0Jfjahj8 PQmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h10-20020a056a00230a00b0050aba90702dsi14762258pfh.324.2022.05.09.00.55.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 00:55:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D70417568A; Mon, 9 May 2022 00:48:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382049AbiEERSS (ORCPT + 99 others); Thu, 5 May 2022 13:18:18 -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: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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.