Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp556803pxb; Wed, 3 Feb 2021 11:34:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyg8YZljrBlwqhVLCOa6IvWKQahfvlOXIJ9D4SRyiusKdBoGdd9aGeI0chja+ISJDhP/EX X-Received: by 2002:a17:906:76c9:: with SMTP id q9mr4809739ejn.484.1612380885714; Wed, 03 Feb 2021 11:34:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612380885; cv=none; d=google.com; s=arc-20160816; b=LSRkPdPwl0ZOIzlfwGcXlKLBupjRfLcil2Nq/1tDtB7GJQ58RZ+KsZbqlDnE7tpB6Y 4AvXEIWoXeyDqHWFph0qkHgOaVuad9eWv7t+Ge3/+ObBkBy9ALAhcq2v4OKlaEh0K+s3 7yElUFCOoEnKi5md80RSTS6dTLXgh4wtDCKeaispgiV/SrzYoZGc+2Hw2VxWj9o9zBfc IKvkseeV+R0miRVLpfMkp98fCgthwXTh6544l+/4ykyeJB5Zb4cyksATupUbC6WFcHRJ to46YBXrW0IzCwqgeefA3+PvYOmlTt7rHBIjxkQihf+BEiiS4HBcGXJ9L2KPHN72tUuC zq3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=KAUr5E+NZ8v/8wXuCSD+sS6EVUIW4GCk68VLgnASnKg=; b=z88YGrPPlFJauJP8XC6idP4P70OMfY0s/adpveTbB4ELKeEKBZzMZMd82r2ycMLRsl SgGT1TIi66zqzCqSXKziEZjU9Xswj3AjBrF1i78bJnuOVJKWRSnM27HE8X/otzRcYpoN pRuZ9idjg+T3DPHRI29H+H7H2OpFmIE0BrRvruObgWVs4a0rgVttiprdFQoF8N+YwVD1 Z8TO3tbUmMrzdKRJobFftsBIs84RefeDR9sPRyzvc5QXvGI6hVTxCHglC/mq5bjsbWJd cxpPje/u3mMZkVsazFc9MLtb2JVv/kKq5KoBWTmQsQ3lcWCBfIs0XeKr3O74GpSXZmNZ w6Gw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b3si1877274edk.600.2021.02.03.11.34.19; Wed, 03 Feb 2021 11:34:45 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230124AbhBCTcU (ORCPT + 99 others); Wed, 3 Feb 2021 14:32:20 -0500 Received: from mga07.intel.com ([134.134.136.100]:38621 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbhBCTcT (ORCPT ); Wed, 3 Feb 2021 14:32:19 -0500 IronPort-SDR: /W9l062rcCZ9z29mYqOUwV4+VpY4L42/UYs0LK79IfZbfIl3G2M5oSubHi4FYeP83RoE5P0B1E SIZlqort0w3A== X-IronPort-AV: E=McAfee;i="6000,8403,9884"; a="245178857" X-IronPort-AV: E=Sophos;i="5.79,399,1602572400"; d="scan'208";a="245178857" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2021 11:30:31 -0800 IronPort-SDR: rk+x0kdRJQ2cymIKplWCGUcSjS3JrXe3MwBpXeb8yoLu7a7kPaAwIFvRxBkTgfW8d4dCqcFn6k bIbIw7/7T1ZA== X-IronPort-AV: E=Sophos;i="5.79,399,1602572400"; d="scan'208";a="406761288" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2021 11:30:27 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1l7Nr6-001iCt-9m; Wed, 03 Feb 2021 21:30:24 +0200 Date: Wed, 3 Feb 2021 21:30:24 +0200 From: Andy Shevchenko To: Timur Tabi Cc: Petr Mladek , Steven Rostedt , Sergey Senozhatsky , linux-kernel@vger.kernel.org, vbabka@suse.cz, linux-mm@kvack.org, willy@infradead.org, akpm@linux-foundation.org, torvalds@linux-foundation.org, roman.fietze@magna.com, keescook@chromium.org, john.ogness@linutronix.de, Rasmus Villemoes , akinobu.mita@gmail.com Subject: Re: [PATCH][RESEND] lib/vsprintf: make-printk-non-secret printks all addresses as unhashed Message-ID: References: <20210202213633.755469-1-timur@kernel.org> <19c1c17e-d0b3-326e-97ec-a4ec1ebee749@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19c1c17e-d0b3-326e-97ec-a4ec1ebee749@kernel.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 12:58:41PM -0600, Timur Tabi wrote: > On 2/3/21 7:31 AM, Petr Mladek wrote: > > Also please make sure that lib/test_printf.c will work with > > the new option. > > As you suspected, it doesn't work: > > [ 206.966478] test_printf: loaded. > [ 206.966528] test_printf: plain 'p' does not appear to be hashed > [ 206.966740] test_printf: failed 1 out of 388 tests > > What should I do about this? > > On one hand, it is working as expected: %p is not hashed, and that should be > a warning. > > On the other hand, maybe test_printf should be aware of the command line > parameter and test to make sure that %p is NOT hashed? test_printf.c should be altered accordingly to avoid any failed test cases. I.o.w. you need to have some kind of conditional there: if (kernel_cmdline_parameter_foo) expect bar else expect baz -- With Best Regards, Andy Shevchenko