OpenSSH server fails to terminate executed program under certain conditions
Lucas Mulling
lucas.mulling at suse.com
Wed Jun 4 22:06:39 AEST 2025
On Tue Jun 3, 2025 at 8:37 PM -03, Damien Miller wrote:
> I'd describe the behaviour as "incidental" :)
Fair enough :)
> The session child process is started via fork() and there is a small
> window before it becomes a process group leader via setsid(). Your test
> is hitting that window.
>
> I think we could eliminate this window by adding an interlock between
> the parent and child. Does this work for you?
Yes, I was not able to reproduce it with the patch. Thank you!
More information about the openssh-unix-dev
mailing list