Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp568211pxb; Tue, 15 Feb 2022 22:21:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzEpFsxoqfv5EG+kgP7ZCMtPiVsH+wQn2iRjq9/dxvbJc55QVr+Q0lMDKp9JkKwfX0VJNpW X-Received: by 2002:a17:902:a3c8:b0:14d:2d03:294e with SMTP id q8-20020a170902a3c800b0014d2d03294emr934118plb.53.1644992464444; Tue, 15 Feb 2022 22:21:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644992464; cv=none; d=google.com; s=arc-20160816; b=l5lB78OPaO0R14Gh9g+SQ/s7i+lXPCB2aHfWLrTHGjryMqP1uJoX81ZaTt5I0FvLsj IYMHMmDx7mrnwGltiv+MjnItpPgL0DYC8cOs5vLPhlSgLZql1Zs589YlwTMF5GgctC2C M3m7bohnox8x+7xZLf0Y512/0sMEM1tRLhmLwCjjVLYejo1mqbf8QHkpd8GgHWTJisAx bz/CnOnq5Fi9TnfN1srPj7LK3GPVms5b7Re828V/beLIht+E9Y7viKTZqXKjVMbZgui0 edca+cMSnDTLzC8nCUxB3lJ/zKMRaqbaoskxcp2bF2EpVv6zfVEOZhYiXA64Sk7Dw6P5 XfOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=30j1t+BysVNM2M5YkR9BOryVBI0lVA+UTPwiJwtZ/ck=; b=aklC+Y4UqpeU1r9ViW0LGZh+19SJnLIfwx2KOnVbbvZ0wXiJ182LdejSV3xBGR/cyC zSzHEjco65yqJVVK4JyP5XG6+D1ERLMV6j7voQ4I+j9OJ3wzvlBaxOBeFOPUoQOLBpm1 qawBbVyygvSviZAVa7m6HysWhMBahdsQ5pf2p3yeW+p4eRWjmsO+e1VLn7Z4Ju3ZgpjW l/BcI1lNVwkKzjr2aUAdFzuECMhZfcS78C6wUF0HB4qAYpCaQkpLsiPodusNAWti33AH 3F3GDTCdE6B5BE7o4yP7hVAZozqVvfcpLkcAzlAeLFGVOOWLq87xyaxcbWNC7FGaTRK6 jDpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=l2uC+Y5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id in20si16017212pjb.91.2022.02.15.22.21.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:21:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=l2uC+Y5I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5868C1A8CF6; Tue, 15 Feb 2022 22:19:02 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236017AbiBOJpO (ORCPT + 99 others); Tue, 15 Feb 2022 04:45:14 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:48764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232267AbiBOJpN (ORCPT ); Tue, 15 Feb 2022 04:45:13 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B382E61E1; Tue, 15 Feb 2022 01:45:03 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id D2EAF1F38A; Tue, 15 Feb 2022 09:45:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1644918301; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=30j1t+BysVNM2M5YkR9BOryVBI0lVA+UTPwiJwtZ/ck=; b=l2uC+Y5I+VaWIvIauDW98b9US/LXnMopiuG50JFdVDqlHW7fx+TVxgVrlcpdAtEh3YTZ4y 4KRWReMNSjqaFxO+1v2RRrdxF3YFVBuygZL4wrr8ms1EXO/A8mGmKqxlZEe1qVY8MSLoBA +cGa8ByBW2GntE0h8IKSXvbn9HKfTSk= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9ADCD13C36; Tue, 15 Feb 2022 09:45:01 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id YKqyJB12C2IVCAAAMHmgww (envelope-from ); Tue, 15 Feb 2022 09:45:01 +0000 Date: Tue, 15 Feb 2022 10:45:00 +0100 From: Michal =?iso-8859-1?Q?Koutn=FD?= To: Shuah Khan Cc: Eric Biederman , Alexey Gladkov , Kees Cook , Shuah Khan , Christian Brauner , Solar Designer , Ran Xiaokai , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, Linux Containers Subject: Re: [RFC PATCH 5/6] selftests: Challenge RLIMIT_NPROC in user namespaces Message-ID: <20220215094459.GC21589@blackbody.suse.cz> References: <20220207121800.5079-1-mkoutny@suse.com> <20220207121800.5079-6-mkoutny@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 09, 2022 at 06:22:18PM -0700, Shuah Khan wrote: > Please see comments below. A bit of a concern with how long this test > will run. Did you time it? It runs around 1?s, I didn't measure it and I used it manually only. > How long does this test now run for with this loop? I kept this sleep to space output from individual tasks for better readability of output. It's not necessary for the sake of the test. I'll remove it in next version. > > - for (i = 0; i < NR_CHILDS; i++) { > > + for (i = 0; i < NR_CHILDREN; i++) { > > if (WIFEXITED(wstatus[i])) > > warnx("(pid=%d): pid %d exited, status=%d", > > pid, -child[i], WEXITSTATUS(wstatus[i])); > > > > Please a add few more comments in the code path. Hehe, this is inherited from the original version. (True, it's not overly clear on its own.) Michal