Re: Stalls when starting a VSOCK listening socket: soft lockups, RCU stalls, timeout

Thomas Gleixner
2026-03-10T10:03:57Z

On Tue, Mar 10 2026 at 10:00, Jiri Slaby wrote:
> On 10. 03. 26, 9:56, Jiri Slaby wrote:
>> Thomas,
>>
>> On 10. 03. 26, 9:09, Thomas Gleixner wrote:
>>>     2) task is not longer in the task list w/o going through do_exit()
>>
>> After a quick look (I have to run now, so I could be completely wrong):
>> what about the task is not in the list *yet*. You use RCU ->
>> for_each_process_thread(), so there could be a race with attach_pid()
>> protected by tasklist_lock.
>
> Not attach_pid(), that's irrelevant here.
>
> But one line below in copy_process(): list_add_tail().

Yes. There is an issue. Peter and me just discovered that as well, but
in the case at hand it can't be the problem. The missing task is on the
CPU which means it must be visible in the thread list and task list.

Thanks,

tglx