Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6339041iob; Tue, 10 May 2022 16:25:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+HS4fTKpxq5xm1KI552RTxiDx0HWOdSMnZ5Y6QS5NzoqVx+JHQT7Rz6B+tpfdSPYe2c87 X-Received: by 2002:a63:3dc9:0:b0:3c6:4085:9de0 with SMTP id k192-20020a633dc9000000b003c640859de0mr18858187pga.57.1652225117320; Tue, 10 May 2022 16:25:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652225117; cv=none; d=google.com; s=arc-20160816; b=wAvCCHZamKzzriWBQAaRVgRNZuNo+fgQ0UcrVv6Q4AyRVWBilBnsh9UvFn0zGkc8yC 57yQyYsbHMzF6d/OFhG+0Mb2g1xkB0c54F+sUnQrEbqxpt1YJQNmOLl/NppGCryRV1SF 21HOlh9yJcGiSk1nk2ogwW5MvHMhY+K7jqvpSaXBMAJFf6lreB+jomR2UWtWcDrHfNah qbV7hAL8bzLez0xIYL+T1Dnm5ba90fsikiQZ3/0p1Q9vYorRl7PCjTlqv+8a2qpEGSF7 +U1bVek+GBAA7pUFBl6R07Qq1350U3hqsmzhtsoXOH6E6h7AQGz008JQfcUhTNJB9Wu5 CAwA== 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=9+CqMPmHp+6ac0+Sm4AN/wwxvPotPYL1MZ4jUenJ3jE=; b=0PN6eVamAYPUO3ZkilaRvd0E8ZiXuiHKdxzcs9OL7rAK7IzyD7moulV3T5M8kt8TPt kb/jQupV+bQitzA1NQD/viGMtBWoQJgvYAhIi59ao56MxtbHQlVdldYBQXNf+WEWQ27y CaO/nkPK9JhfAjC75O0WVaOeelpo7NesdoZBJyHMLYoXJ9TiEY0DCaxK/hgP46P3RSH7 WH5dulNxRxjPgGGgODCoQVb7oI8hb3PNgM/JZi7AWEVL8a5jmSJBEyDsCK0U+AJKYduO CbOQVX4XOWhNfA3mHJd0X40r1OC/AE8zNqInLpFhq6EwEIUsyv/tKgECNK4YaakNO4Oh uAgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=m2qHVslI; 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=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d76-20020a63364f000000b003816043eecesi837247pga.195.2022.05.10.16.24.53; Tue, 10 May 2022 16:25:17 -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=m2qHVslI; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234772AbiEJWu1 (ORCPT + 99 others); Tue, 10 May 2022 18:50:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233317AbiEJWuV (ORCPT ); Tue, 10 May 2022 18:50:21 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2C1B24E023; Tue, 10 May 2022 15:50:20 -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 7FCEBB82004; Tue, 10 May 2022 22:50:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9148BC385D0; Tue, 10 May 2022 22:50:16 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="m2qHVslI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1652223014; 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=9+CqMPmHp+6ac0+Sm4AN/wwxvPotPYL1MZ4jUenJ3jE=; b=m2qHVslIkinT8gFrhEc7CNtoppYkDVjiQ3rO6iYQ6YJew5wu6LSGAGEaXRrd5QgJkHVOBF anEbwNAgvrudnrfVYIVe3wP5vg2QbT0O1n7SBZESlRh8ozDaOcB3+yLvA6YYCuuRtRRwtf xrlfj/bNgWVvcYsI99nBRYDpJBV4CWs= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e7faad4f (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 10 May 2022 22:50:14 +0000 (UTC) Date: Wed, 11 May 2022 00:50:11 +0200 From: "Jason A. Donenfeld" To: Simo Sorce Cc: dodis@cs.nyu.edu, tytso@mit.edu, nadiah@cs.ucsd.edu, noahsd@gmail.com, tessaro@cs.washington.edu, torvalds@linux-foundation.org, jeanphilippe.aumasson@gmail.com, jann@thejh.net, keescook@chromium.org, gregkh@linuxfoundation.org, peter@cryptojedi.org, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, "D. J. Bernstein" Subject: Re: is "premature next" a real world rng concern, or just an academic exercise? Message-ID: References: <20220510185123.80607.qmail@cr.yp.to> <5b63a8a37b415db66ffe6b660859e3900c054909.camel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <5b63a8a37b415db66ffe6b660859e3900c054909.camel@redhat.com> 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,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Simo, On Tue, May 10, 2022 at 05:33:34PM -0400, Simo Sorce wrote: > On Tue, 2022-05-10 at 22:09 +0200, Jason A. Donenfeld wrote: > > For 5.19 (or at this point, more likely 5.20), there's a userspace > > notifier in store, maybe, if I can figure out how to do it right. > > There's a pretty bikesheddy thread here on what shape that interface > > should take: https://lore.kernel.org/lkml/YnA5CUJKvqmXJxf2@zx2c4.com/ > > But basically there are some details about how an async interface should > > work, and what the virtual hardware future, if any, looks like for a > > memory mapped race-free polling interface. Plus some considerations on > > how much we should care etc. > > Perhaps it might be simpler to add an "epoch" number or similar exposed > [...] Could you send these ideas to the bikeshed thread that I linked rather than this premature next one. I think it'd be a good idea to keep Alex and Lennart looped in to that discussion, since they represent userspace projects that probably care about it, and not bog this one down with systems programming things pretty far from premature next threat model stuff. It's a bikeshed thing, after all... Thanks, Jason