Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1889329rwb; Fri, 11 Nov 2022 01:46:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6GRnTXdgi40XDz0k+YQEqs9B1HtFJFOqGCLKe6L7Yb5TvGei9ppu1RJ5zP2ElP+Ezk2Bny X-Received: by 2002:a17:907:2904:b0:78d:8b9b:de8c with SMTP id eq4-20020a170907290400b0078d8b9bde8cmr1198050ejc.436.1668159962596; Fri, 11 Nov 2022 01:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668159962; cv=none; d=google.com; s=arc-20160816; b=uiUIJw0sTumVKjEiEQTJY8Dx5V4N7G7+PLIKBm94jQ3whTLcqcEPPb9oZ4MsrLXruc w8KXgBH70JJLaAPcz2fs9omz7emg3GEH38LCmeFFKuMtyxGaRMv+Ic5Z0SQfgMO9pZ4j CtqjVYJruq9Cps+1Mw1YQd/Loj7fssVPUTzlPQPKtTrduUboFj4v4B3Qds8wawivzMCA B3rC8PqmpBsQFDXdiZvo1esz1gcqq6/tHTW8y7eVf5gMvtHNo/QUsLH+7xzDTGH6BMT8 1zVDsC2LoVNU8xzZShNRWsLwsrN3HgUsBZiKoehn893AUAUe5w+uicK99J3V05YbuvUW S7lg== 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:dkim-signature; bh=7oiumkaMQQyjNkLGmwWCVHqqI/kjNBm/sKIgai8zho0=; b=tDfHt4KTDy2fcRhT4SyRe3PUF/NAi/WYN7H/gGa3/nuuY8Yh1VZaPnCHR8WwbCB73G V3Sg37FL9FE8gvgqjhzElLuI8Nc5WEeVud7zqYmV228KHdsNQClpusn0rGA5QlLxcr6y 6qWVvAbN7qG/cwBhArYN8fACmcgcC+AOIB6PhjXdXB0G/NdPPklAqdtNuq5P8OA31H1V glIY6ni8J2BuNzceCPCYqRMb5Ced51sQYFbu7nikHLs3t3QDJAU9QZOjiudlQIMdrfkw 2vtRmWtuYbsj2blsdOmAVmDsMQ3ZffSKsfOi2J7+giZy3UwkxATF7ZRgF8mbgu61Bbpv fNKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=RIl5sfLe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b6-20020a056402350600b0045154775089si1897921edd.625.2022.11.11.01.45.40; Fri, 11 Nov 2022 01:46:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=RIl5sfLe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233726AbiKKJCD (ORCPT + 92 others); Fri, 11 Nov 2022 04:02:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233644AbiKKJBX (ORCPT ); Fri, 11 Nov 2022 04:01:23 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1543E8B2C8; Fri, 11 Nov 2022 00:58:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=7oiumkaMQQyjNkLGmwWCVHqqI/kjNBm/sKIgai8zho0=; b=RIl5sfLe5Q1R3nPE1Rrribekjy hZ4m8leSCQvHZix6c5W/nIAOM5SI8Cyk/lNy6yBPK0ofeU2bqHxb2wiAepsE0UnEDhYfLJZ6vFZrk qJLueb0GtSsLMNio9xixR7UY/imyngrDYZkvu761CUnPK1Zpp0mH9WLyjCRVbYCRGEf25tBA1Dzjy kCo4W3H26zE+Z1VrrAO/mQpTzehz8tMej58JSRNRDXQE1BH3FXv8fpfGtGdwl6prgTPnJGHbxtKF4 fHUjT7/YGDnAQp7IUguWaLFXUrOn5jqrMiufAsbFyEJeKK88zBkQlgOkOhHWjyR6RkjabiPFaI2+A J11MwGIw==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1otPrh-00AYSs-DZ; Fri, 11 Nov 2022 08:58:21 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 6154C301BE3; Fri, 11 Nov 2022 09:58:20 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 47CEA20243A99; Fri, 11 Nov 2022 09:58:20 +0100 (CET) Date: Fri, 11 Nov 2022 09:58:20 +0100 From: Peter Zijlstra To: "Li, Xin3" Cc: "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "kvm@vger.kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" , "Christopherson,, Sean" , "pbonzini@redhat.com" , "Tian, Kevin" Subject: Re: [RESEND PATCH 2/6] x86/traps: add a system interrupt table for system interrupt dispatch Message-ID: References: <20221110061545.1531-1-xin3.li@intel.com> <20221110061545.1531-3-xin3.li@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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, Nov 10, 2022 at 08:36:30PM +0000, Li, Xin3 wrote: > > > > +#pragma GCC diagnostic push > > > > +#pragma GCC diagnostic ignored "-Wcast-function-type" > > > > > > How does this not break CFI ? > > > > I wasn't aware of it, will check. > > CFI needs $(cc-option,-fsanitize=kcfi), which, reported on LWN on Jun, 2002, > had not yet landed in the LLVM mainline (I'm using GCC). So looks we are > replying on people keeping an eye on it to make sure it's not broken? We're relying on that warning you disabled. > Even we are unable to test it now, we should find a solution. You can test this just fine. Build llvm.git and compile a kernel with CFI_CLANG=y. This is not hard, my ADL runs such a kernel as we speak.