Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1739770imi; Sat, 23 Jul 2022 16:11:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sQScfOflyXctBxmwW4oolTvCU7cba64qdvsT35VZNTPEAEzdjz9iBSE/ciE7NT5qQA9Xr9 X-Received: by 2002:a17:906:7955:b0:72f:97d9:9796 with SMTP id l21-20020a170906795500b0072f97d99796mr4753221ejo.436.1658617889988; Sat, 23 Jul 2022 16:11:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658617889; cv=none; d=google.com; s=arc-20160816; b=l7dE5vaftah+mKJDuh2/xilQ6VxmdhYIc3fzI/MULB9aKbLCa76fk15r+ToyTBNIXW odkBQyQjqf1E20kO8dudY4aQGhB2yrfk+tm3Di6jchCd0SlCdmkSDC+ECbwbXjMNJ8hB RL8KDaagBfduImXOktdtrf0xjEBEEFjZa0SCGUyuexej9p/nEh0Z13TZE3tlD9rI7eb3 Hl/tbGoFIB3NNbMXaUWBGC0VGzCcJ6CA4R7+Yh/OKuPGMujMXhsOpAUPyZH7hn5XCs8b qI+w91suw0T9QHpcjuGzsznq8/HKIlMXqrST5wT+wE+Xj0jfn9GaDNSM4Epvr1Mx6fRs IoCw== 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=HBlDwPkms0blEARPTlBdVEUCUmRBC2AdWFMDOvhbc98=; b=EeKhHvqukHHMCRPkCf63LyoHKQZTsuGFkcubnSgwMxsu6Tw49sW7rys3vSeI5dtKNq BwiE31ZnL3L4lRPLM5FKN5Lht14oBKtFLJ7uRWwf3rm96oQZlWHvhDZM8pms2EX2/i6d zbK4yWPuqKUal6C+n1oalC+KnqKY4TKf8X2W/fmoqBdU/8i8kPPqLCJKB08GguWUiKzG f2FKlhYI1+zTBwLj0R1hAF0dcod27yjQm5xj1QOo00zat0SgAITXvzcvwM2GMxQoPk62 ogtRNWKAMNAx6pnXlMYOuifp7OznXXrMuXoHU0ZOWAt+64l2nGir3SGjTRhdu32b1hpU 8wZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@opensuse.org header.s=20210105 header.b="bKIAvm/n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=opensuse.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dd15-20020a1709069b8f00b00726a885d35bsi10849906ejc.811.2022.07.23.16.11.04; Sat, 23 Jul 2022 16:11:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=temperror (no key for signature) header.i=@opensuse.org header.s=20210105 header.b="bKIAvm/n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=opensuse.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239052AbiGWXI7 (ORCPT + 99 others); Sat, 23 Jul 2022 19:08:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238928AbiGWXIy (ORCPT ); Sat, 23 Jul 2022 19:08:54 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A33E71AF3F for ; Sat, 23 Jul 2022 16:08:52 -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 4CD79B80D11 for ; Sat, 23 Jul 2022 23:08:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BAE37C341CA for ; Sat, 23 Jul 2022 23:08:49 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=opensuse.org header.i=@opensuse.org header.b="bKIAvm/n" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opensuse.org; s=20210105; t=1658617729; 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=HBlDwPkms0blEARPTlBdVEUCUmRBC2AdWFMDOvhbc98=; b=bKIAvm/nofQNnMrczwxP53GdoYf7rzYBCWQ5S7ZsrJ4V1jti+VQtrRMRtpQUayMmEmXxJJ IBMzLAy36iYjWt7VhyUTUnok+2CpEZXO1xkiiW9Pjp5xXPpkO7Vm8m6bmBULz/nd5Tvh48 JmDHkidS3KsRNO3hy1Xs2sRgxOJmFrU= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id cf6fb87b (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sat, 23 Jul 2022 23:08:48 +0000 (UTC) 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, linux-crypto@vger.kernel.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=-4.9 required=5.0 tests=BAYES_00,DATE_IN_PAST_03_06, DKIM_INVALID,DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 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 ?