Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 738143D86 for ; Fri, 28 Apr 2023 15:22:19 +0000 (UTC) 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: Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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