Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2934724pxb; Thu, 10 Feb 2022 08:38:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLP6UHpwPJ6AoVqM/dVfLv/AcuNr06Fht6AsUTdnoDQ1842xbvvbuhC+OWVqtJ7kNxnfj0 X-Received: by 2002:a05:6402:2756:: with SMTP id z22mr7969936edd.312.1644511099315; Thu, 10 Feb 2022 08:38:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644511099; cv=none; d=google.com; s=arc-20160816; b=nmO+iRwVt7LheEUKBb+yyxt75tzv3NPbH2vZippQl1fj4/i0KO+UKpBTgsTL4TFgDH mEQHX+kVQkYeWtV/pIeCnIv2Oq6PXyh77KRs3busTC7i02W+7jq6Ostk83ackd6mr1+d mRax2JKvsNVFLTUQgIiYSCAA2yUY1NOngkMhzYS5KbkSMHfLpYl8C/F5X02jXGi2bRQV xr3ciGZkKtG7DOx8NE8zlMgt4NnqhvaD8GzfiLYQhhPPE0O3iVhtU1Baq2p0N0Spq2+6 XutIRGPscevlEO6L/NwXyzuDHlKHkgP6wYI3FO6BNdd+2k5Y/03rlLtyHD53lFSuGb/4 vHCg== 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=BhfYAth/N3VJ7ZKxCD48ZFPKIXVeO5sfWYQ/g1BvmIQ=; b=r7tovItSbozktWSPxPfuxDuNLhimTTD9QHdEZ4KI+osLxDKkBx+dq8MGJfVdnwixmj 5WwG050ViaxcVfzA6oj84TDMiOZM+kNXdNijX5VkhNcsO5vLcP89+xCTE/MU62Xce0sW YhN83v9IwyhhEy5PxTMD+fmL3Ua0+7BIAeGx7xhcLVUGIepRLGWGEJQr+aqMIDw8plSq KSMNiKWTm3oG8IOEx7U4jwYRnp5qmbjncgZod1pCTGuwKMEGui62v/TyS1nJloUHRMH6 JvGeO4dEcv6GUrZLhnPHXin9YlfS6duOPSfSQMkMZ0CYa4lcPDAk0OsQMbnP65r/kNg9 lmOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=esdrUKFM; 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 jg36si6360105ejc.930.2022.02.10.08.37.46; Thu, 10 Feb 2022 08:38:19 -0800 (PST) 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=esdrUKFM; 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 S243475AbiBJPKX (ORCPT + 99 others); Thu, 10 Feb 2022 10:10:23 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50606 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235283AbiBJPKW (ORCPT ); Thu, 10 Feb 2022 10:10:22 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2AE4B88 for ; Thu, 10 Feb 2022 07:10:23 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 3F78E61B8A for ; Thu, 10 Feb 2022 15:10:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F144C340EF for ; Thu, 10 Feb 2022 15:10:22 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="esdrUKFM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1644505819; 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=BhfYAth/N3VJ7ZKxCD48ZFPKIXVeO5sfWYQ/g1BvmIQ=; b=esdrUKFM/ybeWOo7dvexbdSs03tbl16HV7F1m4nLk5rSDUXp9bd5MSK+0AIdszoz9mr2kb YwXGJ/XdnjFbXsZ+Y8C2U4hDJ7sVW4MDvw/s5LMJEH4DEIsvuJWP3EYZgUOPHsSn3kNW1M OV+IvEBAyUe+IYwQR6h1+TtO1olPcys= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 43e29685 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Thu, 10 Feb 2022 15:10:19 +0000 (UTC) Received: by mail-yb1-f174.google.com with SMTP id p19so16311729ybc.6 for ; Thu, 10 Feb 2022 07:10:19 -0800 (PST) X-Gm-Message-State: AOAM531bCxEXxMFs3wCUYTqd4bpPS+ludQYPDDBVXV+lN4mQdrlp1Er9 okYgXGH/WafAc2UdU6w2jQAOWiIs2LvxSvXeyG4= X-Received: by 2002:a81:c646:: with SMTP id q6mr7528514ywj.485.1644505817866; Thu, 10 Feb 2022 07:10:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Jason A. Donenfeld" Date: Thu, 10 Feb 2022 16:10:06 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/4] random: change usage of arch_get_random_long() To: Sandy Harris Cc: Linux Crypto Mailing List , "Ted Ts'o" , Greg Kroah-Hartman , Herbert Xu Content-Type: text/plain; charset="UTF-8" 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 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 Hard NACK on this patchset. Issues: - The superficial ones that Greg's mailbot is now emailing you about: improper threading, missing sign off, bad whitespace, poor coding style, etc - We don't need XTEA for this; there are probably better choices these days. - Distinction between "get_hw_long()" and arch_get_random_long() doesn't exist, since get_random_bytes_arch() just calls arch_get_random_long(). - Even if we did want this, replacing arch_get_random_seed_long(), a function meant to supply a *fresh* value from a hardware source, with something more deterministic changes the intention. - Likewise the cycle counter is supposed to be at least a little bit entropic, some of the time, maybe, in the best of circumstances, perhaps... whereas expanding an XTEA key that's seeded from that same cycle counter (in the absence of other things) at one point in time seems clearly worse. - Probably others, but after 10 minutes of reading this it seemed like it wasn't worth it to go further.