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>] [day] [month] [year] [list]
Message-ID: <20260204143934.64546-1-zhanxusheng@xiaomi.com>
Date: Wed,  4 Feb 2026 22:39:34 +0800
From: Zhan Xusheng <zhanxusheng1024@...il.com>
To: Jason Wessel <jason.wessel@...driver.com>
Cc: linux-kernel@...r.kernel.org,
	Zhan Xusheng <zhanxusheng@...omi.com>
Subject: [PATCH] kdb: Replace task_curr(p) with kdb_task_has_cpu(p)

Replaced the direct usage of task_curr(p) with kdb_task_has_cpu(p)
for consistency with existing encapsulation in kdb_private.h.

Signed-off-by: Zhan Xusheng <zhanxusheng@...omi.com>
---
 kernel/debug/kdb/kdb_bt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/debug/kdb/kdb_bt.c b/kernel/debug/kdb/kdb_bt.c
index 137ba73f56fc..de36c4da6f74 100644
--- a/kernel/debug/kdb/kdb_bt.c
+++ b/kernel/debug/kdb/kdb_bt.c
@@ -152,7 +152,7 @@ kdb_bt(int argc, const char **argv)
 		for_each_process_thread(g, p) {
 			if (KDB_FLAG(CMD_INTERRUPT))
 				return 0;
-			if (task_curr(p))
+			if (kdb_task_has_cpu(p))
 				continue;
 			if (kdb_bt1(p, mask, btaprompt))
 				return 0;
-- 
2.43.0


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ