Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp76190ybh; Fri, 6 Mar 2020 16:21:57 -0800 (PST) X-Google-Smtp-Source: ADFU+vu5ueoivXm0yPb4hMJIoNQNmGzOE0+yqZVzx+AycpCo+SEI+ynq13INY0RJpn0gGCitkgFx X-Received: by 2002:a9d:6254:: with SMTP id i20mr4874378otk.130.1583540517391; Fri, 06 Mar 2020 16:21:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583540517; cv=none; d=google.com; s=arc-20160816; b=b7OTIRC/Sf860Br9O4c4vFDv2OqP1PIyHH1yq614K0uic963wwrnXm82VHMmtkPPJY 4LKelzmtU+9nBLTItOrP7lFysaML2+SphmeVejTIl8qaaR4rR9i3rDEX0JYFH49v+rOF ZWK/ZkulBzlkVosznvSI/8OG/mPmRkywlA30YlJSamy6+7sDkmMAIRocFfBeYVSztibd T7uvNiTCLO02cgYU1FgO/hCwpK4wUrtrZ6xDSM0nbsEpLlHUHoIQO4tIjTHjYCWktG3/ EtZOv6QXYnlmt1PlpK9OvHLIJKyqINjpA/bvefBzHw0YDhlvXCVXWbV1nUuBo5uGjhjq luwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=34J28lgHrpYhHjKOEF2LFXrP2R68/iu1HhoAglQIiu8=; b=Db4ttUgW7XEkbGpQ5tqgBQvZfTRInwpJOiuJoTjuuehEbv6G9DRdlGK0pAOjHLuEwa DuNq1vMwtRaCrd6Wx3Ym0Be+hhWW8LxK+11h2oEYL9lQBAtVCOyJao4T7+j7mHcmekPV QaFlUcLJAdacUk1NzQGjMYFSxB3USCcW/dI56VQoGPxgISO8gwp0mnoK2ouITGPCdsKU ewY91Zb0kJyA4IVNbwHCu8lYDarg+3K71IJMrLY/31p7A9qGMNPrA/4DLd7Un0SsubIZ TrHr/vH7UhuswC63+gcryBocoZ18dVpG0B5tpo9E7tULyBTJy39F8lMSR7YRZcCyv6nW vNdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=j1sLhFYa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q124si529935oig.228.2020.03.06.16.21.45; Fri, 06 Mar 2020 16:21:57 -0800 (PST) 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; dkim=pass header.i=@chromium.org header.s=google header.b=j1sLhFYa; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726988AbgCGAUG (ORCPT + 99 others); Fri, 6 Mar 2020 19:20:06 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:38242 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726314AbgCGAUF (ORCPT ); Fri, 6 Mar 2020 19:20:05 -0500 Received: by mail-pg1-f196.google.com with SMTP id x7so1820448pgh.5 for ; Fri, 06 Mar 2020 16:20:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=34J28lgHrpYhHjKOEF2LFXrP2R68/iu1HhoAglQIiu8=; b=j1sLhFYaHguaJXa97cYJ42mzQj+XxEOiLC8RHWmJdh65QSlxFjrxBP498kLkxgmGnZ guiewPA+UUcIG15xzS3RPoskofT39l8eZkbG5nMxs3/mZyDtfJI6Yez3lwWzuAgCnm+z 4etgWiZOirvqtBmuG4qy8yK6L3fIwsx0AmhrE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=34J28lgHrpYhHjKOEF2LFXrP2R68/iu1HhoAglQIiu8=; b=J0pM2h2W5YypgkUIYYJB+Mw9w0xF9UQ8VLlOPD/Eqp+skahOwu33xAmi7NumjshYy+ NNrCrHmc47b7CpqTcgYNwBKnjJqH12PL+VZTG1FUJ0wf1HcvsAPsnlDYBO73AjM9BfE+ qdP/O5k3ArxWJ/DW2lD2DNzQUBk1jPgQPCUJMJkmb81IkS07jcKIr41slm/7ukwbujx8 2KCPViEfzhqV+eqyROg+ZSN/2ijzpzfaj01XYDYUh5D6+K8PphgntCwA1AbTJl05avKS 9PSjErgWXDGt90OnJCDjTYckaJQNpUk/tgxzpc4ybmd/XEXSGESU40YV5Yr01zVcbaz3 pYMw== X-Gm-Message-State: ANhLgQ2xevys5tJ+O5Zw46NkSL+Jm/nSa0F9dCln0cc8m92KlqJh+CTw 6KiNevCNhQCc9Au84Q5APMKgTaaGeV8= X-Received: by 2002:a63:fe0a:: with SMTP id p10mr5484311pgh.96.1583540404467; Fri, 06 Mar 2020 16:20:04 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id v123sm11797272pfv.146.2020.03.06.16.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2020 16:20:03 -0800 (PST) Date: Fri, 6 Mar 2020 16:20:02 -0800 From: Kees Cook To: Alexander Viro Cc: Andrew Morton , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs_parse: Remove pr_notice() about each validation Message-ID: <202003061617.A8835CAAF@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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