Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp646574imn; Tue, 26 Jul 2022 05:57:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tSoyAtYVFFSNYPFl2lJW3sZD4NO/Ys36cebRwq1R2n8h8WYkggBI1/RRBlWA1FD9tA9+Iz X-Received: by 2002:a17:90a:7885:b0:1f2:1825:ae7e with SMTP id x5-20020a17090a788500b001f21825ae7emr19018529pjk.39.1658840235962; Tue, 26 Jul 2022 05:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658840235; cv=none; d=google.com; s=arc-20160816; b=Rh9f6hISHWg8XHA9Cue0BhdHstwgdMtr9wbZClnwXqIMUgUh+2kBntcn7WvuA5wzFI ys82beZRh4MRZam2hf9X+ETKk7QBjt8shdusb9R+tBHCeJDl5OuPJFTI10l+hGkhS2Gr SG4XDl3yEB/vdT+dbi2ckNnAAUwkwIBrizfhNH390ZFtSpmdYFKJZucAL3yenmARaAm1 pJ1iVjLoy6edwK4JtCm89A17X1ZV4D9qgC7jU0cEsswSzuaoR9pqnT0hLPWIbnpfS+WQ 6EHsGP8ly3BZ1pHUo3n1M/FTz8ZuZKmTbx5m4/uEqtb1nuffRm1e31B7G2igyg3G5QHZ FUrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ie3bPdZY7B4Kh+fcJxbsobSX2blxcpnoiGzVBltWr7M=; b=AE4EeEdEZ0aR8bi65mlWeUM/BRxGkdn2bo1wxCIEcvJOAClKX79dtagL685v86Ouz7 Q1ZcX+Sx0R01aQkGQBYOR+x1/qtEOQklbQPCJwyy4drlTIPjlahGN0lHhrn60YeD1Oyy 5+2mzWfTOU7VOMzR1vFvHauMuBLDx55m+maBkUNkj8sk360RvZp7SLHmeZEfEZ0w5o8W 2SvA2ev7ER9qhHVpb/+mYiaAR7UKbtcJxIDkoVOkblZNdjBChWRLFXkmXbYjFGMSLE4b c3LL2uOOROTnO6iaCrRQCwCOLt40koiXFv0A2WHr+zLTUQ3nxaEAfthP9o75yrXHyAm9 nzGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=maomZSS8; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v69-20020a638948000000b0041a97af6bb7si14143949pgd.452.2022.07.26.05.56.50; Tue, 26 Jul 2022 05:57:15 -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=@zx2c4.com header.s=20210105 header.b=maomZSS8; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233536AbiGZMr4 (ORCPT + 99 others); Tue, 26 Jul 2022 08:47:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231395AbiGZMrz (ORCPT ); Tue, 26 Jul 2022 08:47:55 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3B851AF3F for ; Tue, 26 Jul 2022 05:47:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 669DFB811C6 for ; Tue, 26 Jul 2022 12:47:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B2F1C341C0; Tue, 26 Jul 2022 12:47:51 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="maomZSS8" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1658839669; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ie3bPdZY7B4Kh+fcJxbsobSX2blxcpnoiGzVBltWr7M=; b=maomZSS8ydFUcPtReIfRZFKDDAov7ZSqjcSnpfAWMGEr6pfer6RWdp8PSSs79TbTolpNxC VeRx4KfIgUB13p75OUxIfpB9j20cszQ/GF0Vl+SOFF5mrfcicqrbftysQUTvjV8EFg8x8u M9lDUmyxoIpjhNBPg/v4I1tt3+T16lE= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e1a6bc92 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 26 Jul 2022 12:47:49 +0000 (UTC) Date: Tue, 26 Jul 2022 14:47:47 +0200 From: "Jason A. Donenfeld" To: Adhemerval Zanella Netto Cc: libc-alpha@sourceware.org, Florian Weimer , Cristian =?utf-8?Q?Rodr=C3=ADguez?= , Paul Eggert , linux-crypto@vger.kernel.org Subject: Re: [PATCH v2] arc4random: simplify design for better safety Message-ID: References: <20220725225728.824128-1-Jason@zx2c4.com> <20220725232810.843433-1-Jason@zx2c4.com> <9c576e6b-77c9-88c5-50a3-a43665ea5e93@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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 Hi Adhemerval, On Tue, Jul 26, 2022 at 09:34:57AM -0300, Adhemerval Zanella Netto wrote: > kernel newer than 3.17) it means some syscall filtering, and I am not sure > we should need to actually handle it. One thing to keep in mind is that people who use CUSE-based /dev/urandom implementations might not like this, as it means they'd also have to intercept getrandom() rather than just ENOSYS'ing it. But maybe that's fine. I don't know of anyone actually doing this in the real world at the moment. Jason