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 BB19EE77188 for ; Tue, 14 Jan 2025 03:43:02 +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-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=GSW4oy9jnxLr2pA/3ti78V9yiawCQ3o1yEEVBM2/WTQ=; b=ifXnStxUNcbZBNJ3cYgdRxb076 VptoCQHrqm7Chpgqsqy9EQ4Y/uJbnwPIPH/KAJEXM/uLiyz1gWPBPSCw/Tba8HanZLGrp15LhamQR 6lECGZITXOWM54fUb7yML2N6SuE1V1Ex2r8RZjYftHdgt8OV8JDAta99p/AnC9yOWqUsVyphdRuK5 ptY2quuXeJJnFo/hta8Vu1HIBazZAVCKwKDlktO1/wAQx0GsgEYvnVW8GtDYnGradTKQl4oYclfLW c1b2iN7jPEYrqxgFfraK7msm1y8XTG6kuDhlagjgEZaYQMdBY4zYeV1xa+wYBMPnJ4+xK0Kru2XN0 BubGMfmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tXXpW-00000007NQB-1xd1; Tue, 14 Jan 2025 03:43:02 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tXXpU-00000007NP8-0E9z for kexec@lists.infradead.org; Tue, 14 Jan 2025 03:43:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1736826179; 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=GSW4oy9jnxLr2pA/3ti78V9yiawCQ3o1yEEVBM2/WTQ=; b=bi/5EDkyG3qIzGsVPfc8Wzk0cRq1NqHyosFg2BZ+4S3Rlt1CFdT8v7ILvL3PAqDmhMGm+g cLzJAkrBKLfQ/CVkjic972wRmVO9e0WFJCGMXx2qktYKwdNbGi+ibVxwWOVLNVXJReDnlK oU2EFk8XTytudrLNR/L04owAFPopToI= 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-564-1t_4m890NjelwhNyI0K33w-1; Mon, 13 Jan 2025 22:42:55 -0500 X-MC-Unique: 1t_4m890NjelwhNyI0K33w-1 X-Mimecast-MFC-AGG-ID: 1t_4m890NjelwhNyI0K33w Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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 5789519560AA; Tue, 14 Jan 2025 03:42:52 +0000 (UTC) Received: from localhost (unknown [10.72.112.156]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5C10A19560AD; Tue, 14 Jan 2025 03:42:49 +0000 (UTC) Date: Tue, 14 Jan 2025 11:42:45 +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: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250113_194300_162893_537DEE6B X-CRM114-Status: UNSURE ( 8.06 ) X-CRM114-Notice: Please train this message. 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 01/13/25 at 10:31pm, Roberto Ricci wrote: ...... > Code starting with the faulting instruction > =========================================== > 0: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax > 4: 84 c0 test %al,%al > 6: 74 08 je 0x10 > 8: 3c 03 cmp $0x3,%al > a: 0f 8e 9d 00 00 00 jle 0xad > 10: 8b 8b 00 4a 00 00 mov 0x4a00(%rbx),%ecx > [ 88.485275] RSP: 0018:ffffffffa4807ce8 EFLAGS: 00010002 > [ 88.485279] RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 1ffff11027fff565 > [ 88.485281] RDX: 0000000000000940 RSI: ffffffffa3a89b80 RDI: 0000000000004a00 > [ 88.485283] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffed10234c82c8 > [ 88.485285] R10: ffff88811a641647 R11: ffff88811a635e30 R12: 0000000000000000 > [ 88.485287] R13: 1ffffffff4839048 R14: 0000000000000000 R15: 000000000000003d > [ 88.485290] FS: 0000000000000000(0000) GS:ffff88811a600000(0000) knlGS:0000000000000000 > [ 88.485292] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 88.485294] CR2: 000055e8c586c300 CR3: 0000000106eb0000 CR4: 00000000000006f0 > [ 88.485299] Call Trace: > [ 88.485301] > [ 88.485306] ? die_addr (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:460) > [ 88.485313] ? exc_general_protection (arch/x86/kernel/traps.c:751 arch/x86/kernel/traps.c:693) > [ 88.485319] ? asm_exc_general_protection (./arch/x86/include/asm/idtentry.h:617) > [ 88.485324] ? next_zone (mm/mmzone.c:20 mm/mmzone.c:37) > [ 88.485336] ? calc_load_nohz_start (kernel/sched/loadavg.c:251 (discriminator 2)) > [ 88.485341] need_update (mm/vmstat.c:2032 (discriminator 2)) > [ 88.485366] quiet_vmstat (mm/vmstat.c:2065 (discriminator 2)) > [ 88.485369] tick_nohz_stop_tick (./include/linux/hrtimer.h:135 kernel/time/tick-sched.c:1044) > [ 88.485373] ? __pfx_tick_nohz_stop_tick (kernel/time/tick-sched.c:970) > [ 88.485376] ? tick_nohz_next_event (kernel/time/tick-sched.c:952 (discriminator 2)) > [ 88.485379] ? __pfx_tsc_verify_tsc_adjust (arch/x86/kernel/tsc_sync.c:51) > [ 88.485396] tick_nohz_idle_stop_tick (kernel/time/tick-sched.c:1229) It's weird, how come the change in kexec will impact this tick-sched code. I will try to reproduce and investigate today. > [ 88.485399] do_idle (kernel/sched/idle.c:185 kernel/sched/idle.c:325) > [ 88.485403] ? __pfx_do_idle (kernel/sched/idle.c:253) > [ 88.485406] cpu_startup_entry (kernel/sched/idle.c:422) > [ 88.485409] rest_init (init/main.c:720) > [ 88.485413] ? acpi_subsystem_init (drivers/acpi/bus.c:1314) > [ 88.485417] start_kernel (init/main.c:1000) > [ 88.485422] x86_64_start_reservations (arch/x86/kernel/head64.c:495) > [ 88.485426] x86_64_start_kernel (??:?) > [ 88.485432] common_startup_64 (arch/x86/kernel/head_64.S:415) > [ 88.485437] > [ 88.485439] Modules linked in: cfg80211 8021q garp stp mrp llc ppdev evdev input_leds intel_agp e1000 mac_hid intel_gtt pcspkr i2c_piix4 agpgart i2c_smbus parport_pc parport tiny_power_button button rfkill vhost_vsock vmw_vsock_virtio_transport_common vsock vhost_net vhost vhost_iotlb tap vfio_iommu_type1 vfio iommufd uhid hid dm_mod uinput userio ppp_generic slhc tun loop cuse fuse ext4 crc32c_generic crc16 mbcache jbd2 bochs drm_client_lib drm_shmem_helper sd_mod drm_kms_helper ata_generic pata_acpi ata_piix libata drm scsi_mod serio_raw scsi_common qemu_fw_cfg >