Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp603003pxb; Wed, 3 Feb 2021 12:52:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJycR5XYg2QMsxOfB5kL/xnQdPqpdfJ3lbyj0iMR7uyW8SsGX8h+6ORw2tEzk5ctCBJoi4pL X-Received: by 2002:a50:b765:: with SMTP id g92mr5049724ede.317.1612385554147; Wed, 03 Feb 2021 12:52:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612385554; cv=none; d=google.com; s=arc-20160816; b=r1pMZ/rYZGAaAOV/40b0YTebeLIesEQW8tFD3QuJkXudfNReMEMPGZ+MLos+5Xxidc kge76qV73pgVw6mZ3BX5yiWHEwY4znqfp2mUBEe0N1yh32lAANVaOAuy9RLuOhdsaR7L BH0NkTC0aO0j+Tlfg2gWvnQC15o0YRR2EnQb94FAMHtX/pxh9+RhE6fzvt9dRqDvqr1T +aPi8zq0O+ZMK7D43o42aR2mRtdNxzR8J9Zq5b1svRgi/7GMIkjQS+YSGl58Yyd/QfFE 5JfEfvbDtHxcXzaX/waMiUTXYlvkkxT8Y7f0spYGPtNcy3vuHpQfB0BNH5ivYLaSnSFt 8x5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=1f8beKmCqmBJ3xL4iSBo4JbiLPQFFIlgxs0wtnPA2p0=; b=MR9oR7pFe446T8/u20AYLqrLtkPPuXDpOYR26ZV/NZWU/kQzPAs9sI8etZ92HfWRC/ 1GHYNtSkoMvYkn8J2iDjq4N+gbRd929Pm913ddqDmXwkLVYR+37DKuGAaMfLmix0/VeQ xDyKtAP80KiWbou07WFFzYIxRz/vvmD7VvFAna2yoLE4G6PYyDtxOfFyzUa/qEp+1XxG js4wo37dKklXp07WqOuzfRFvp6v4zu00E1/7XpE8HxEwKnByShTJFx4Zm7oj6I35yarI wiaxevZaOZUNxh5Zh53FLlFlXlzZyXYpNDbmaqYsXXwYmWP+M5N2FHJKDXbEZYM/pmqX v21g== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r4si2645279edi.177.2021.02.03.12.52.08; Wed, 03 Feb 2021 12:52:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232487AbhBCUuI (ORCPT + 99 others); Wed, 3 Feb 2021 15:50:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:54484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232389AbhBCUt3 (ORCPT ); Wed, 3 Feb 2021 15:49:29 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 760A360234; Wed, 3 Feb 2021 20:47:29 +0000 (UTC) Date: Wed, 3 Feb 2021 15:47:27 -0500 From: Steven Rostedt To: Kees Cook Cc: Timur Tabi , Petr Mladek , 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: <20210203154727.20946539@gandalf.local.home> In-Reply-To: <202102031234.9BF349F@keescook> 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> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). I mean, we could simply have: static void __init plain(void) { int err; + if (debug_never_hash_pointers) + return; -- Steve