From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) by sourceware.org (Postfix) with ESMTPS id 63EAD3858D33 for ; Mon, 28 Aug 2023 12:43:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 63EAD3858D33 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-401bdff4cb4so20871355e9.3 for ; Mon, 28 Aug 2023 05:43:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693226582; x=1693831382; h=mime-version:user-agent:in-reply-to:date:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EkKQ+IKfUJE8Ij5liFi1rDh1OfINNuPsqBfKYrpXfDI=; b=DxVlp+XsxrCbtzkMxuAsP68rfVlyIhucjGfzb/KLd3jeNAivSGh/XMgGD1BeoIRhC0 jz2su2LEJpU4V2J9Gr35tF7gmhYBTam0eQPTkwvpqtUZmDAIYNlj18q2UTxMZP1aF08h ukQ4mNkvfc8h91M4JqNGjV/Rnfvl+ue3WurCQg6tqvXyaylP3PhXiJAVwBuTUoTv/uDc UIdGt5IZgQbl/mHldG1B+bJkAwxxrSDoPZXMS2b1WAozehYW7/+Ek19wyViP4K0abB1v 12h6wLZlzPttVbUfyG4oYAn/1EjSZ3Z3Z5j9ODnjrgMfgej6NwVxmEDzPOxG2CwpWoro D9+Q== X-Gm-Message-State: AOJu0Yyqfhp897YiFtbgayXUYLZZUfVQidpByEoSbBevq9JH40xTkTJH 2xrd68lUS6Hpd42PmdSA8sJy8MIelhDIfQ== X-Google-Smtp-Source: AGHT+IGyKR0o4KtY83JitWIPPb/CYENU2JRx8yR2v324nsACLdpVSaWTGTe18QKk7mgZciZeczugcQ== X-Received: by 2002:adf:f30c:0:b0:317:e5dc:5cd0 with SMTP id i12-20020adff30c000000b00317e5dc5cd0mr18700077wro.21.1693226581944; Mon, 28 Aug 2023 05:43:01 -0700 (PDT) Received: from localhost ([2a01:4b00:d307:1000:ed06:63c6:6043:9d2d]) by smtp.gmail.com with ESMTPSA id 24-20020a05600c22d800b003fbe791a0e8sm10710626wmg.0.2023.08.28.05.43.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 05:43:01 -0700 (PDT) Message-ID: <552d74b856eafbe3529f4456ba70e36376590a37.camel@debian.org> Subject: Re: [PATCH v9 0/6] Add pidfd and cgroupv2 support for process creation From: Luca Boccassi To: libc-alpha@sourceware.org Date: Mon, 28 Aug 2023 13:42:59 +0100 In-Reply-To: <20230824164219.391263-1-adhemerval.zanella@linaro.org> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-X7D+IvNUy0iAwxRlee0t" User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --=-X7D+IvNUy0iAwxRlee0t Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > The glibc 2.36 added wrappers for Linux syscall pidfd_open, > pidfd_getfd, > and pidfd_send_signal, and exported the P_PIDFD to use along with > waitid. The pidfd is a race-free interface, however, the pidfd_open > is > subject to TOCTOU if the file descriptor is not obtained directly > from > the clone or clone3 syscall (there is still a small window between > the > clone return and the pidfd_getfd where the process can be reaped and > the > process ID reused). Thanks, this looks great and will make use of all these new APIs from systemd as soon as they are available, so for the series: Acked-by: Luca Boccassi --=20 Kind regards, Luca Boccassi --=-X7D+IvNUy0iAwxRlee0t Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCSqx93EIPGOymuRKGv37813JB4FAmTsllMACgkQKGv37813 JB7oiRAAjvmz9R4+qJ9OhevrmxeQwnU65OiHYhLHMgOOhca6eQ+68kMjQcw2+Od2 cnVR2hrsjMgbM4CLZvzNVJYe6dhH1dQnHDQDbMrggPJmDz4hWBrzAv1gE52eRLku nCKl2pQajmou7/5BzXp8WuoJRYNA3FamTOD/ZCCmoGJhyo4dUUzeoHphryIZ1Ix3 Ln2vWq/T285qjw2GFpl7hhtDtXLXVc9vvvtIeaoVdmJXlP3cZfyDoPVoRPubbNTI GS7CA8hSqVrFCYDsnFW0l6CqBFQ/YdIABgFoafviMz7G9kws3aQ82q/uciZLSF6U lGRKZ+7lq4CAvSxH9vYLVNWo3QZvMRQt/tw4SDaY9Y9PggkcLPOl2yBlmQ5xU3WX bxdfmAlGM/cV566hD0k7VVq14PgGM4M2a8jiBZbawFxgT+PZYtmAEd3Mc+HmO4UH YJj1MvmjR2qpQYKFhBtZyyq6AKXOAwTZ8lkWcm4qrqhXYNVcNX0wLvHXfVL9mPDU GOLtzuLCfZnVveAzz0Xo6tvOU9Uc2C1vnRQRKvBojxLXOs6wB4GZYWLC0yof6C/C 2sVTGij+2DZV4VJ4obQtLrL+d3qofxaqNp/LbHSkWGdNrR/JMLvgo7HJmfPWuzml vzTr5buJb6r/SG3J1xF/nPkpwcra6uZv7ofWssOj9xdM+j1C3rA= =LnMr -----END PGP SIGNATURE----- --=-X7D+IvNUy0iAwxRlee0t--