Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1510734rwl; Fri, 31 Mar 2023 12:16:01 -0700 (PDT) X-Google-Smtp-Source: AKy350aStNwp3RCL7OFJO3n+ny0UJ+nIwRhB2eZOazAT7ppaEDsozYohqc5e8Zd12cdlGB662hsT X-Received: by 2002:a05:6402:40d6:b0:502:367:d5b8 with SMTP id z22-20020a05640240d600b005020367d5b8mr7856843edb.4.1680290161534; Fri, 31 Mar 2023 12:16:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680290161; cv=none; d=google.com; s=arc-20160816; b=fFE6nQ434l/eNZyK9CpnSFWL8xOKyO98zU4iBiSM5jDvd0MMzH/qY/4nUai2cg/KZT 7qVUajDHhx/q+4gXQiKc3f+9XS3X+RJlT0Bracu1mh9j10Z5pDlqeOT01+tPtkflZKdF oC9UzVf7HJPxu2Fq8Z7z4arvWb0vAx4p6yjuwPmarvGU3VvbgAI0bZPoWIiXLb6vOlHI Q/HkC6EiIuKKikaYmCMGplQB2jDNfJIMwK+gobd4nOJmvccaTmY9KDsW7K1z2CajOfwx MSLZ1coaiJRd+zaky+jX7QqJ/d/J3ipjr0xW/J11AocwE4hE8TbR2yHd/LrSrmBszRJI qgMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ALvPQ0lvXfU1ZD+A8cxck5Tc9fxTqWODUs7CWJgNDZI=; b=UaV0ozL251k+bxKgCVRTSuFLExygDdi0975iH3ZubhNhdyTCSLiXYf1fOxZ9kz//0k sKBfu80BQ+vxNkzctHirFLVJV446aeTElKADRbLOpVxGOIXDZ4xBe95iPYgDFmjiiUyi NNVFgJxc5k7bn8gzKxDsncO+cWY0OB/fLrHHaIzVgJ8HFoHav4py2f1O1JGniMZDQO5G ZTNSezUvFnhvOK1Kb/WMSiX5H+pcgyOjLXDw+Vc/mP3OrCTRqxWh0ZjSmNDZ1dYNnXkD rSd54KROkW3/mik/m64pDlh5ibwaRbUWyalRa/gnwdBs09SOOlYlOnuV89TVbWAbnLao pJQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HDYTQoSJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u9-20020a170906408900b0093330a0fc5asi710728ejj.447.2023.03.31.12.15.37; Fri, 31 Mar 2023 12:16:01 -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=@kernel.org header.s=k20201202 header.b=HDYTQoSJ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231476AbjCaTOl (ORCPT + 99 others); Fri, 31 Mar 2023 15:14:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230336AbjCaTOk (ORCPT ); Fri, 31 Mar 2023 15:14:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FCF022EB4 for ; Fri, 31 Mar 2023 12:14:09 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 407B9B831EB for ; Fri, 31 Mar 2023 19:14:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E60BC433EF for ; Fri, 31 Mar 2023 19:14:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680290047; bh=/CfZt4OxuWD1DSgb/0vFAV/hFLZFC/08ki8yZZJNyGQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=HDYTQoSJjAdKe4gL5JgY46rfh7x/dEe470GRbfoSawYRHwO7E+9Rn1lZF2waARMJ0 XeIkTmESGJDmtvVo0wdcGjQVD80l9098Zo9KX7pHVG0wdbJlVHeyRLttvv1VfJVSj7 kk+d5UUyl0WbvRvxw0Wp+KhpDeW6hD8TDwmlj+1iVd0RktH8yGGHW2/buL+yY78iux 2+R+TGsP1lxjx7RLvgFPKN7SG3aukZXUI+DJDu0mbsMg4RABuF3SToYY6jH6Nc6XK/ O0lI8mStDVJigdO1CX0NTNdfy3eyViTaN3kY3AsAVxituL0YMaq5nGo18oPNzxkfQH WkjmXIviL3pDg== Received: by mail-pj1-f42.google.com with SMTP id qe8-20020a17090b4f8800b0023f07253a2cso24392313pjb.3 for ; Fri, 31 Mar 2023 12:14:07 -0700 (PDT) X-Gm-Message-State: AAQBX9feCF6VOXsWdz05vlloS+YMHnO+sGVmWEm063K8tKM0h5RnQVEc uIq4APrw5CGgsoJVskW+4WuvbFZF8PRx/KqRYHJxuA== X-Received: by 2002:a17:903:1105:b0:1a2:8870:5ba2 with SMTP id n5-20020a170903110500b001a288705ba2mr2674034plh.10.1680290046470; Fri, 31 Mar 2023 12:14:06 -0700 (PDT) MIME-Version: 1.0 References: <20230321-kexec_clang16-v5-0-5563bf7c4173@chromium.org> <20230321-kexec_clang16-v5-2-5563bf7c4173@chromium.org> In-Reply-To: <20230321-kexec_clang16-v5-2-5563bf7c4173@chromium.org> From: Ross Zwisler Date: Fri, 31 Mar 2023 13:13:55 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 2/2] x86/purgatory: Add linker script To: Ricardo Ribalda Cc: Eric Biederman , Baoquan He , Philipp Rudo , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Steven Rostedt , Simon Horman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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, Mar 30, 2023 at 3:45=E2=80=AFAM Ricardo Ribalda wrote: > Make sure that the .text section is not divided in multiple overlapping > sections. This is not supported by kexec_file. How does this interact with patch #1 from this series, which IIUC allows us to handle the case where the .text section is split between .text and .text.hot? Do we still need that patch, but only for non-x86 platforms? Or do we need both, and this patch will need to be replicated for other arches?