From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=113.46.200.226 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1792486423; b=D4KdeUB8m8TmiDBBmoVJhCMSmzwxqcWMIqKpbGu9LzbN7o+ro45JI1tzn0K1hq3aLSfc J9DMGsLzyDJ3DxAIkvV+D9q2sRq4p6dOUX4MWIqsO2Cc9tn3/tep5dysA8ISiiBb2MkH0 LpFVB+vKyjjSSYLBy5ElXJq/fVPYyKWY99voM5ovGfyGK0JIbxedilMRzYCsx5bTc+W1D AcHyYjgBlEdkLNqng9ZOWTCP29WtKdzfTr70X0zxLvAMtTtxdMw+gkC/K3bG1H2qX0K7U nNJv/5+8nH8VlPXfuzO5llcYZQ8Lc8DwsQ1eMwB93r+IFYGXM3Rac1ktEo/lUNBl5Iw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792486423; 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=LW2Z/J5kgMKXP1MQQy5oBk/GKxhYgHES/KC5diFwAwA=; b=xRDsyhB3f3bzk5mPVsNOTXaRJQB/U/kkGL1UplSM7A1Z/dCSSWAcAWhNmpOxFeI4KgoM Ar2/wK73V8rEsKtarfpnM3USy7DIg/OrW1NcDTt6PLDkZNFQpGTk2pyGcn7ppa+q3jQCE JDOWvwSAhE5PVWf+myjkG9Yko/z1Y49p+4rud+QHFjjhU10WJzTUxRl6PcNOAkBpjVbfa FwkCI0tXTyk0YTtfzD45IjhAR2m2cTqF1nyM42FfP3rjA8XnIWm5bH6t+mhp6s9NkVLEw 03ni/I6Xmret1FYm9OisSd7VLrSJh4KOmGvEH+DW+2XIPvpNlUB40+6C0Xb3ux9z2vg== 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=NbsVxKtA; arc=none smtp.remote-ip=113.46.200.226 Received: from canpmsgout11.his.huawei.com (canpmsgout11.his.huawei.com [113.46.200.226]) (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 34A95606A319 for ; Tue, 20 Oct 2026 08:53:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 34A95606A319 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=NbsVxKtA dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=LW2Z/J5kgMKXP1MQQy5oBk/GKxhYgHES/KC5diFwAwA=; b=NbsVxKtA29oXvQv/BfIHkDIBuquaJ8mOke66Zav3POdMVfniAavgzeyYLX4KFePFgCEEiAP8V LAWFJMvvXYYOUMp0DrjKbjReXkvW9nAjpeYca8UmdFdXPeU0CXN+17VXYoRs37XNl+P0MKp1FNZ OM4Cc0ebyyVRcrXWBmTXElY= Received: from mail.maildlp.com (unknown [172.19.162.92]) by canpmsgout11.his.huawei.com (SkyGuard) with ESMTPS id 4j85mQ36FBzKm5F; Tue, 20 Oct 2026 16:53:26 +0800 (CST) Received: from kwepemk200008.china.huawei.com (unknown [7.202.194.74]) by mail.maildlp.com (Postfix) with ESMTPS id 701724058A; Tue, 20 Oct 2026 16:53:30 +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; Tue, 20 Oct 2026 16:53:28 +0800 Message-ID: Date: Tue, 20 Oct 2026 16:53:27 +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 v6 00/14] crash: Fix several bugs To: Mike Rapoport CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , References: <20260921090450.807575-1-ruanjinjie@huawei.com> <179248377975.302547.11812783408034710690.b4-review@b4> From: Jinjie Ruan In-Reply-To: <179248377975.302547.11812783408034710690.b4-review@b4> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: kwepems500002.china.huawei.com (7.221.188.17) To kwepemk200008.china.huawei.com (7.202.194.74) 在 2026/10/20 16:09, Mike Rapoport 写道: > Hi Jinjie, > > Sorry for the delay, it's been really busy time for me. Hi Mike, Thank you for the feedback, and no problem at all for the delay. > >> As Baoquan and Catalin suggested, this patch set fixes >> several pre-existing code issues found by Sashiko AI [1][2][3]. >> >> The major improvements and fixes included in this series are: >> - Fix several memory leaks for arm64, and similar issues on LoongArch >> - Fix out-of-bounds write on 32-bit Highmem for x86. >> - Fix TOCTOU race in crash memory range collection. > > It feels like these are three independent series, maybe with slight > dependencies because they touch related code, but it's not really a > single series: Ok, will split this into three independent patch series. > >> Jinjie Ruan (14): >> kexec: Fix CMA segment address translation with non-zero text_offset >> kexec: Record allocated CMA pages to fix release size mismatch >> kexec: Extract kexec_free_segment_cma() from kimage_free_cma() >> arm64: kexec_file: Fix CMA page leaks in segment placement retry loops >> arm64: kexec_file: Fix elf_headers memory leak in retry loop >> LoongArch: kexec_file: Fix CMA page leaks in segment placement retry >> loops >> LoongArch: kexec_file: Fix elf_headers memory leak in retry loop > > The very similar commits for arm64 and LoongArch imply that that we have > some code duplication that should be addressed regardless of these Will clean up the duplicated code in generic kexec first, and then fix the bugs. > fixes. > -- Best regards, Jinjie