lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250604031024.13093-1-zhangzihuan@kylinos.cn>
Date: Wed,  4 Jun 2025 11:10:22 +0800
From: Zihuan Zhang <zhangzihuan@...inos.cn>
To: rafael@...nel.org,
	pavel@...nel.org,
	len.brown@...el.com
Cc: linux-pm@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Zihuan Zhang <zhangzihuan@...inos.cn>
Subject: [PATCH v1 0/2] PM: suspend: Fix pm_suspend_target_state usage and logging 

1. Ensure early debug logs referencing pm_suspend_target_state are valid by assigning it earlier.
2. Simplify state checking logic using sleep_state_supported().

Patch 1 is a logging fix, patch 2 is a logic simplification.
All patches are small and localized in kernel/power/suspend.c. 

Zihuan Zhang (2):
  PM: suspend: assign pm_suspend_target_state earlier for valid debug
    logs
  PM: suspend: simplify state check using sleep_state_supported()

 kernel/power/suspend.c | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ