Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp390356imn; Thu, 28 Jul 2022 04:05:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vOfYoIRFRQpbxFhX+Ugb8aZ0UzwLHW3+s2Wgco6EXXc0gfZs91rTu7n/L6CLYtgYaMgxff X-Received: by 2002:aa7:cf18:0:b0:43d:34e:11b9 with SMTP id a24-20020aa7cf18000000b0043d034e11b9mr175687edy.145.1659006321140; Thu, 28 Jul 2022 04:05:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659006321; cv=none; d=google.com; s=arc-20160816; b=H9OW6JwAwnEcjlWZCGnNviBr4aW0pwviMPDbtlP7Xi7R7eyXGuc+0sH+5VM463RoX9 SBdIc3Q2Bhp8QsFH5VfRCwkp0kj+CDWTzxn9jOTH7dXm7EknW66LX63n0wlpgnOISKkC ONCcJheTdV7pZIsLzaq7YmqLCq0SNkAqQM4FTD+zoOI7npxEVSRzpfemiBSq6GmrIr+W Dg/pTqIVat9w4DgHDVpGhS93+96fXFj7rdl6qlxCeYSWJx7R+ZkaQFSecigQhrOitqCz mXiYZUu46X+U9nbpUwnh13d3y4vXo6rwUPcBgsIUML+AyUx5ntmIhSgXTGfEX4zYCHpc n54Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Sx8dXhWzRCLHTFr/Lnj/hvOO96cuB5U55JfjkIOpYeQ=; b=giEvsb9gzDMPjfJvT02SLLAvwISHhRQn2wSHk+dap0ncq57gRPR1VhkVi7ISIOhdH/ JEQ9AphqHJQMpF2vWVaC8jyc11AoAh0Wc2vvz36HpmSt1N74rLBC0AAF0cSN7hx0Mr6V 85b1dlVmksx4iHunjqesp0rCAgsVU3/3ltvMlbzUwf49Mk//0EVcmvdfmNMMXFV+zD53 9XW758sV0c2B00nUMUVWz1MOnJ9qeEhhYN1paMV0V5CNz1p0y0D2TZVaYf1HcNC/N5I/ TOBCrakEzeqdJF2ImHhKId1EbN4c5dL8Ad/Zl4EJEuX3ozMm1Cj6nG40F/cewHnfzIjw 1vGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oegR4psT; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a50d0c9000000b0043bd7ddee02si552275edf.366.2022.07.28.04.04.45; Thu, 28 Jul 2022 04:05:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oegR4psT; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235227AbiG1LBg (ORCPT + 99 others); Thu, 28 Jul 2022 07:01:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235236AbiG1LBg (ORCPT ); Thu, 28 Jul 2022 07:01:36 -0400 Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F232563939 for ; Thu, 28 Jul 2022 04:01:34 -0700 (PDT) Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-f2a4c51c45so1882179fac.9 for ; Thu, 28 Jul 2022 04:01:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Sx8dXhWzRCLHTFr/Lnj/hvOO96cuB5U55JfjkIOpYeQ=; b=oegR4psTFcBqQwjzpSNPFOVTR/HjGklFpCIN9hbD5WFNX9l4SbfVr9LRKyCw1eNPnZ qeFnIwfRpPoV/WmIrGOm3Am1RiuNi5Pk7c0Qjvx0wzqfGHeRWSZJetBVoZVRdqGwLY2q QfwoEeT7R8e3bI0EgkGA2Vm17otx+S3OE8Kl2iS0hztOGpdQlTRBdDpus+bloLnMkt7q 9a9GuNT4b+uGaaC86Xt5RGcQbK/K51Xejo2/GJP3j/cXaq5DBeo4QrOaAbWpeeOmcOUX jy34S5aEFhRBm3YrdbkRrtJmjARItIUHzpC0k3p7+o7gdAhgHO4PYz6HtbfAd2UVCImr 5J6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Sx8dXhWzRCLHTFr/Lnj/hvOO96cuB5U55JfjkIOpYeQ=; b=RiQgNmduR9O2SlNNbZj0NSt3hMncuPYkEJJEc1SobkEUw8ePhdgCJVfx57VYmRPH7D IUPHkwmzVWUXIswCgWvxLaBoZX1SLttvl7vxvwFOaC9+uxzepzBx8pgJfHIwkEDpNtEC VhgcRNJ23aVSgz2tcTnSssMeem8BLDwiPYueJgags3fcJIypp7BeNkHMuMCrG9uGbnAM JSYrAFwJiPJyAwsHjCcYfk6hqXeugtdQAIGWzoEU2iJIak9zuaaJv1oCllxUtYV/dkNz ghFBjM9Xl31jb7RfZi5zJLV+3I/Tqi1F2pRxrf8IOBIPcTM+PPJNK76MQtT0m702cYN8 mvMQ== X-Gm-Message-State: AJIora8Z7CMXMcxVmcTvaACfmNt01Vf2O1o4kW1adXp36gm0cGQLWsxt gnPHCsePN1ey6ltFOgaHAroRbOcZqwKQBsZsqZFvpA== X-Received: by 2002:a05:6870:1686:b0:10d:9cbf:aa6f with SMTP id j6-20020a056870168600b0010d9cbfaa6fmr4241116oae.93.1659006092860; Thu, 28 Jul 2022 04:01:32 -0700 (PDT) MIME-Version: 1.0 References: <20220726190830.1189339-1-Jason@zx2c4.com> <20220726195822.1223048-1-Jason@zx2c4.com> In-Reply-To: From: Adhemerval Zanella Date: Thu, 28 Jul 2022 08:01:22 -0300 Message-ID: Subject: Re: [PATCH v6] arc4random: simplify design for better safety To: Szabolcs Nagy Cc: "Jason A. Donenfeld" , Florian Weimer , Eric Biggers , libc-alpha@sourceware.org, linux-crypto@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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-crypto@vger.kernel.org On Thu, Jul 28, 2022 at 7:37 AM Szabolcs Nagy via Libc-alpha wrote: > > The 07/28/2022 11:29, Szabolcs Nagy via Libc-alpha wrote: > > The 07/26/2022 21:58, Jason A. Donenfeld via Libc-alpha wrote: > ... > > > > fyi, after this patch i see > > > > FAIL: stdlib/tst-arc4random-thread > > > > with > > > > $ cat stdlib/tst-arc4random-thread.out > > info: arc4random: minimum of 1750000 blob results expected > > info: arc4random: 1750777 blob results observed > > info: arc4random_buf: minimum of 1750000 blob results expected > > info: arc4random_buf: 1750000 blob results observed > > info: arc4random_uniform: minimum of 1750000 blob results expected > > Timed out: killed the child process > > Termination time: 2022-07-27T14:41:33.766791947 > > Last write to standard output: 2022-07-27T14:41:22.522497854 > > > > on an arm and aarch64 builder. > > > > running it manually it takes >30s to complete. > > note that before the patch it was <5s on the same machine. Yeap, we need to tune down the internal test parameters [1]. [1] https://patchwork.sourceware.org/project/glibc/patch/20220727131031.2016648-1-adhemerval.zanella@linaro.org/