Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp974503pxb; Thu, 4 Feb 2021 01:41:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhC9fZJr28zWTZ15pTX0Bg2k6JueDEE8L0io7SuC9J7NbKat2vHe9bCciyLQ3OVyZFApIK X-Received: by 2002:a17:906:398c:: with SMTP id h12mr7183538eje.469.1612431671327; Thu, 04 Feb 2021 01:41:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612431671; cv=none; d=google.com; s=arc-20160816; b=p4fvUJD5Wf4UQXva7fzbu2wQbcXIh4AxLJ3lj7pyyj8r5Bbv9nLv8K1KCUEW3FQKTD 0sna+emwXlrGFYG478fexlViLjioDNygrBlN2rwuTHmRF4kWcO2SaJck/+H7YKLn9ZZQ DhGH5ZRTb+fg1mImt/xVmWBOloBdSCFFI/d5h1KQ+mXHtZFlChBUmMpInBiRdtJmRciA qzjPsereb4/+CE87RO2KE65q887p7Ezh9Vhi40Yh5Vzp6GWRBMtzXr4HTPnJGKOsG48c 6DrFR29/ztUDsBYC+BQ/Xy6oSwL3deuTT1zo5ov7EGEIy2YR/eViaDp63YXbPsErWHJ4 BXgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=8zfLAgu6wDoaW3SU19yTGtsyEmW59ioXELKxZLdCbwE=; b=Dj9QA/DpbUPqEZRswWF893/5PHcjGGZ9vzDINQZOBTqbicLYuH0nKiMrKlgRWUlT/f qRy6TcK8jOYjSn0WCyylSq6z7d8McDuw5aiuXxFUDbSIUJwUemA+8Rfq7Utdo9f6PEOm dL73THW8+VM5xeuPDcms4068nMM1qRrree02XJFNfx3h3bYKqQXAzZDOtREOx44CKn2e baZms4pstPl0j2vye7mYVu9sD+3grIdsdV0DZwhbrU9jA0etbS/cHZc8kwT2FNor8Uyn m1Oi+ZhmVVXXVerRdW0gaNCJXXRTuTpvwwhLGmibzWCGyWy0ihy6mYsDV5+o+DqbLKyB 0TVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=mPq6nSDm; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w6si2895630eji.661.2021.02.04.01.40.46; Thu, 04 Feb 2021 01:41:11 -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; dkim=pass header.i=@suse.com header.s=susede1 header.b=mPq6nSDm; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235273AbhBDJhH (ORCPT + 99 others); Thu, 4 Feb 2021 04:37:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:41882 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235226AbhBDJhD (ORCPT ); Thu, 4 Feb 2021 04:37:03 -0500 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> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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