Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp519579imm; Wed, 13 Jun 2018 04:23:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJcCpEyiaqURof/205XcYRTqZaN0HCIuz/ioOP/wqVcf4G0LgT15bCx9ocWKmRqrzpEJ1a5 X-Received: by 2002:a62:a0c:: with SMTP id s12-v6mr4552556pfi.33.1528889010040; Wed, 13 Jun 2018 04:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528889010; cv=none; d=google.com; s=arc-20160816; b=TpEh+LrjxNBktPFmmmMHQnPEuzYtPLYrTvfFU68KZSCStvRoODxpDHpPiAdBonUogX iLZFEyPeKWbc2vGW0jb6+OLgCJO0MJWvSy1XhIgfDAk/aagCEwMMN/fZ71TpCYXGnCqx 3QSuEJkkw7Ozm7Dd7eTnlJmGJKuOaJ8Zlbn//7S44/2UiIO9c0WSm5FcKCviNUEmCDyJ HoPc+SLv4PrhvPh5dLUsDavoI/h9yzIkpDtdVD0QJ3oaUz2Qiz0aJyUJTdUGY5GQJrRl gNpttcvB0fCkhercHOSo8cQVBO/cPz9yVkC410GZwM/GGVPX63lOhoOLl/id6yxHvHgz YLRw== 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=gjO+EMSuj9aylJx8RXimRE/OzbQ9Fo6YhrNiVel9vr8=; b=C37/6JfTFeU1ZtVHhSKWJwXgtEgice4cjACpD3UQ4Nio8qyYMEC4+nvY+dnVcR7y4t Yl0ccDVpdqQozrkBZfUgsCdRY5xi09yTJ2pBKgzsl53yuz63tfNow+IMJqILLzD+/P7w gvNdE4wnI/vli3HWYXOJDJp9X1o1kDH1emNKEI+WMHiEdnhvCV5G8lvFiu+pchj8cXA6 QrMafNM9eLsVgsjlfcFwhGRKyAVNF2KbA4s/JlmR7wX8p5GwYoF1aGwMyu8626L2f43c tWYKLItgneawSjMzIPv2bSjNUXr4GmZCWLLWGVWlWzGfaI3Zkhd/+28P7alkLpmMAjb8 5+Ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WCmmGaaC; 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 k8-v6si2669470pfg.42.2018.06.13.04.23.15; Wed, 13 Jun 2018 04:23:30 -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=WCmmGaaC; 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 S935269AbeFMLWw (ORCPT + 99 others); Wed, 13 Jun 2018 07:22:52 -0400 Received: from mail-vk0-f66.google.com ([209.85.213.66]:41423 "EHLO mail-vk0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935009AbeFMLWv (ORCPT ); Wed, 13 Jun 2018 07:22:51 -0400 Received: by mail-vk0-f66.google.com with SMTP id 128-v6so1270671vkf.8 for ; Wed, 13 Jun 2018 04:22:50 -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=gjO+EMSuj9aylJx8RXimRE/OzbQ9Fo6YhrNiVel9vr8=; b=WCmmGaaCIzt/bXdHUpN9aZaYqDI/h3HePJyR43+jXe5GIXtAXaWbloGMPHzoCXKrtm eRS6AunGnptp/rRl8sYr+wydvd7dhNxSJN1M5Pga+KHiKuIkeYnoh/+gKmlsso5vhivQ arcutBCs9SHigOqANYW4hfz/TFxY58/Rp6qcPXYV0r8TKw+gEupLp8G/GM/+5t3TudmU TzAjbq05qGTP9rGr7YcL1Eh+gb3ulwVBwXfGAyHm+9VFOYTv6MUDYSXDM6zp9eYxJLPX F1GsUcu8Xbjs8a21sP0FjVoIrCRR1AdYjYKaPKaEuSG3gvCJ7kDNBSArrrII+MFfZ3io S9NA== 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=gjO+EMSuj9aylJx8RXimRE/OzbQ9Fo6YhrNiVel9vr8=; b=fQjPviMN+MsIYz+OJsLZ8WTK6ms5W7WJdqvP9vRNhUPihOEuc5PhMXW3VwQRynE0af nI5zhclPJ6eGju/o9SNNt9t5IrOnhv9vzwWPK5KmymGy/SHefC9tZyMUhJG5xt0FNdWc xe6+yjhMHueeWsZlpxDciSERXP7xTQ0oMCuIZ6+svhCbRMUsK3w7nuIrh+FzYSNhZk5F 46DvrmuzgNHiBqxxXw4k6q1OqPSAwwjyBxAjh+Aew10doqZDNPcZATUtmTce0FP3s12r H/ym78Jv5AkzRRBbkn29bs/kPfNUGeUuGLIKbM1cdbF5uTU9/NS/3YbEmjU3/kDcmhOp Evvg== X-Gm-Message-State: APt69E3k+vYGGu+YzQ2KfhcK5LeJEqnWgxYPReJnjh59wV3zFWhPg5AF Cd9a10x4l6wiVSjlWaXAING7AjZmqSYk7qMDRO8= X-Received: by 2002:a1f:d1c5:: with SMTP id i188-v6mr2704497vkg.131.1528888970557; Wed, 13 Jun 2018 04:22:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8b02:0:0:0:0:0 with HTTP; Wed, 13 Jun 2018 04:22:49 -0700 (PDT) In-Reply-To: <20180613092919.24075-1-thierry.escande@linaro.org> References: <20180613092919.24075-1-thierry.escande@linaro.org> From: Andy Shevchenko Date: Wed, 13 Jun 2018 14:22:49 +0300 Message-ID: Subject: Re: [PATCH v2] lib/test_printf.c: call wait_for_random_bytes() before plain %p tests To: Thierry Escande Cc: Andrew Morton , David Miller , Petr Mladek , 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 Wed, Jun 13, 2018 at 12:29 PM, Thierry Escande wrote: > If the test_printf module is loaded before the crng is initialized, the > plain 'p' tests will fail because the printed address will not be hashed > and the buffer will contain "(ptrval)" instead. > Since we cannot wait for the crng to be initialized for an undefined > time, both plain 'p' tests now accept the string "(ptrval)" as a valid > result and print a warning message. There are two possibilities: 1. (ptrval) for 32-bit case 2. (____ptrval____) for 64-bit case. -- With Best Regards, Andy Shevchenko