Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2668370rwr; Fri, 21 Apr 2023 12:06:35 -0700 (PDT) X-Google-Smtp-Source: AKy350ZVH8msOcoNtRzR9S6np40UjCC6N+eva4nmxQmQvDUWTSmjM7iq7QAtvDYI/EILo0Xe9C5+ X-Received: by 2002:a17:90a:1a53:b0:242:d8e6:7b68 with SMTP id 19-20020a17090a1a5300b00242d8e67b68mr5385819pjl.1.1682103995346; Fri, 21 Apr 2023 12:06:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682103995; cv=none; d=google.com; s=arc-20160816; b=nQuOolusJmMB8XVE1TaMIRw6htkR7I6dImeuYoxFePgJBql6Wqyz58StYbfDUz3f5p zhiAYgqTSKt2r44TtmJYHZJkaI5YtDMrF4sKU8iHLq7HIU0Ttc8BLVm2ykG6JAsjlJ57 1AhywXN/YwfRbbuMbIOKnsNgo4RAp4CzvoThyMx0A6I7rzojLUQ7ACYWo5TPe6aVaxlK 37Yrf8V/dOpCQ53RVgFjqcMMpvA7++x9iufLjuceEzkTHidF8AROB6MDRJOVl0rUnmyU hIViifwow3M7PY4jShAi6umj/++va42VMdbeGk7l6AKESQMJ2RohwxY0CvhbW19Ie8no yTUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:content-transfer-encoding:mime-version :date:message-id:subject:references:in-reply-to:dkim-signature; bh=2+EQ/x793Jnsa/kqgXiOJb3p0eah7oFJhucKW106Kl8=; b=HcACXVH2DWbYYrgYSMFIljl8OsTv6FVFcy/iab0MRR8tMzTVHsRCSdSo3NxTFhrGVC ahHYc8nr7yfJrsHRv+SKKBFan4AD1jR62xvfRiFhvDVmn3e5hX1Tc9K915qJ5nBBgraA 3Qk9mKT50nY2UaLBa4ClCL7sIJxyu8VSVlxSuXN7Skldj0O+T7wNAUNJDsg2yrG1lgCZ xE1xEWX3mQSms9z4IbLO03oa+qqu0y4pduJ3eIdzmumnlnBN4/1hBhtR0QfSwHa3ZXej MM0ALSLZ987QiGv+M1mADrpEchLlI482S975HF0nTtb8sysr5+qBnrQYPtDFEkdDJcb2 rCMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=bQyblJRy; 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 ls4-20020a17090b350400b0024988ecf25bsi8438012pjb.86.2023.04.21.12.06.24; Fri, 21 Apr 2023 12:06:35 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=bQyblJRy; 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 S233436AbjDUS7i (ORCPT + 99 others); Fri, 21 Apr 2023 14:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233411AbjDUS7d (ORCPT ); Fri, 21 Apr 2023 14:59:33 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C80C2D71 for ; Fri, 21 Apr 2023 11:59:25 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-63b35789313so1925542b3a.3 for ; Fri, 21 Apr 2023 11:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1682103565; x=1684695565; h=to:from:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:from:to:cc:subject:date:message-id :reply-to; bh=2+EQ/x793Jnsa/kqgXiOJb3p0eah7oFJhucKW106Kl8=; b=bQyblJRyAvGuTLy7qPVklUSkkntz5faFsanTHGL8+W8tK7sfMyp8tTFo7QvA60d/UW JEVIbrj/vr3OdOv4W9eGM7+H99bBq3vk1HvaueHNN8TyjPI4bOlC4yFpFniBEltfCK9S a6SfS4IlzcbdMqiaWhNrZLZmlaZqp4ZX/MOCweDAHIH82q5DvegmFZF/rOG4iBUrgJsE /l8K3CJ6JeYhfbZwImHI9bK8nzBZfU1X6YjlosZiMF9YRwLusS1aYk1zweTU7guN0tR9 KqgXJegycYDF46jiq+R0uNxxQcgUvLwrsKvS97bTmxb6phciqD3Mj/Su/ExzkZSsuk7e 5pVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682103565; x=1684695565; h=to:from:content-transfer-encoding:mime-version:date:message-id :subject:references:in-reply-to:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2+EQ/x793Jnsa/kqgXiOJb3p0eah7oFJhucKW106Kl8=; b=cbRjgg0eUqchrkg0uKFipHbEnOl6gCCZJ5ZZUNy+I9PDALzQRc9jBg+sF23HHkzP/t +2l4ggzf1lVRT+Lc9klfmHyxqQJGVA5Ico96BWEORItcWDNV5TpEIix3f161BFYCzpRT 1Hz3xitC9B64fezgFNQUqr2sS2VgHNpRIl7pJzCq/+a28l6caKU0M/FjitAmcJPn0ULU DVuo4z1l9T86cC1UjILhND0W1unuMhpxFP7LLLTxMlnuUq2TTi6JYD1w2ixLBB+6E4/L 8nNCNjAbw6mRjP2Wgypdb3lzdV+XRSo2jrN3wTolJYepZgCOFW5V6C8vQjO6tczwoPRj iMtQ== X-Gm-Message-State: AAQBX9cBjbQj0HgYkloXL5oZvrVZnfz3kz/5T5NqpxyYDEmLtd1XURg9 k1aCbtLw0skxX83HqBRyPKYOIg== X-Received: by 2002:a05:6a00:13a6:b0:63f:ec9:bc9a with SMTP id t38-20020a056a0013a600b0063f0ec9bc9amr7724187pfg.20.1682103564695; Fri, 21 Apr 2023 11:59:24 -0700 (PDT) Received: from localhost ([135.180.227.0]) by smtp.gmail.com with ESMTPSA id h69-20020a628348000000b0063db25e140bsm3299248pfe.32.2023.04.21.11.59.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Apr 2023 11:59:24 -0700 (PDT) In-Reply-To: <20230329045329.64565-1-alexghiti@rivosinc.com> References: <20230329045329.64565-1-alexghiti@rivosinc.com> Subject: Re: [PATCH v9 0/6] Introduce 64b relocatable kernel Message-Id: <168191616325.7488.14079862095622576679.b4-ty@rivosinc.com> Date: Wed, 19 Apr 2023 07:56:03 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.13-dev-901c5 From: Palmer Dabbelt To: Nick Desaulniers , =C3=B6rn_T=C3=B6pel?= , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kbuild@vger.kernel.org, Alexandre Ghiti X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Wed, 29 Mar 2023 06:53:23 +0200, Alexandre Ghiti wrote: > After multiple attempts, this patchset is now based on the fact that the > 64b kernel mapping was moved outside the linear mapping. > > The first patch allows to build relocatable kernels but is not selected > by default. That patch is a requirement for KASLR. > The second and third patches take advantage of an already existing powerpc > script that checks relocations at compile-time, and uses it for riscv. > > [...] Applied, thanks! [1/6] riscv: Prepare EFI header for relocatable kernels https://git.kernel.org/palmer/c/55de1e4ad43b [2/6] riscv: Move .rela.dyn outside of init to avoid empty relocations https://git.kernel.org/palmer/c/69a90d2fe107 [3/6] riscv: Introduce CONFIG_RELOCATABLE https://git.kernel.org/palmer/c/39b33072941f [4/6] powerpc: Move script to check relocations at compile time in scripts/ https://git.kernel.org/palmer/c/47981b5cc687 [5/6] riscv: Check relocations at compile time https://git.kernel.org/palmer/c/c2dea0bc5339 [6/6] riscv: Use --emit-relocs in order to move .rela.dyn in init https://git.kernel.org/palmer/c/559d1e45a16d Best regards, -- Palmer Dabbelt