From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 805A9158531 for ; Wed, 15 Jan 2025 04:04:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736913868; cv=none; b=Gz7gMzbbrtTaJs8ZimPpZvZmFJKivUOfN+Zsa5aXMJ3UvbW2XM0HjZTUenaDv8R4qtIjXFWvtiZWKxDRiydNAG3DwISXhhtRxy5oyk2cMThJYok/7IesHkiX6mv8uGICVeMdlwSX+424s6lTlhsXL4h9dYDP1gGgAA5B4QxwbV4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736913868; c=relaxed/simple; bh=OutPCBssKJH51fBJ7ANy7MsTaNa+Uu9yOZ3Iho1madA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A97pK/fbmkW/vBjwh9EnEK9zNJbCUd6Q/q6uIJS1hAPN1or7PqpjI7KrGi9Bqkawqx1Cd1AQf4hF7UtcnZ6choM8QNrUJLCNGnwW7G4N6E72u8NO/Krh84URB5opuR/Bf0kR0dgFGIAWBwGQkDvQSNIt8LUGzVuU/GHKSeYV0a0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=clcyZAyX; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="clcyZAyX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736913865; 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: in-reply-to:in-reply-to:references:references; bh=+unhOYBjiPAqZTRFood5aIiHdu2obot7zgKwQr1T8N4=; b=clcyZAyXnWTY3q0mpcfzlN+FPanN8iOUFhJ5C890AYHLKLvY4p/82T4BmSZD6Zc5C3mh/T lS22HtY8nMeOu02+8h9yq7M5iK2htzjIdZLxYP6lzC7DUuDbI0mv0+1eM9nVHr9699Fq6L yT0OSON1HQoHbHtQw3zTL3DHAKSJDK8= Received: from mx-prod-mc-04.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-662-D0RozbHVNbOEewaG-IRirA-1; Tue, 14 Jan 2025 23:04:21 -0500 X-MC-Unique: D0RozbHVNbOEewaG-IRirA-1 X-Mimecast-MFC-AGG-ID: D0RozbHVNbOEewaG-IRirA 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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 80ED71955DDF; Wed, 15 Jan 2025 04:04:18 +0000 (UTC) Received: from localhost (unknown [10.72.112.24]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5CE473003FD9; Wed, 15 Jan 2025 04:04:15 +0000 (UTC) Date: Wed, 15 Jan 2025 12:04:10 +0800 From: Baoquan He To: Roberto Ricci Cc: ebiederm@xmission.com, rafael@kernel.org, pavel@ucw.cz, ytcoode@gmail.com, kexec@lists.infradead.org, linux-pm@vger.kernel.org, akpm@linux-foundation.org, regressions@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [REGRESSION] Kernel booted via kexec fails to resume from hibernation Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 On 01/14/25 at 02:16pm, Roberto Ricci wrote: > On 2025-01-13 Mon 22:28:48 +0100, Roberto Ricci wrote: > > I can reproduce this with kernel 6.13-rc7 in a qemu x86_64 virtual machine > > running Void Linux, with the following commands: > > > > ``` > > # kexec -l /boot/vmlinuz-6.13.0-rc7 --initrd=/boot/initramfs-6.13.0-rc7 --reuse-cmdline > > # reboot > > # printf reboot >/sys/power/disk > > # printf disk >/sys/power/state > > ``` > > Looks like it's the kernel performing the kexec which causes the issue, > not the target one. E.g.: kexec-ing 6.7 from 6.13-rc7 makes resume from > hibernation fail; but if I kexec 6.13-rc7 from 6.7, then it works fine. I tried the latest mainline kernel with your above command execution series, I didn't see the problem you reported. Can you try kexec from 6.7 to 6.7 or something like that and try to bisect a specific criminal commit? As for below commit, it seems not a suspect. 18d565ea95fe ("kexec_file: fix incorrect temp_start value in locate_mem_hole_top_down()") If possible, can you revert below two commits altogether to have a try? I am not sure if they caused the problem. 18d565ea95fe kexec_file: fix incorrect temp_start value in locate_mem_hole_top_down() 816d334afa85 kexec: modify the meaning of the end parameter in kimage_is_destination_range() Thanks Baoquan