Received: by 10.192.165.148 with SMTP id m20csp3161566imm; Sun, 29 Apr 2018 15:45:55 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr+SSR0LNtTVQQ0bU26Z1PNa28uRlZ6VohzGLohT13s1Dz9YNzRLtibzfFJ8OeHsXozkQl+ X-Received: by 10.98.69.68 with SMTP id s65mr10037992pfa.150.1525041955727; Sun, 29 Apr 2018 15:45:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525041955; cv=none; d=google.com; s=arc-20160816; b=sA/y0A4GA/ILq5BwFgtYso6X+VAiEtLTxOLv35lUpR65gpyuNn0OxzyClodZTrAXma GYOLwTBCzfUfkwjaA37RNrdgdtLcSq3znx64p5LrcoT2m2NwYZL08PHqpdAbfuorqISv czLAlQ7HLz+Ow0SoNaAHyz5FAqC+eQLWsV3M+drWukGs25Oj4IpwN4kFUf7Vtlh7+6Od 9JbHKvGqWMJtpKngALqS8ZZWXHP67ax6nyl0oZAvVqES3h+nVbuDwdYNBNMXBeF9595A RNERuYDEfLpSIAVJsiMfurmhMfgO8M6UzDFNl9AInofdf9f8GP0+x+gTBySJKzl3bZAF YC2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=pSdNtn6pQza6JT7u5qxSIArzF8P1089Q0hot0T57YMA=; b=TM7xf/8OXADur1b7s4cgUZdnOMjQQWyuYZalz+LLITzJ5sTOXonoMeombUjSHqLaEV 7R4a2b+phPl76XW1uyWIcN++JSumuobYAEvvpABrjzy5YhHiKEWw9wHiKEAp+6FmsAFO TGEQHW0DO5LRU0ikRjyyzs/z0vV5xxqHZZSGXOAiPKfvp/HFgVBIjeae0vAqkYJ0IX2e ONrDGmw3SJdgZgLQrPXTOIHXpch1rsLVzfxFeYYJATNPAw4qCgIJYs6ATx+wbhyMr88v s00gf8BdcaaVk3lJGfOE7oz5LIN6vj7EA8Sydl717Ijc+fDpwigS6zs7j8HnyHuf5b09 78KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=PB9WRRoW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=zx2c4.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si6310714pfk.194.2018.04.29.15.45.41; Sun, 29 Apr 2018 15:45:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=mail header.b=PB9WRRoW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S932098AbeD2Wny (ORCPT + 99 others); Sun, 29 Apr 2018 18:43:54 -0400 Received: from frisell.zx2c4.com ([192.95.5.64]:54609 "EHLO frisell.zx2c4.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932067AbeD2Wnu (ORCPT ); Sun, 29 Apr 2018 18:43:50 -0400 Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id a765773a for ; Sun, 29 Apr 2018 22:18:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=zx2c4.com; h=mime-version :in-reply-to:references:from:date:message-id:subject:to:cc :content-type; s=mail; bh=LN3o7+zJIqisNbWMjnQmdu+hoDE=; b=PB9WRR oWY5fNRlesXcVdkvVuXKIFO4/wZgUKW/xRmkYshfUzzv9PWhE6VD+0jFm+6VgE/X roiWuEmYJOovNv6L44FAoN7lCWrd4nRWPf/8Ii/PCBxFQhiTXd5GLMcW3g4PpLh9 oL1IW0W7NSyAO4JVYljPy16UE92icgs2cTiPJjzGnsxt5ihs8gw+5rDQzH+LhnHU JRotqAJWs8l1y0gWUNx3QYaCsu04OMA/cKAvrcchLulSoo9lVq7LQvjd/czd2q+4 fawQcVVEC1Z7/G4qaDyKcvmEAR0vUztZx1Ij6fLteOQg99aMsecy5i1rk0bMXdef jCianh+4p0Q6UT4Q== Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 97d636d1 (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Sun, 29 Apr 2018 22:18:44 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id 11-v6so6019942ois.8 for ; Sun, 29 Apr 2018 15:43:49 -0700 (PDT) X-Gm-Message-State: ALQs6tDF8i34J6LZ0dpEWoOe2vcN9I0lAOxs48WqRYBZTY8VBrhsQSbX E+ZNbwNAu0oGRhmWwBXqxBmZeQyGiJsWPq9yhTI= X-Received: by 2002:aca:1b16:: with SMTP id b22-v6mr5908844oib.105.1525041828506; Sun, 29 Apr 2018 15:43:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.95.155 with HTTP; Sun, 29 Apr 2018 15:43:48 -0700 (PDT) In-Reply-To: <20180429222625.35tedjzkizchudcm@sultan-box> References: <20180426192524.GD5965@thunk.org> <2add15cb-2113-0504-a732-81255ea61bf5@gmail.com> <20180426235630.GG5965@thunk.org> <3eb5761e-7b25-4178-0560-fba5eb43ce6a@gmail.com> <20180427201036.GL5965@thunk.org> <20180429143205.GD13475@amd> <20180429170541.lrzwyihrd6d75rql@sultan-box> <20180429184101.GA31156@amd> <20180429202033.ysmc42mj2rrk3h7p@sultan-box> <20180429220519.GQ5965@thunk.org> <20180429222625.35tedjzkizchudcm@sultan-box> From: "Jason A. Donenfeld" Date: Mon, 30 Apr 2018 00:43:48 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Linux messages full of `random: get_random_u32 called from` To: Sultan Alsawaf Cc: "Theodore Y. Ts'o" , Pavel Machek , LKML , Jann Horn Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > - if ((fast_pool->count < 64) && > - !time_after(now, fast_pool->last + HZ)) > - return; > - I suspect you still want the rate-limiting in place. But if you _do_ want to cheat like this, you could instead just modify the condition to only relax the rate limiting when !crng_init().