Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4197905rwo; Tue, 25 Jul 2023 02:07:08 -0700 (PDT) X-Google-Smtp-Source: APBJJlGTQb7n4skauoN4dFFCUJf4aLcGu/wMmGgkTi4mbGfdkT+i09rNSHTs6Uy9CYq5SGRweSio X-Received: by 2002:a17:907:77d0:b0:98e:4c96:6e18 with SMTP id kz16-20020a17090777d000b0098e4c966e18mr11548590ejc.5.1690276028585; Tue, 25 Jul 2023 02:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690276028; cv=none; d=google.com; s=arc-20160816; b=x6FnQVKDHAHeGDx4eO3CGcEHtnEykZjCgLOjpsQxdukmM4N6izt3WwBq+wwaaKNdS2 NXyaBDaXB74cYRUTWzAxvixDBS8/z9Ax+D8jaTNEeAfCQuoNQMjiriVFsiqntMFlQ2wA YfsCClIBqT1bSDt9Jn+3ID3gl4xP77So9MgrtbGuk6aSBXY241t6TCBOxcNPyJRq+IEk YyXX6revSFRIhYIA6iPNyoxtyPzhWB/AKMcfB0KX2r9MdUfer8cVSUZe5dkXj6gczp6m t7QAs/B1P+8a7JDvTRQE26WeHzvMl8DhI6FPgpEdqdYqcU2uK8FZQrhCIOPaW48NVYRL g5aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=opHsN+ilojB5Hmes2tw+9ZKYM6bAxlFh8QxDTW7ULdw=; fh=lcXKo0NRrUXZg/5xK5FQthl2JcV2SVZShbwn9PnLCCI=; b=pfEydnhGYKjtHSx+HlYLK/vPzbU0U0lGAwqTQeuajobgN6oRGNRburnJClMnZCtDXp /pYRRLncrM4XjYy10i+IKAd5D3JbNhviykr9vsBSqjSGNGtY0VBEm06wDd2OGgGBfkMj 5Jd52WR4/5x+gDsnDoRjOvrh+bA3f0gUSGBUOuwZPnBPh+//wMws4GRpRFoDKmm6Pbax kzrG7fA6OfZvOonzCtMI10jCKizh6a24FfID2lC2XznBs4/V3vD/uNCqYj5ZnETBpFQy kbfl103Cbm2rphDNe+CDt/i51Dgh1bXZhOTVtC+/4v8QmMqAChoKxjiKwEq5QdexGjO+ al1Q== 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: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 a8-20020a170906244800b009980c2658desi7504408ejb.76.2023.07.25.02.06.42; Tue, 25 Jul 2023 02:07:08 -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; 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 S229683AbjGYItO (ORCPT + 99 others); Tue, 25 Jul 2023 04:49:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231578AbjGYIr3 (ORCPT ); Tue, 25 Jul 2023 04:47:29 -0400 Received: from frasgout12.his.huawei.com (unknown [14.137.139.154]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 876DF10F4 for ; Tue, 25 Jul 2023 01:45:54 -0700 (PDT) Received: from mail02.huawei.com (unknown [172.18.147.229]) by frasgout12.his.huawei.com (SkyGuard) with ESMTP id 4R99Hd5P9wz9xtSH for ; Tue, 25 Jul 2023 16:31:57 +0800 (CST) Received: from A2101119013HW2.china.huawei.com (unknown [10.48.128.235]) by APP2 (Coremail) with SMTP id GxC2BwB3Ijlwi79kXB38BA--.63760S2; Tue, 25 Jul 2023 09:44:43 +0100 (CET) From: Petr Tesarik To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Conor Dooley , Li Huafei , Liao Chang , Masahiro Yamada , Alyssa Ross , Nick Desaulniers , Ricardo Ribalda , Kees Cook , Heiko Stuebner , Li Zhengyu , linux-riscv@lists.infradead.org (open list:RISC-V ARCHITECTURE), linux-kernel@vger.kernel.org (open list) Cc: Roberto Sassu , petr@tesarici.cz Subject: [PATCH v1 0/3] RISC-V: Fix a few kexec_file_load(2) failures Date: Tue, 25 Jul 2023 10:44:24 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: GxC2BwB3Ijlwi79kXB38BA--.63760S2 X-Coremail-Antispam: 1UD129KBjvdXoWruw1fGr48Cw17uFW3XFWrKrg_yoW3AFbEgF W8trZYqr1UtFn8XFZrKw4FqFW0krs5tFyjgwn8trW7t34UWry5Z3ZY9Fn2vr1UZrZ3W3sx ZrZ8Zr95Jr17tjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbh8FF20E14v26ryj6rWUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr1j6F 4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUGVWUXwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628v n2kIc2xKxwCY1x0262kKe7AKxVWUtVW8ZwCY1x0264kExVAvwVAq07x20xyl42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r4a6rW5MIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE 42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87 Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUnF4iUUUUU X-CM-SenderInfo: hshw23xhvd2x3n6k3tpzhluzxrxghudrp/ X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KHOP_HELO_FCRDNS, MAY_BE_FORGED,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,RDNS_DYNAMIC, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: Petr Tesarik The kexec_file_load(2) syscall does not work at least in some kernel builds. For details see the relevant section in this blog post: https://sigillatum.tesarici.cz/2023-07-21-state-of-riscv64-kdump.html This patch series handles additional relocation types and removes the need to implement a Global Offset Table (GOT) for the purgatory. Petr Tesarik (2): riscv/kexec: handle R_RISCV_ADD16 and R_RISCV_SUB16 relocation types riscv/purgatory: do not link with string.o Torsten Duwe (1): riscv/kexec: handle R_RISCV_CALL_PLT relocation type arch/riscv/kernel/elf_kexec.c | 7 +++++++ arch/riscv/purgatory/Makefile | 9 +-------- 2 files changed, 8 insertions(+), 8 deletions(-) -- 2.25.1