Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4827544ybc; Fri, 15 Nov 2019 10:41:27 -0800 (PST) X-Google-Smtp-Source: APXvYqwt0vFqhJOKcezUiC8b7xY30Xch8OA32/KA32zQlh5gDdOwltauHQ2PjMI2DAX1E2yKr+pa X-Received: by 2002:a1c:7209:: with SMTP id n9mr16871796wmc.9.1573843287054; Fri, 15 Nov 2019 10:41:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573843287; cv=none; d=google.com; s=arc-20160816; b=J0gT2QFWBqDKu/UJ/5u7QKtPHe5Q4gwO3cT81S/Dg5CDIaKwbyLML+Rq8l5LZQp+Fz Fwxi1LbAqdQyezloa13oBduO59IKbJR3dw3iZ5TPBurOLNr3Qq9QD/3emHCweiBUhjf2 jkS5Cnp73rDTfDdPoPPQ5JMuXySQGhJJzy/TLRuwtodQZVf03hw7v5ux1JvmkOL8r8tC TqMfFsZ+9oTqw9pBLlvKWJG7TktoHHZFP+nXmiUEbXq5DF0BrrnbilLpcxjxdYNysHk9 qLhQDy3U/r4chNe1Zai9AQqONTairdOAgkXcJg2tp5wwGs1gQMYwOCVXun3RvUD6sZFG Ztpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bV2myfTUpz0CRJJzgk898nsegVBK706DjRFlK59PguM=; b=vPP5LNtkZQHicDqe2rWS9g6hiqqKpGt7PRi4z5++pmgJwr7ey6kpcCpBXO6/i0o1Ue ebDfq1JdIvZW5M2KO3f6AGpL46VwYS32hYpNVIukafleIXRS/6W/xv6Si/jkKfPOXZ03 RMiq60Etrw/fUAVfzjj8iymLyW+B/JnjwQfiHhCqMOQNoQ3IalDv0ddhjkRAq+Mg4Rgg LlMXaIfDna89YIaa47kT3ntk4um0XYu1mzTxwiQsxbrCjTpynECGCE58QgACj4HK8NS5 MgY1zgoW49r2jZxQJM8ICSBOVcFGw2WD0KNmF8CuH2VFfrWUxcI4012DAV2Mm72JlmvM NR8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m+L1dD7D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s2si5920874edx.235.2019.11.15.10.41.02; Fri, 15 Nov 2019 10:41:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=m+L1dD7D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726796AbfKOSjp (ORCPT + 99 others); Fri, 15 Nov 2019 13:39:45 -0500 Received: from mail-ua1-f66.google.com ([209.85.222.66]:41010 "EHLO mail-ua1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726075AbfKOSjp (ORCPT ); Fri, 15 Nov 2019 13:39:45 -0500 Received: by mail-ua1-f66.google.com with SMTP id o9so3302987uat.8 for ; Fri, 15 Nov 2019 10:39:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bV2myfTUpz0CRJJzgk898nsegVBK706DjRFlK59PguM=; b=m+L1dD7DHAoqoFPkWS4f+BNnvPYPE9XHcSqCYVyMx0c+a1MWv5B2TY/7T8BOZaL1s5 +vIAKqP3eSwDZBkR4whM1COVoYPLhTboSVtYVavsvQHhcE3BCGy6WMEFEC2fDWVd70HE OFhXVx+1nd2oVHFa8C8xsrP9VnVxvO7aylKw54njPk1dKNiijEDK7NV7wqfjKMFg7PSP wnHOBwfkZawEWSViQKsQGbRBc0CbbEtPJXGQfd1l6MWgTGTqXZs914IDyyTM0R82ejR9 KLdZ0Id83YIX04xikE1J6N90jB2iz9ac5sHcI4A8QECIGGeB+xAcz7dLqsMLxn4rNsEZ K6gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bV2myfTUpz0CRJJzgk898nsegVBK706DjRFlK59PguM=; b=KaDZ9OeaFbwNhVAnX8rfEJvCC+Haz1ESRYjl5XZEMNI9QV40E1kbZO6V2Vfec2lo+n EHkL5ZevSeCD+eHRD2DnjQHWfA2loTZq+GB9W2wI1WJQQy+T2JYXiSLaqJVfd6m8JUfR 4hpmhWgt9hIGvsR2rKTgZV/ESx+f+bG0wRnP5QMDLlysHbBKi3FJnh1KBkcjjqcS6bF1 NXzp70mdv7WWO16Ncb7zulLqOpP+8yGqthu6j6nrScqh4c628IKutbtHEWGh2SGJgZmm UaSrXpvdyFCCENeC4ZofaZWje1xpD1rPqIDsgKu9Hr8yt5lK6LVi+ad7fGHZkjcP6Yts 8qCw== X-Gm-Message-State: APjAAAWk4Avrt5PIoFwe4FyvVTaQotqFF9aTdl1KgZGdpuj+TQsL8mhm pUW8jflXFJADEelINkKa5FDWB9bf3ly3+QsnU5A= X-Received: by 2002:a9f:3c2c:: with SMTP id u44mr10152334uah.2.1573843183656; Fri, 15 Nov 2019 10:39:43 -0800 (PST) MIME-Version: 1.0 References: <20191114142707.1608679-1-areber@redhat.com> <20191114142707.1608679-2-areber@redhat.com> <20191114183421.GA171963@gmail.com> <20191115151420.GC20767@dcbz.redhat.com> In-Reply-To: <20191115151420.GC20767@dcbz.redhat.com> From: Andrei Vagin Date: Fri, 15 Nov 2019 10:39:32 -0800 Message-ID: Subject: Re: [PATCH v10 2/2] selftests: add tests for clone3() with *set_tid To: Adrian Reber Cc: Christian Brauner , Eric Biederman , Pavel Emelyanov , Jann Horn , Oleg Nesterov , Dmitry Safonov <0x7f454c46@gmail.com>, Rasmus Villemoes , LKML , Mike Rapoport , Radostin Stoyanov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 15, 2019 at 7:14 AM Adrian Reber wrote: > > On Thu, Nov 14, 2019 at 10:34:21AM -0800, Andrei Vagin wrote: > > > > + snprintf(proc_path, sizeof(proc_path), "/proc/%d/status", pid); > > > + f = fopen(proc_path, "r"); > > > + if (f == NULL) > > > + ksft_exit_fail_msg( > > > + "%s - Could not open %s\n", > > > + strerror(errno), proc_path); > > If the child does not exist anymore, the test will fail here and exit. > > Besides this while() I tried to address all your comments in v11. Any > further comments on the test? No, I don't have any other comments. Thanks, Andrei