From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=113.46.200.220 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793865904; b=EelSuZ+Ls5PA5YOJ347cVddaYPXuJSQjJQbWM6vHLog0eEFuDl6tFNjAxiihfq7CocUB x5JkJlPW4bXSDNc+Hdhkjz0sfrrTFLzaOCAnwiKU1Dqolcdbtqne/fvmSTub4eaaaP6yl wCmacVuspAvhlaNCMPeXtMBnpFe13cEd1aFUogPr/bq4/okfXxyBTrvkNAaX4GNz6x+AC 0IXEtMCmIrThyNPcv+hQ6ATcwVzPqQS28p1MEtMFrKOdyhTPmw+wEPAKUN2/zku8h+uAe dzMqbJ4pGwsqUoB0kM/x9UjsUCNrnFM4/NPomKU+ZnmoSCXo9Rm4dLLuotaQUA+2bgw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793865904; h=DMARC-Filter:dkim-signature:Received:Received:Received:Message-ID: Date:MIME-Version:User-Agent:Subject:To:CC:References:From: In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Originating-IP: X-ClientProxiedBy; bh=CCGzWBfX1X9cSsHPu2mqWEF8NpNHLDATFqyNNjfsFkw=; b=oShRkFYcns1o181X0Jt7c8Ui7p38bq6evwdSJSsfpbEwHpaBthzqwjOgLiSwEktsCVp2 1A40laXNpUkEjK8qjgU0NnVP936or5sb8r9PM9+uLrgyUT+kX2+MrEWNQjn4z+icbssIq 373eAtbeptarZaCjGmKGHk3J94HFrqzCQ4f22s5g414ECNFLIQhsplQqVk0e8BTZiSZLY 8F56VHnc9SyAQCaRUBPc0NiZcI/1C8cWbMZo0dQBI9tVQ/ITRtQZ7idKfBGiYrw4Lkbnu iS67eux4j08YbHu/6p9kYlyKnOKF0QIVipb8OPCIDbm0DJqaY9rmSFkhDNFrkdRapNA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256 header.s=dkim header.b=3Lj0XuRp; arc=none smtp.remote-ip=113.46.200.220 Received: from canpmsgout05.his.huawei.com (canpmsgout05.his.huawei.com [113.46.200.220]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E11DC606A328 for ; Thu, 5 Nov 2026 08:05:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E11DC606A328 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=huawei.com header.i=@huawei.com header.a=rsa-sha256 header.s=dkim header.b=3Lj0XuRp dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=CCGzWBfX1X9cSsHPu2mqWEF8NpNHLDATFqyNNjfsFkw=; b=3Lj0XuRpdOCEztpedA6GSSl5x4O4JddmtxEbTLNoJlR2C54wDBW8jorT/6aOBic8BqPVyewSl x8e38gtEwgurpOUkkDhNyzVD/e6X4ayKuii44trLaEH0J0I7w9kRCxr2qDXmrth0z2EzyiGCtdk TbamYBpLt/lj+b5ImptgI7A= Received: from mail.maildlp.com (unknown [172.19.163.104]) by canpmsgout05.his.huawei.com (SkyGuard) with ESMTPS id 4jKvx71hllz12LDh; Thu, 5 Nov 2026 16:04:59 +0800 (CST) Received: from kwepemk200008.china.huawei.com (unknown [7.202.194.74]) by mail.maildlp.com (Postfix) with ESMTPS id D2F8E4057F; Thu, 5 Nov 2026 16:04:57 +0800 (CST) Received: from [10.67.110.68] (10.67.110.68) by kwepemk200008.china.huawei.com (7.202.194.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.45; Thu, 5 Nov 2026 16:04:56 +0800 Message-ID: <2db15115-a06a-48ba-86a2-9a343f1e2a2b@huawei.com> Date: Thu, 5 Nov 2026 16:04:55 +0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 00/15] kexec: Fix CMA and elf header leaks and rework To: Mike Rapoport CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20261026075201.699550-1-ruanjinjie@huawei.com> <179380419709.28814.2122135856184991710.b4-review@b4> <932cdfda-7030-4829-8b43-062d208450e4@huawei.com> From: Jinjie Ruan In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: kwepems100001.china.huawei.com (7.221.188.238) To kwepemk200008.china.huawei.com (7.202.194.74) 在 2026/11/5 15:52, Mike Rapoport 写道: > On Thu, Nov 05, 2026 at 11:45:39AM +0800, Jinjie Ruan wrote: >> 在 2026/11/4 22:56, Mike Rapoport 写道: >> >>>> Patches 8-10 pass the kbuf fields to crash_prepare_headers() to >>>> simplfy code. >>>> >>>> Patch 11 frees the elf core header from the generic post-load cleanup. >>>> >>>> Patches 12-15 add kexec_load_other_segments() and convert the three >>>> architectures, and arch_kexec_setup_other_segments() builds >>>> the architecture specific boot parameters (a DTB or a command line). >>> >>> I think the refactoring should go before the identical fixes in arch/ >>> code. >> >> However, this will cause trouble for the fix patch in the stable round. > > That's right, but since actual fixes anyway require changes to kexec core, > I think it's better to refactor first. The core than will take care of > proper freeing in the most cases. This way, each architecture doesn't have to worry about the issue of incomplete resource release. > > And since CMA support in kexec is quite new I think the entire set can be > backported to stable then. Make sense for me. > > I'm planning to have a closer look at the refactoring Really Soon :) Thank you very much! Looking forward to your review. > >> -- >> Best regards, >> Jinjie >> > -- Best regards, Jinjie