tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sysctl_doeproc() race



On 11.03.2018 18:23, Robert Elz wrote:
>     Date:        Sun, 11 Mar 2018 16:02:57 +0100
>     From:        Kamil Rytarowski <n54%gmx.com@localhost>
>     Message-ID:  <10b0efe2-35bb-d1e8-ed28-587f643bdfd7%gmx.com@localhost>
> 
>   | We already use markers so I prefer to stick to this solution and it
>   | makes this code reliable.
> 
> Actually, since I sent the previous message, I have been thinking on it
> more, and I don't think that it does.
> 
> It handles the case where we have found a process on allproc, and it is
> (while we are scanning more of allproc) moved to zombproc, so we won't
> get the process twice.
> 

That was the original design.

I will have a look at the approach with iterating over pid_table[].

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index