Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp800047ybh; Wed, 11 Mar 2020 11:04:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsOZhQPQyawFOoWIoc/ItM5+n/v9z+zYsBvqQP9iFcuBpCN3XmB15ID73uw6k3A0dLe9L7N X-Received: by 2002:a05:6808:b24:: with SMTP id t4mr2329053oij.72.1583949891601; Wed, 11 Mar 2020 11:04:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583949891; cv=none; d=google.com; s=arc-20160816; b=YuC24WwOahhISTIAFGMdBE/AmQ1LVIl7XDkM0aopTsWiDX5D2jhbMnw0d5cm3CPKcs UkYiN9d3+7JJF/JozcQ4+2FN/04+QpWQpbXec1MQAyv6rmGj0R6/ptlF1PRvfVjgWjRg C0HpWEeolhQdO4W0Px/TreA/z2IEvDuJQ4IvahQbYrWz5xgsAMdRD2vZfYdHX1WCfPCu tyMCz9icMF2zfoviIxgac6yOvCQXSaooZ1YUHfiNlcDyi1mlUolqa1ffBdjWPJZXiN+T F34DaCBOa+Os6eA1u8N32eUVrl5zvTx734PB3afCzMrqQMSXe+RABZ5uYT2Lf4FNMFrv 7j7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xp/kuDFH21IxyWoCaWQBgzRZ9GRATfbeszOSoraKpqM=; b=NzzIGujYbfcixD4eXbGc+yu7xkk0bd6johExqXehD+J1zG75evcNCTfurTM2xEZbv3 w4g9M9KGNSTHKg33uJJGHua7dqM/sbv3gl5ajzAgRNdP0O1D4NNQqRC2FvtzKvmkPrUC NigSRey9Sxe33mXMN8HiBL/FZsxZW+H2U+TNtceaUlaCRP/J4I/CxrM3YVWvp3tHQGs7 1c15h037vtcqUl2/mCNqyX9zAKGonythwulIXh75jOBDK1bd4yZg6jkP72z7xXQUZLcH J5HwZeog/10HqP60h9o6hN5pcdjqu/S5/1gU0carm2pM0g4s/GrUZVy0U5fyzNBb7xTK WCfQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n21si1453342oic.0.2020.03.11.11.04.27; Wed, 11 Mar 2020 11:04:51 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730674AbgCKSDc convert rfc822-to-8bit (ORCPT + 99 others); Wed, 11 Mar 2020 14:03:32 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:37541 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730468AbgCKSDb (ORCPT ); Wed, 11 Mar 2020 14:03:31 -0400 Received: from 2.general.sarnold.us.vpn ([10.172.64.71] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jC5hY-0003jD-1j; Wed, 11 Mar 2020 18:03:28 +0000 Date: Wed, 11 Mar 2020 18:03:26 +0000 From: Seth Arnold To: Kees Cook Cc: Alexander Viro , Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] fs_parse: Remove pr_notice() about each validation Message-ID: <20200311180326.GA2007141@millbarge> References: <202003061617.A8835CAAF@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <202003061617.A8835CAAF@keescook> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 06, 2020 at 04:20:02PM -0800, Kees Cook wrote: > This notice fills my boot logs with scary-looking asterisks but doesn't > really tell me anything. Let's just remove it; validation errors > are already reported separately, so this is just a redundant list of > filesystems. > > $ dmesg | grep VALIDATE > [ 0.306256] *** VALIDATE tmpfs *** > [ 0.307422] *** VALIDATE proc *** > [ 0.308355] *** VALIDATE cgroup *** > [ 0.308741] *** VALIDATE cgroup2 *** > [ 0.813256] *** VALIDATE bpf *** > [ 0.815272] *** VALIDATE ramfs *** > [ 0.815665] *** VALIDATE hugetlbfs *** > [ 0.876970] *** VALIDATE nfs *** > [ 0.877383] *** VALIDATE nfs4 *** > > Signed-off-by: Kees Cook Excellent, these messages haven't been useful in helping users diagnose problems and they look quite noisy considering how mundane they are. Reviewed-by: Seth Arnold Thanks > --- > fs/fs_parser.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/fs_parser.c b/fs/fs_parser.c > index 7e6fb43f9541..ab53e42a874a 100644 > --- a/fs/fs_parser.c > +++ b/fs/fs_parser.c > @@ -368,8 +368,6 @@ bool fs_validate_description(const char *name, > const struct fs_parameter_spec *param, *p2; > bool good = true; > > - pr_notice("*** VALIDATE %s ***\n", name); > - > for (param = desc; param->name; param++) { > /* Check for duplicate parameter names */ > for (p2 = desc; p2 < param; p2++) { > -- > 2.20.1 > > > -- > Kees Cook