Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp56629lqs; Thu, 13 Jun 2024 03:52:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCURxtUtoMxjliyYC+tw4AIyUggNAUZXKXoyCpvE0vtWbfoVMgF6ZILdQHZGgkjQ4niHCE5OhH1ls4zjsnza2+U0yJPKLq577IOH48ptLA== X-Google-Smtp-Source: AGHT+IEj/1IdH5K/MBUThLJVpj07jjbo2kZafjXui1rjX7PHuG6vZlEEjNKEwkqIrIKGS7roepTf X-Received: by 2002:a1f:c4c5:0:b0:4eb:5aa4:bc88 with SMTP id 71dfb90a1353d-4ed07ab6116mr4293215e0c.3.1718275936828; Thu, 13 Jun 2024 03:52:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718275936; cv=pass; d=google.com; s=arc-20160816; b=cJDNdX+3uYj8tRP8rS6tiW/F6EDbEwOkis2+z2AVR1eGHrlkDLDfnCpKbj7kIYnRh6 EIcmmD+RNIIbwIwASQqGle2HZS+/Hh8C8MpYK2I+PnCZBnaVodpGbS7zd6Md0mfMaS+u tzRpQsoGqoGlESXXXVkyo5MpnvWdPi2Y8OpKP3n1hX7ExmV9+qtLMi8HJENNUCeQQbNN RvG49vaAlrGFRW7ZvAtETH0uNe3Lohenp5eZkgbJYmDHROiVKPWXsa9QF9ntaNYCvMw5 67scefdRInxUQ5llVMhWVTP7z/UZv+qGHj1s81FxrCqVDyX1KD/1ZylVw7SQGV2FgIK6 97Nw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=lA5428gfvz7Iskz05AHS5wF8JaSsBlmWEgNMiyBah8o=; fh=U/L8gdbe0GCtJq+ymZTWas6v5Zab9ww1CLaHWlPn0NU=; b=CCv3B8lyrW/ee3fGusvZPolBOO/PE6nmdhIZsBd7/w2UORg5IZS1Atq4cwIXmS1Oqk wh5IUCwqW/72f1BebCtAdaM0lzWjCOQfT19fD9jeI5aJl+0K57JRHGSZUJAFdegryBQ5 KPSBa8WTovVXmUXcfnJLTpWoOauFAzZHpebQ9UhEx4BfukzSMxRJAB1ukgOQa/MSwk02 qBubSxw9aGWAV098Z51xRehJQA4vOq358bj9rVGk3jXBezexT8y1yL6fwkKFVw13VWK2 2vie119yMX7jeBo4wwGVwUDJHpnJQD6Cmf/ZKliZNav2Rm3DRgHXb2TKv2BZvxlF89ev qMTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=KC3CvdxZ; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-213059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798aadc386esi107115585a.193.2024.06.13.03.52.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 03:52:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=KC3CvdxZ; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-213059-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213059-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8C4AA1C23F60 for ; Thu, 13 Jun 2024 10:52:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CEFB14264D; Thu, 13 Jun 2024 10:52:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="KC3CvdxZ" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 973FE1422AB for ; Thu, 13 Jun 2024 10:52:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718275931; cv=none; b=UDZeNvvXbcFRqwViZianbMU3yE5FefPhBxbjAscV0m1UY2XwYxLdk5saNggaJE1T799tDHklzI8hhg5xiCmSYPyqWkjsAY2GKUVwa2FRRaKN8m1U0cj/dGdH/4CvI5fPA0pZ+oWGTB+tqgQdftbCTSE1arrjPJ8WwFV0Y9PVJo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718275931; c=relaxed/simple; bh=+WEP1Pf+9MAbP3pEYkJ4Cb2UyDAzbJd+ioJxVOm2eFo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=UcvFpSkLRBzTVnoQxw1CnU+uePIZGJrPHCF7E8xT6lrf/6VAXYnThaPUMk9Ty8w6oaA5Us0a1BtaR4wbtfUKCz7frQVbon9a4L+tKGpBypluJxDFxUPbRgL+CthA2wuP584EaHBX1fGyBhv6uCu1R8ESiW2Wwa6HMRsKWh5glnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=KC3CvdxZ; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id BF8A51C0082; Thu, 13 Jun 2024 12:52:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1718275926; 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=lA5428gfvz7Iskz05AHS5wF8JaSsBlmWEgNMiyBah8o=; b=KC3CvdxZkBaO9a6YIYe/hFZg9KTuf48wzarXiYh/LaaROt7mxFlfG8X+SZkKtGmBJfV9Ci UD8/oezS9bWPq/nOylKirmrf4k+RPjnhLYaJbPIezYYIJAaQ/cT+D/PQDN8x+sNecmwidJ w+RoYxDfnqiMkl+WA2JapkA688yjpbA= Date: Thu, 13 Jun 2024 12:52:06 +0200 From: Pavel Machek To: Jia-hao Bai =?utf-8?B?KOeZveWutuixqik=?= Cc: "linux-kernel@vger.kernel.org" , "rafael@kernel.org" , Iverlin Wang =?utf-8?B?KOeOi+iLs+mclik=?= , Boy Wu =?utf-8?B?KOWQs+WLg+iqvCk=?= , Seiya Wang =?utf-8?B?KOeOi+i/uuWQmyk=?= , Dengjun Su =?utf-8?B?KOiLj+mCk+WGmyk=?= , Win Yeh =?utf-8?B?KOiRieaYjOWAqyk=?= , Sowell Peng =?utf-8?B?KOW9remmluWBiSk=?= , Richard-CC Yang =?utf-8?B?KOaliuiBt+mKkyk=?= Subject: Re: [BUG] Kernel panic when using Hibernation on kernel 6.1.25 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: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dYM3x6sj/MVTnwzb" Content-Disposition: inline In-Reply-To: --dYM3x6sj/MVTnwzb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > I encountered a kernel panic when using the Hibernation on kernel version= 6.1.25. Below are the details of the issue: >=20 > **Description:** > When I enable CONFIG_HIBERNATION and assign a specific partition for hibe= rnation resuming and perform a specific operation, the system crashes with = a kernel panic. >=20 > CONFIG_HIBERNATION=3Dy > CONFIG_PM_STD_PARTITION=3D"/dev/mmcblk0p16" >=20 > **Steps to Reproduce:** > 1. Set printk to level 8: ` echo 8 > /proc/sys/kernel/printk` > 2. Set up the swap partition: ` mkswap /dev/mmcblk0p16` > 3. Enable the swap partition: ` swapon -p -3 /dev/mmcblk0p16` > 4. Configure hibernation resuming settings: ` echo "/dev/mmcblk0p16" > /s= ys/power/resume` > 5. Configure hibernation mode:` echo reboot > /sys/power/disk` > 6. Perform the operation: ` echo disk > /sys/power/state` > 7. Observe the kernel panic >=20 >=20 > **Expected Behavior:** > The operation should complete successfully without causing a kernel panic. >=20 > **Actual Behavior:** > The system crashes with a kernel panic. >=20 > **Environment:** > - Kernel version: 6.1.25 > - Distribution: Yocto 4.0 32bit/Kernel 6.1.25 32bit > - Hardware: Arm Cortex A55, 1GB RAM We'd need to know way more about the hardware. Also testing with latest mainline would be useful. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --dYM3x6sj/MVTnwzb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZmrPVgAKCRAw5/Bqldv6 8n4IAKCnBPdYu6Kv4gnKFIla372mF+fr/wCgxExGNdQtQrBQUa5SZTnqypWmilM= =FIqV -----END PGP SIGNATURE----- --dYM3x6sj/MVTnwzb--