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: <20251124051144.1427596-1-kaushlendra.kumar@intel.com>
Date: Mon, 24 Nov 2025 10:41:44 +0530
From: Kaushlendra Kumar <kaushlendra.kumar@...el.com>
To: tglx@...utronix.de,
	peterz@...radead.org
Cc: linux-kernel@...r.kernel.org,
	Kaushlendra Kumar <kaushlendra.kumar@...el.com>
Subject: [PATCH] smpboot: Add NULL check before kthread_unpark()

Add NULL check for tsk before calling kthread_unpark() in
smpboot_unpark_thread() to prevent potential null pointer
dereference.

Signed-off-by: Kaushlendra Kumar <kaushlendra.kumar@...el.com>
---
 kernel/smpboot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/smpboot.c b/kernel/smpboot.c
index 4503b60ce9bd..a37d25b23f58 100644
--- a/kernel/smpboot.c
+++ b/kernel/smpboot.c
@@ -225,7 +225,7 @@ static void smpboot_unpark_thread(struct smp_hotplug_thread *ht, unsigned int cp
 {
 	struct task_struct *tsk = *per_cpu_ptr(ht->store, cpu);
 
-	if (!ht->selfparking)
+	if (tsk && !ht->selfparking)
 		kthread_unpark(tsk);
 }
 
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ