Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp679179imm; Fri, 8 Jun 2018 03:33:56 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLTvLXIOmWXmV2RmBJRF1IAMrBTn5DOlZULPt4yUdjtoZyjeTVw144Qag+F5Om0XksU5mCh X-Received: by 2002:a17:902:88:: with SMTP id a8-v6mr5867520pla.156.1528454036222; Fri, 08 Jun 2018 03:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528454036; cv=none; d=google.com; s=arc-20160816; b=tYp5lZVDTrZR+XHyrxj7/yrFUtOx3+tDD60LMQ+WnBvg125CScC4NHbLQ7ol2FfeZb R/XNbCXr5+dGjIXRy2iRP3X0BUny1BNFM8cCpZ9DMRp8xO2O2h3SJWfQgolwxdMDIB9o XU12QI6RYWBQelZMrCJ9/QUJW6YAW37qCgBehHtSS2zY7vAapuBWPkJqcfMgz8e8uBFy hPEfqFYLw52z0+AuQnc5wVafZw2bdqG9D8tIlwXlPwHkwBdAI16MC/LA2JnN0XVvTzmv LqU2T9e4ONAxe055z/40kmgbInvALzQU2ayh9FrezigOUT1GdOXMVYfBEQaouHKmk1JE t7qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=dITMI4l7aJUATZu4oKRtakaJjgYR8lqhz1VJoiK+mrY=; b=1BD5BMIzJiN8ghtPh4CGlkT7foN6/wqZhxF8hLMAYlEnc2aM7O3C0/gHO4zeAW/hEJ 7SxPJ506cmWVImIUinDBabdnZyp6rciU8G6oi5PdKIkb5VTkkiq2xDDIQvG9kDe2X812 GmZm/O+4wbGG8nyHA082DrdfIztwq4zlu7LI17DVtqlFf62bbMfU0pVL3HDI8beElP9A WmMSLeps6p6t2UTuB4+94LFB4e/X4EeUIR7AFsPlqtwfcr2sHyK36TcSxu6adUU0Fvtm EV6X7KilKVSinCfJxrboXN134culWSYMX4YeN6rorLLBI3XazU2hvyMaMCUP/2PKix3q JMXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CvjFuByv; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1-v6si12052321pgt.400.2018.06.08.03.33.41; Fri, 08 Jun 2018 03:33:56 -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=@linaro.org header.s=google header.b=CvjFuByv; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752660AbeFHKci (ORCPT + 99 others); Fri, 8 Jun 2018 06:32:38 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:39397 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751265AbeFHKch (ORCPT ); Fri, 8 Jun 2018 06:32:37 -0400 Received: by mail-wm0-f68.google.com with SMTP id p11-v6so2737690wmc.4 for ; Fri, 08 Jun 2018 03:32:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=dITMI4l7aJUATZu4oKRtakaJjgYR8lqhz1VJoiK+mrY=; b=CvjFuByve6LTNffcwGH5lgj2EP7oYKiXaqtVeW0zTnmar/Guy5MwJxvasxSxbi05Oq O/U7OWAJ/nk3YdCDhcu6UztNaBYyKpNem6AFwQMnwtypsrWLp/dzSr42lTfVrmy4jyOi WWxGGfQLgBzRUsuvypHm1l885I61Xpde6jee4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=dITMI4l7aJUATZu4oKRtakaJjgYR8lqhz1VJoiK+mrY=; b=sqG7EaJdKxzZhW+z1eCG2WWFPUQbMU2j6Ax6lyGKsdK/EngOX9JbQdRRFao0BJDXJR L6iNYxwJ9s2YSINHw1q7inaGssmGWqWFxog3z68zAdb/tYZ038b4lhmLcy2uzu246IHJ ROnOPmOUAy83XIvwy0tO04Oi0K5xP04PFSthf7/HTIiHMUeCt+IXwPeYZLOHfm3fUE37 uhoPAikk9LexiHsj9+OTMZvimZ17Ud/A2rDjE4mDUbraPv9vwwE2TeV5v82H9HrPdrpJ uqlfWYlrUnDcfDRwZRzSQcQynLVKximPD5mjJQOt2F52OJB5kWw6zKQnZX7EX4jj9qdX 8Kqw== X-Gm-Message-State: APt69E2Y1pqWwjnKEbWjYp7ddWN820LZP9MVqbd3oWxyKgYUpLK64Ucc rCl/1uOMIQGiqWzvFsBEM+Jl//rEg8s= X-Received: by 2002:a1c:4252:: with SMTP id p79-v6mr1114762wma.119.1528453955785; Fri, 08 Jun 2018 03:32:35 -0700 (PDT) Received: from [192.168.1.100] (aig34-1-88-167-228-121.fbx.proxad.net. [88.167.228.121]) by smtp.gmail.com with ESMTPSA id i76-v6sm1741406wmd.20.2018.06.08.03.32.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Jun 2018 03:32:34 -0700 (PDT) Subject: Re: [PATCH RESEND] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests To: Andy Shevchenko Cc: Petr Mladek , Andrew Morton , David Miller , Rasmus Villemoes , "Tobin C . Harding" , Linux Kernel Mailing List References: <20180604113708.11554-1-thierry.escande@linaro.org> <20180607122434.i4x7b5ij4p6dpx7w@pathway.suse.cz> <20180608080437.n2b5nv73d3kp6yhb@pathway.suse.cz> <0fa30e13-c16f-95d8-d1ef-fd45e7a99888@linaro.org> From: Thierry Escande Message-ID: Date: Fri, 8 Jun 2018 12:32:33 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/06/2018 11:46, Andy Shevchenko wrote: > On Fri, Jun 8, 2018 at 12:07 PM, Thierry Escande > wrote: > >> But as I type I realize it's not necessary. I will simply enclose the call >> to wait_for_random_bytes() by #if IS_MODULE() #endif so it gets called only >> if built as a module, which is how run_kselftest.sh wants it... If >> test_printf is compiled built-in and the crng is not yet initialized the >> test will fail anyway so there is no need to add an extra check. > > Unfortunately I can't support this as is. > We have environments where crng will be ready minutes after the boot. > It's unacceptable. > > So, we need to have means to not delay test for so long. I agree we can't delay test execution for too long. In my case the crng is ready only a few seconds after the boot. So we may just skip this plain 'p' printf test if crng is not ready then. Regards, Thierry