From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D84D9C433E0 for ; Thu, 4 Feb 2021 09:36:19 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6B94D64F58 for ; Thu, 4 Feb 2021 09:36:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B94D64F58 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E21C06B0005; Thu, 4 Feb 2021 04:36:18 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DD1C16B006C; Thu, 4 Feb 2021 04:36:18 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CC0C96B006E; Thu, 4 Feb 2021 04:36:18 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0169.hostedemail.com [216.40.44.169]) by kanga.kvack.org (Postfix) with ESMTP id B678B6B0005 for ; Thu, 4 Feb 2021 04:36:18 -0500 (EST) Received: from smtpin02.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 76F07181AEF10 for ; Thu, 4 Feb 2021 09:36:18 +0000 (UTC) X-FDA: 77780079636.02.fifth55_2e1573a275db Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin02.hostedemail.com (Postfix) with ESMTP id 556D110097AA2 for ; Thu, 4 Feb 2021 09:36:18 +0000 (UTC) X-HE-Tag: fifth55_2e1573a275db X-Filterd-Recvd-Size: 3328 Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by imf35.hostedemail.com (Postfix) with ESMTP for ; Thu, 4 Feb 2021 09:36:17 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1612431376; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8zfLAgu6wDoaW3SU19yTGtsyEmW59ioXELKxZLdCbwE=; b=mPq6nSDmOCLfCgJlhWDE7QJQ3YOrT63IdBip+SS2scqP/7rFImGYLQsDbLm0+mKsiOVqKL wZ0AC53ucyeGB50YETkEW61MEiFy/8xs7XjxDBi9wch1cf8Qcu/arfjWbgieYXe62qZmyH TOhTuDgEqmHLbtv144hM6h7Dcj8M5oI= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9412CAF13; Thu, 4 Feb 2021 09:36:16 +0000 (UTC) Date: Thu, 4 Feb 2021 10:36:15 +0100 From: Petr Mladek To: Steven Rostedt Cc: Kees Cook , Timur Tabi , 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, john.ogness@linutronix.de, Andy Shevchenko , 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> <202102031201.FFED9547D@keescook> <20210203152513.34492916@gandalf.local.home> <202102031234.9BF349F@keescook> <20210203154727.20946539@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203154727.20946539@gandalf.local.home> X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed 2021-02-03 15:47:27, Steven Rostedt wrote: > On Wed, 3 Feb 2021 12:35:07 -0800 > Kees Cook wrote: > > > > With a big notice that all pointers of unhashed, I don't think we need to > > > print it failed when we expect it to fail. > > > > > > If anything, skip the test and state: > > > > > > test_printf: hash test skipped because "make-printk-non-secret" is on the > > > command line. > > > > Yeah, I'm fine with "fail" or "skip". "pass" is mainly what I don't > > like. :) > > Is there any printing of the tests being done? Looks to me that the tests > only print something if they fail. Thus "skip" and "pass" are basically the > same (if "skip" is simply not to do the test). It prints the total number of tests done. It should not count the skipped tests. We actually print a warning when crng is not initialized. In this case, the test passes because we actually check the value and it is an expected one. > I mean, we could simply have: > > > static void __init > plain(void) > { > int err; > > + if (debug_never_hash_pointers) > + return; I am not 100% sure. But this might work. Just please print a warning about the tests are skipped. Best Regards, Petr