RE: [PATCH] smpboot: Add NULL check before kthread_unpark()
From: Thomas Gleixner
Date: Thu Dec 11 2025 - 20:10:31 EST
On Wed, Dec 10 2025 at 08:21, Kaushlendra Kumar wrote:
> On Mon, Nov 24 2025, Thomas Gleixner wrote:
>> On Mon, Nov 24 2025 at 10:41, Kaushlendra Kumar wrote:
>>> Add NULL check for tsk before calling kthread_unpark() in
>>> smpboot_unpark_thread() to prevent potential null pointer dereference.
>>
>> How is that ever going to be NULL?
> Thanks for the review.
> Here I was only concerned about edge cases during CPU hotplug state transitions.
Then describe your concern and the edge cases in detail.
Thanks,
tglx