From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by sourceware.org (Postfix) with ESMTPS id 53A783858C27 for ; Sat, 23 Jul 2022 19:04:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 53A783858C27 Received: by mail-wr1-f43.google.com with SMTP id h9so10651497wrm.0 for ; Sat, 23 Jul 2022 12:04:48 -0700 (PDT) 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=HBlDwPkms0blEARPTlBdVEUCUmRBC2AdWFMDOvhbc98=; b=OLsYeKz2UVtZxoAFCtVGrg7cfSqYRoqLAcRo/v/4dNAol83kFnXpIMKu3dz7KPLkLo XrntEfOp5q5UH8jiA9dZYp9axPUc8hqwO7jssRt5+lzUY4F6V8fht4Ov7GBaikfPoTlC qadzbK7xQ3lQqP6hRwP6tBJtQ7X8gzo9G5vHHZ0K/4bMsHoXYrHq00G5cVwCcuAyprgS u9I/CFTKw1tqmes7JpKQxnTSEt9/kNrluzHCmX8glwZ5N3HL21XztzSrGPftNKX25goC UN+ijexUWNw/ma+qGoUA6EqdRTQz/eVr4BPWRijgBvsCz1zbGtya6C1NxKedr8X/AaX1 4DaQ== X-Gm-Message-State: AJIora8mOV2LvM2t3vDyJU40CBZ7qAzZbg2y2Gi+5KAx/2o6KwbkvPbf L3X+OatAqPQNjL4WnV1nvfwDxgaW+VDHyKEscOKfiw== X-Google-Smtp-Source: AGRyM1vmP+nr2SX8r5NxjjoB5URc6p15sYM91+8YXy9G/9JN0F7Zcocdx/bin3cytzw4XwuaxwYmKs6UbFa6hQ4RdCA= X-Received: by 2002:a05:6000:2cb:b0:21e:8161:9d75 with SMTP id o11-20020a05600002cb00b0021e81619d75mr808620wry.235.1658603087219; Sat, 23 Jul 2022 12:04:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?Q?Cristian_Rodr=C3=ADguez?= Date: Sat, 23 Jul 2022 15:04:36 -0400 Message-ID: Subject: Re: arc4random - are you sure we want these? To: "Jason A. Donenfeld" Cc: libc-alpha@sourceware.org, Adhemerval Zanella Netto , Florian Weimer , Yann Droneaud , jann@thejh.net, Michael@phoronix.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , X-List-Received-Date: Sat, 23 Jul 2022 19:04:50 -0000 On Sat, Jul 23, 2022 at 12:25 PM Jason A. Donenfeld via Libc-alpha wrote: > For that reason, past discussion of having some random number generation > in userspace libcs has geared toward doing this in the vDSO, somehow, > where the kernel can be part and parcel of that effort. On linux just making this interface call "something" from the VDSO that - does not block. - cannot ever fail or if it does indeed need to bail out it kills the calling thread as last resort. (if neither of those can be provided, we are back to square one) Will be beyond awesome because it could be usable everywhere, including the dynamic linker, malloc or whatever else question is..is there any at least experimental patch with a hope of beign accepted available ?