Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2309574pxk; Mon, 14 Sep 2020 09:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyczfrkqSEAV9fye4VYsHGjTU3MYZeggB5cKmgpqOiaLp6Tlz1lMzraxIowtXIAnIVlIkLB X-Received: by 2002:aa7:ca4f:: with SMTP id j15mr14402234edt.233.1600102280181; Mon, 14 Sep 2020 09:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600102280; cv=none; d=google.com; s=arc-20160816; b=wAQqy0MADzLJx/nhzKSMkiPPE+zmR4TB7FTLE6gRx6cL71wnVYAZvPmDdbWbUAzsBO 2pX5etO2R8S6FV47Nu5Q/pbQNbudGtF4e+MbXyaAkSYQdhBZn3UruuNOaQKDbHPz/vdD 4Y3AgtzYc3jFog7cG/sKqQ+LlIWku1dIkr7aExPqJ1qf0UcCF++ZwIsShkSlI3YIHGR4 jYQNKeQq3s/lDhOgkoF9wZWCEFb/vXovHNpvfIYlZa680IsN0Fz+Op3UEkER8Y+ySMmc DnlHlhwRbg8dx8nmCfny+NHlQbrcuN5+jssdFRnUPtMyyH/8jeY3YNqYPMxeuiY4bZKV Fyew== 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 :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=UQd14MrNI2dVyj4vddZznODKBP6iyEjRBKlOB9SCyyk=; b=X3BdQuOHneSjbcm5VV6eJdKWRGhoJvfYd5iI5ZjkySIPk8aacdq/9/nqWqeG03jpj4 qgLTfnKVUhlvmeH366dKGmwBGAvLTBufrt1cSe86PMdoB70bDAMlYQWwaPMOfMG2GNd3 qYe5UqsNXCVTMHga/3KVjKpH0U+bemD+0qF23QTf4C6BuADvWGMEBhyf5tdWpwI5v+tI 0PS6pcUi1PpSSTWj00u4T27praUidagY97dnfja5GaaXIg/R/glOWuDZvyvnZ9REAT86 XGPvXW9GZpNGqHpkn5DOhX0nM1uaTxps/WT1mPcItHjRCQ7Y74XSbE7qfwHGMx5twDcr kRHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UMCxcXpX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si7346231ejf.82.2020.09.14.09.50.57; Mon, 14 Sep 2020 09:51:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UMCxcXpX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbgINQtx (ORCPT + 99 others); Mon, 14 Sep 2020 12:49:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbgINQtJ (ORCPT ); Mon, 14 Sep 2020 12:49:09 -0400 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CA64C06174A; Mon, 14 Sep 2020 09:49:05 -0700 (PDT) Received: by mail-ot1-x344.google.com with SMTP id 60so554270otw.3; Mon, 14 Sep 2020 09:49:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=UQd14MrNI2dVyj4vddZznODKBP6iyEjRBKlOB9SCyyk=; b=UMCxcXpXAjG8hUblozlsdUha8qZ5DdK5EIpbUpzMn7h/pUPO9q4EVETWQJcIa1eArC v7U9rT2Az2ZMd7HW6AtlZFbXQQCPBD1OyDc3moNmfpzqC86IiNKgjxVnpJAGTlo+5PcI zqDSKLRhOxcbsqL5bUK7qXmSjtYy2G08q0QvwKJrj/L7Y7SdhG0x2ZFU7RMBu9WK0AdY KFzfgqLSrFl/jOEIGZUDfmuxVieiw+/ZC0Y4QGwL+fdNY2lorcHJzJK4tSUDpDohl2ni IIKslabI127orWF5E9GV/spUl8Gp0u50FxUpUNJuI9IJ10nsE+LVYNbGwQJaoBpIcr28 deXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=UQd14MrNI2dVyj4vddZznODKBP6iyEjRBKlOB9SCyyk=; b=Ygsg6ij1LhITM76C/AJQsn1P2RWoofOuXRDRPRC3u94wEJl1tn8NCgvzVfHCSV0ZSb 1j64bW9jaqv6cgzv3DtaUofPIh7/+nRkB5KJMt1MvQhhvbgZWVIzOunnKqoG/XyLPyU5 iLuZfx7j1EZEYGvWhkhZqfYk0iubd9v5TABWmzA/8i8eBMlzcOqpgCN7NLkDQ8gnuaT3 95H8NxqHFj5/E5RiPu8yOKaDDrKc69RihBbjiZ/hB8wqZScnww5owSLgFh4wCjB+sADw ZcUf9mjVUs95xkCHkZ8c6w9V0gTXdk9f3aKhTUfS+B+MQw8dji7yttcLiQD7CNZcrqir hBUw== X-Gm-Message-State: AOAM532UrLnJJhQItrPi5eIN9/eBsYmuJzVHU7oyDWUfGGiqvzdQZniD ggl5RiPj4SVrcrDe7608j8S/ld7UQ5UyNncchXs= X-Received: by 2002:a05:6830:110b:: with SMTP id w11mr9253920otq.109.1600102144839; Mon, 14 Sep 2020 09:49:04 -0700 (PDT) MIME-Version: 1.0 References: <20200901064302.849-1-w@1wt.eu> <20200901064302.849-2-w@1wt.eu> <20200901131623.GB1059@1wt.eu> <20200914162909.GA12439@1wt.eu> In-Reply-To: <20200914162909.GA12439@1wt.eu> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 14 Sep 2020 18:48:53 +0200 Message-ID: Subject: Re: [PATCH 1/2] random32: make prandom_u32() output unpredictable To: Willy Tarreau Cc: Amit Klein , David Laight , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , George Spelvin , Eric Dumazet , "Jason A. Donenfeld" , Andy Lutomirski , Kees Cook , Thomas Gleixner , Peter Zijlstra , Linus Torvalds , "tytso@mit.edu" , Florian Westphal , Marc Plumb 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 On Mon, Sep 14, 2020 at 6:29 PM Willy Tarreau wrote: > > On Mon, Sep 14, 2020 at 06:16:40PM +0200, Sedat Dilek wrote: > > On Mon, Sep 14, 2020 at 4:53 PM Amit Klein wrote: > > > > > > Hi > > > > > > Is this patch being pushed to any branch? I don't see it deployed anywhere (unless I'm missing something...). > > > > > > > It's here: > > > > [1] https://git.kernel.org/pub/scm/linux/kernel/git/wtarreau/prandom.git/log/?h=20200901-siphash-noise > > By the way I didn't get any feedback from those who initially disagreed > with the one that was mergd, so for now I'm not doing anything on it > anymore. I can propose it again for 5.10-rc1 but will not push anymore > if there's no interest behind it. > As a feedback: Just some minutes ago... I have booted into Linux v5.9-rc5 with your (above mentioned) patchset plus some individual mostly Clang related patchset. While dealing with that topic, there was a "fast random" patchset from [1] offered in this context. I am not subscribed to any linux-random mailing-list, but I have this one included, too. Unsure, if there was any feedback on this. With WARN_ALL_UNSEEDED_RANDOM=y it reduces here the number of warnings. As a use-case I ran this PERF-SESSION... Link: https://github.com/ClangBuiltLinux/linux/issues/1086#issuecomment-675783804 /home/dileks/bin/perf list | grep prandom_u32 | column -t random:prandom_u32 [Tracepoint event] cd /opt/ltp echo 0 | tee /proc/sys/kernel/kptr_restrict /proc/sys/kernel/perf_event_paranoid /home/dileks/bin/perf record -a -g -e random:prandom_u32 ./runltp -f net.features -s tcp_fastopen /home/dileks/bin/perf report --no-children --stdio > ./perf-report.txt /home/dileks/bin/perf script > ./perf-script.txt echo 1 | tee /proc/sys/kernel/kptr_restrict /proc/sys/kernel/perf_event_paranoid I was curious (mostly) to see what the impact of tcp_conn_request() <-> prandom_u32() was and the improvements by the patch from Eric. I can send the perf-report.txt if desired. - Sedat - [1] https://git.kernel.org/pub/scm/linux/kernel/git/luto/linux.git/log/?h=random/fast