From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4CDF5D1266D for ; Wed, 3 Dec 2025 08:06:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=T7ea7CjgqP5nfnCXT5mMuU8byi9zvzDvcLNxH8zi7UU=; b=NlulApARU56iXenhNJEYkDMBm0 xc3uXlDjMNJTaIgPS8ooEFnMeCifaheiiCL7oFyvjGzk/2SYvg4qbJafQZfbvWHZdZj5rreMd3jWW QALk72NkqKgi6GtxAk1KbKGpjTmOn6vKVW0zulu5FJ+1rI/fX5MqaoyDEQ6k6Wu+AEjvMmCC3zr6f CIN6jmxEZ0hp5TRc6r/ahdDvR1ToPZWL9kKjc4p9pCXtHQ/aSrEIN9CyVEHII2Z0C57TQ4Co0+f9R x8Y+tdutpFqb1JjL/q9o9kK0hGVzuVQIZAyMge80mFNokj7zUudof2OMRh5mgF3f8lVmdfT4lpF4t +XY94pSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vQhsp-00000006HeZ-3v9k; Wed, 03 Dec 2025 08:06:43 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vQhso-00000006He5-0nRQ for kexec@lists.infradead.org; Wed, 03 Dec 2025 08:06:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764749200; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=T7ea7CjgqP5nfnCXT5mMuU8byi9zvzDvcLNxH8zi7UU=; b=VQc8dMZberl2s67C05899FyHhzx+mEvqjzYV7/oqw1TXlPPKSw4wlXrHu7lbG0+7/As5nR uQTwPiVDITfnzYLrKbcgAHN89XfOB+qqV1Ys5yC95AUGTFkLT5NR6uXM3OFlBrnYnbWuat Zh/TzXevhGZO1yZU4uB/8dQBOU6Ol/A= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-17-u3VEo25bMmeBBT0lp6zryQ-1; Wed, 03 Dec 2025 03:06:36 -0500 X-MC-Unique: u3VEo25bMmeBBT0lp6zryQ-1 X-Mimecast-MFC-AGG-ID: u3VEo25bMmeBBT0lp6zryQ_1764749195 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 527F81955E7F; Wed, 3 Dec 2025 08:06:34 +0000 (UTC) Received: from localhost (unknown [10.72.112.62]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1ADBE30001A5; Wed, 3 Dec 2025 08:06:32 +0000 (UTC) Date: Wed, 3 Dec 2025 16:06:28 +0800 From: Baoquan He To: Pingfan Liu Cc: kexec@lists.infradead.org, linux-integrity@vger.kernel.org, Andrew Morton , Mimi Zohar , Roberto Sassu , Alexander Graf , Steven Chen , stable@vger.kernel.org Subject: Re: [PATCHv2 1/2] kernel/kexec: Change the prototype of kimage_map_segment() Message-ID: References: <20251106065904.10772-1-piliu@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251203_000642_310550_660E6C9B X-CRM114-Status: GOOD ( 24.09 ) X-BeenThere: kexec@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "kexec" Errors-To: kexec-bounces+kexec=archiver.kernel.org@lists.infradead.org On 12/03/25 at 12:22pm, Pingfan Liu wrote: > Hi Baoquan, > > On Wed, Nov 26, 2025 at 9:10 AM Baoquan He wrote: > > > > Hi Pingfan, > > > > On 11/06/25 at 02:59pm, Pingfan Liu wrote: > > > The kexec segment index will be required to extract the corresponding > > > information for that segment in kimage_map_segment(). Additionally, > > > kexec_segment already holds the kexec relocation destination address and > > > size. Therefore, the prototype of kimage_map_segment() can be changed. > > > > Because no cover letter, I just reply here. > > > > I am testing code of (tag: next-20251125, next/master) on arm64 system. > > I saw your two patches are already in there. When I used kexec reboot > > as below, I still got the warning message during ima_kexec_post_load() > > invocation. > > > > ==================== > > kexec -d -l /boot/vmlinuz-6.18.0-rc7-next-20251125 --initrd /boot/initramfs-6.18.0-rc7-next-20251125.img --reuse-cmdline > > ==================== > > > > "I have used the Fedora 42 server and its config file to reproduce the > issue you reported here. However, I cannot reproduce it with my patch. > Instead, if I revert my patch, I can see the warning again. > > I suspect that you observed the warning thrown by the original Fedora > 42 kernel instead of mine. > > You need to kexec-reboot into vmlinuz-6.18.0-rc7-next-20251125, and at > that point, try 'kexec -d -l /boot/vmlinuz-6.18.0-rc7-next-20251125 > --initrd /boot/initramfs-6.18.0-rc7-next-20251125.img > --reuse-cmdline'. > > If this is a false alarm, I will rewrite the commit log and send out v3. Thanks for checking, Pingfan. I am not quite sure if I did wrong operation on the machine. Since you are testing the same machine and the same linux-next code, and it still can'e be reproduced, it should be from my mistake. Then please go ahead posting v3. Thanks Baoquan