From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS17314 8.43.84.0/22 X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, PDS_RDNS_DYNAMIC_FP,RCVD_IN_DNSWL_MED,RDNS_DYNAMIC,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id E3D2E1F601 for ; Fri, 2 Dec 2022 13:55:47 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="Jd8oz/4t"; dkim-atps=neutral Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1BBA13858413 for ; Fri, 2 Dec 2022 13:55:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1BBA13858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669989347; bh=atd3RFN7/x8lPTwTYlG3AGF7PTOh5UY6Fg0ZmRVVrEc=; h=Date:To:Cc:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=Jd8oz/4t737ljAVfnapJpkmHRLJaFfCf9hfnm9rNHJfxd+2sdLs8x06wQixxA4YJU CRm7wWQV0/iKDjgA1xKoyedcWsuNFMR8UW/XF1zV0PflTFuQALQr9wR+1Pqrir0Nkh fTJOwb1uJEuUdNd92Bl7wNmfWwVP5noyHclEBvw8= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id AB767385840D for ; Fri, 2 Dec 2022 13:55:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AB767385840D Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p16Vj-000497-Ih; Fri, 02 Dec 2022 08:55:27 -0500 Received: from nat-inria-interne-52-gw-01-bso.bordeaux.inria.fr ([194.199.1.52] helo=begin) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p16Vj-0007Hx-Bf; Fri, 02 Dec 2022 08:55:27 -0500 Received: from samy by begin with local (Exim 4.96) (envelope-from ) id 1p16Vf-001mnN-2D; Fri, 02 Dec 2022 14:55:23 +0100 Date: Fri, 2 Dec 2022 14:55:23 +0100 To: Sergey Bugaev Cc: bug-hurd@gnu.org, libc-alpha@sourceware.org, gfleury@disroot.org, riccardo.mottola@libero.it, andrew.eggenberger@gmail.com Subject: Re: [PATCH v2] hurd: Make getrandom cache the server port Message-ID: <20221202135523.aoihfn7fgli2bol2@begin> Mail-Followup-To: Sergey Bugaev , bug-hurd@gnu.org, libc-alpha@sourceware.org, gfleury@disroot.org, riccardo.mottola@libero.it, andrew.eggenberger@gmail.com References: <20221130003150.4mnx6xd2g53rox7a@begin> <20221202091351.74292-1-bugaevc@gmail.com> <20221202091710.qwrcmubhzxuf7qxq@begin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: I am not organized User-Agent: NeoMutt/20170609 (1.8.3) X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Samuel Thibault via Libc-alpha Reply-To: Samuel Thibault Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" Sergey Bugaev, le ven. 02 déc. 2022 16:18:33 +0300, a ecrit: > On Fri, Dec 2, 2022 at 12:17 PM Samuel Thibault wrote: > > Sergey Bugaev, le ven. 02 déc. 2022 12:13:51 +0300, a ecrit: > > > Caveat: this new implementation does not respect the GRND_RANDOM flag > > > and always uses /dev/urandom to read random data. > > > > It should be easy to fix that? > > By adding a second series of file_t > > and multiplexing here. > > Sure, if you would prefer it that way. Yes, please, better not hide an issue :) Samuel