Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2286602rwr; Fri, 28 Apr 2023 08:24:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73i/S3pJ1AHcF4IoKIw/EjEl1lWwZfeU/K9waLYtIR6z//b6jE8+CEF08El3I6xFBA8U7T X-Received: by 2002:a17:90b:196:b0:24b:8b80:ae7a with SMTP id t22-20020a17090b019600b0024b8b80ae7amr5756573pjs.16.1682695491553; Fri, 28 Apr 2023 08:24:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682695491; cv=none; d=google.com; s=arc-20160816; b=tw2fseMbj+92oxzjGa/C4vcPzXzYir33oy0xBetI0nlygKqirOuh6zQtDyaLwy9onR 8wyb8lB/ELrxVh0l8ouLSG26IbCl6rfM5wGh+JVFfJnTAi0EqK4hLS2pCwHArwBLgZqi k42D24kHmOcRLoKou3Q8fvqCL4jc7O9PLMM8Znodtqr4bSj28mvTdiP7oiQD7QYFBu80 iZSYic5lVDr+ylzkejDJf9Kr3vemZPL+CpvY0yPZ/klX3F+oBtg0c5U5J3X8UBPEhxZz C6Nv0ntqwvRs0RdN5uvux7GZdT3DrHm3GH4XQND7YYsyg+1fWy2y/SxKMUIBKXPPQeuM dzPQ== 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=ObFqb5BDmMg75VURSfwaRS1WNbglIFkai9QniJhx8m4=; b=YwFRVO0I6JpJCl8yV+32DUO4v7Zn65t0QuilG+wbmv9vJlhPGbTCzrqMhAQfPGLTLr 6A68UxZfprL2uG/MqbqbH4bgxVFHZHBYj9VNVqQ4s8t+OigGSo44InMyOUpswv5aVI7W 6ooz5KTZd8JvZg7OPeh/8OCuFIZj0JNrfOxIXzwsAHms4gIWsijPqsYwFDXzA75wuyge WpdLCOipzi7dqwGhiEsbKf/RbnU/yirpjr/+xO09CQ2X7R6FZhwc4mp4uv5EibyLpo5C Cm2iiPgLUpXnGPtNqui6oepPkzM3e/+U8G3Otr2qdC7LrRanZONGEpdsyb+LrUKkh9xV /cjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=ofjldNKG; 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 p18-20020a17090b011200b0024695095bb3si8415567pjz.189.2023.04.28.08.24.38; Fri, 28 Apr 2023 08:24:51 -0700 (PDT) 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=ofjldNKG; 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 S1346387AbjD1PW2 (ORCPT + 99 others); Fri, 28 Apr 2023 11:22:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346355AbjD1PWY (ORCPT ); Fri, 28 Apr 2023 11:22:24 -0400 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 1320435B8; Fri, 28 Apr 2023 08:22:22 -0700 (PDT) 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=ObFqb5BDmMg75VURSfwaRS1WNbglIFkai9QniJhx8m4=; b=ofjldNKGNAboYyyizE5X9fXe5v ZECX/MjUW9VZAnH4i5cPG6ZPlfJx697aSrS+hW4+MQWrz2GaGJTNZKGfTGwzeBzQq80A2egcmtHsv 1mghY2IwxRhk038jLeuk5gwgxYf15Iaw49O745UNZE2t4bGiI825VZGO9S/v5wfHTWUa/9hTuSc5y tagA/JI7fEIkjL1A+DqDsFvSCYBt46XQWLecSNBxX4U/NWIVg+4Ar2IlulvFY2/NEF1VbeFgDaYn0 U8jheldPF/YoLurtIZslA5NOInjPl4yJn3GIDfJRHFh/o0gt2mp+fq7dvbTSmQbBrSkY8w/hebDrp ksbCQpJQ==; 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.96 #2 (Red Hat Linux)) id 1psPvD-00DMsj-1Q; Fri, 28 Apr 2023 15:22:07 +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 CC5DD300300; Fri, 28 Apr 2023 17:22:06 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B34A732220BBA; Fri, 28 Apr 2023 17:22:06 +0200 (CEST) Date: Fri, 28 Apr 2023 17:22:06 +0200 From: Peter Zijlstra To: Hou Wenlong Cc: linux-kernel@vger.kernel.org, Thomas Garnier , Lai Jiangshan , Kees Cook , Nathan Chancellor , Nick Desaulniers , Tom Rix , bpf@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH RFC 00/43] x86/pie: Make kernel image's virtual address flexible Message-ID: <20230428152206.GA1464060@hirez.programming.kicks-ass.net> References: 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 For some raison I didn't get 0/n but did get all of the others. Please keep your Cc list consistent. On Fri, Apr 28, 2023 at 05:50:40PM +0800, Hou Wenlong wrote: > - It is not allowed to reference global variables in an alternative > section since RIP-relative addressing is not fixed in > apply_alternatives(). Fortunately, all disallowed relocations in the > alternative section can be captured by objtool. I believe that this > issue can also be fixed by using objtool. https://lkml.kernel.org/r/Y9py2a5Xw0xbB8ou@hirez.programming.kicks-ass.net