From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AB2D73858413; Mon, 2 May 2022 21:24:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB2D73858413 From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/29115] vfork()-based posix_spawn() has more failure modes than fork()-based one Date: Mon, 02 May 2022 21:24:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.35 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: adhemerval.zanella at linaro dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2022 21:24:00 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29115 --- Comment #11 from Carlos O'Donell --- (In reply to Florian Weimer from comment #9) > (In reply to Carlos O'Donell from comment #8) > > (In reply to Florian Weimer from comment #6) > > > CLONE_NEWTIME is as specified today fundamentally incompatible with r= eal > > > vfork and the vDSO. It just does not work. Entering the new namespace > > > requires a new vDSO data mapping, and that conflicts with vfork using= the > > > same address space. > >=20 > > The kernel already has per-cpu data in the vDSO. >=20 > Uh, since when? I thought that Linux didn't do per-CPU page tables. So, this is a stretch, but on x86 you use GDT to get the per-CPU data. Is this not what we could call per-cpu data in a distinct address space? > > The vDSO doesn't follow any concept of a single address space for the > > process. > >=20 > > The vDSO is not a part of POSIX and so doesn't have to follow any vfork > > semantic requirements. > >=20 > > What prevents the kernel from making a new vDSO data mapping? >=20 > It requires creating a new VM for the vfork process, while preserving > existing shared VM semantics in other regards. That seems difficult? I don't know until a kernel developer tells me this is difficult :-) --=20 You are receiving this mail because: You are on the CC list for the bug.=