Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp637559imm; Fri, 8 Jun 2018 02:47:18 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIRkXrO8rQEDL1o8ciwVIRrcUgQTnQMCG1kxeDl4wQIVm34S+0yzjwaKI2vaQou7HxriH3O X-Received: by 2002:a17:902:a716:: with SMTP id w22-v6mr5695883plq.215.1528451238010; Fri, 08 Jun 2018 02:47:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528451237; cv=none; d=google.com; s=arc-20160816; b=eOB4jViazWW8VSpOR4zdU5nfptd8SWL1oeVe4sz1Puo/06beK2jTvlkK0S3d5/1HbP sXWrGlbUIbsb4HHKDJuiQdhyWRlyyVoI+Nz/gnAACJpO0i4x+k4jZVXIueNgtl5L7frE ZayrTv681cGgFXbJ3lfnRVNdESuVlgP0wRoZA8u/MuDoQCXoOigUGw2tImmvvFbGy3zo nVxET8PLaPsZJizfnqYOVu0LxoAebAN3qK4Xw9mrjnsUjh1H1PEyKa7qxFPt18HvpW7E xzYgmbHlUr5Pk6sbNDootIqCPHFDJkZI/15wCeQlV2Zr19C3oBNTVWk9JZ6VHp3sskFA jPww== 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=e6l+t2DZNypTgVxmJymBDSwL4PUZB99UvmgYw4D4wts=; b=XptSKsVWe8A49k7Hmp8KhPpvtKuhy1QZGMVws+zEB9TC+ViihKR1mJ0uA1BXVRbGYd rzH/E5FHdLIU2SUA0oLAGQXJwHPbggnVnoLl8TyxpDrbOt3EWV+fClt0Vwk9mytLOJTE A9q3ZI+BcnVfQe5r4lg7eBlBCMJCQW/ZlUD5XNzgfLynaCmk9/Lz3fvzDl2O1Xn/ZaVv hqRI3uKBf/rpWDX+81cg1W/9bU+aPQDVwO7C249jxD2XTb79CHfXRUjO6G8Xv6cy/mhB k8KixddTgGbLyPKHVq1ZPx914VLQ3HYNHdZZ4IswIyi2GHlXMRM+Y05FesJzApp0z7ig s14g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mqOQ+KMQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si55846771pld.296.2018.06.08.02.47.03; Fri, 08 Jun 2018 02:47:17 -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=@gmail.com header.s=20161025 header.b=mqOQ+KMQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751271AbeFHJqg (ORCPT + 99 others); Fri, 8 Jun 2018 05:46:36 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:45534 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750969AbeFHJqe (ORCPT ); Fri, 8 Jun 2018 05:46:34 -0400 Received: by mail-vk0-f66.google.com with SMTP id l64-v6so276611vkl.12 for ; Fri, 08 Jun 2018 02:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=e6l+t2DZNypTgVxmJymBDSwL4PUZB99UvmgYw4D4wts=; b=mqOQ+KMQoJZn+81eGAQ73JBpMCrQgJS7lEah5RVp5r/ntcaMWpxmp949WL4QrHxcA2 MPRB0nfGP0mAjA7cDHdX22HCHjpaz1t+aRwBcLTXvMm6aJtQMFEVfaOOXbT0i84UvQkQ QxoHaQiOehO33Vk9ZaAXvEPE/yIKQ8W43sw4sh9VcOoA98xFeZ+/5p15laOM9tjas+G7 QCvs9zOdUhDCVH+v/IGxp8TTP8EANssdYKfeuYVWQUT1XGMhvQ+teo504oznBaYGhqJ0 yBMXVUVos2/FixShCRc1D0exMrJmDOyWXnGLys0fO7lC41JFbpT+DQqPSxdmfZ1qV42A 9pzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=e6l+t2DZNypTgVxmJymBDSwL4PUZB99UvmgYw4D4wts=; b=liWB8H0+i48upUMJV0w7r7uhTQgt0e62cA5GKCY8zmxNZBAczF7+/UPUk7JB9wjjOb UawrGH6aX1I+SbZ47CH6LeWL2mx3dIQzhC1HqVGGnIKy3e3cajcXKnrMTPhW/izHKQwJ dPqHouN2SAsoq5gy42NbFH91QeU4c3SJjmDGj/TdO1xqK4UeX83N4If3BmCoO5v6LnbR GyTyVRk278Fkx2t4xcTk+OqLU+c4uW2G8ZlnMOas/0OIkdlZQgpE+m6gYsgwaTeNDpwc FCN1QfW1AC83E9B7XmlEhOm1Pb3GoEowDagp9f30ibqxEne0utvuDjfS/YAEDhKWAQfd z5ig== X-Gm-Message-State: APt69E3Syhsx8+t9Dz3KjE/z/k8Yx3K+s3lvJWIwiVQ4GoJ3dq/AUYrf MvV4epHsagqoZVv2w077pSvkZ2jUU65fPsC+7ntGMA== X-Received: by 2002:a1f:954c:: with SMTP id x73-v6mr3388658vkd.129.1528451193548; Fri, 08 Jun 2018 02:46:33 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8b02:0:0:0:0:0 with HTTP; Fri, 8 Jun 2018 02:46:32 -0700 (PDT) In-Reply-To: <0fa30e13-c16f-95d8-d1ef-fd45e7a99888@linaro.org> 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: Andy Shevchenko Date: Fri, 8 Jun 2018 12:46:32 +0300 Message-ID: Subject: Re: [PATCH RESEND] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests To: Thierry Escande Cc: Petr Mladek , Andrew Morton , David Miller , Rasmus Villemoes , "Tobin C . Harding" , Linux Kernel Mailing List 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 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. -- With Best Regards, Andy Shevchenko