Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2152956pxa; Mon, 24 Aug 2020 06:44:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyksjPMMMGc+WQXsZctlV76uvxyuFjRVmYO2evjFFT5p0T3pyZ8f5KkNRtYX+1iLy6R7a6U X-Received: by 2002:aa7:c357:: with SMTP id j23mr5469967edr.228.1598276655789; Mon, 24 Aug 2020 06:44:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598276655; cv=none; d=google.com; s=arc-20160816; b=bj8Tr1gK8FH2hRoim1eD015GawYOKhXWwqGYS6ucrsCJrh0oGu9Kb1jttgOOIfAfl5 7KN4tkm/qYOXNAVq1qOX5JWjvB6zDRYlamdKobMFTL53v3qLcSBxTrsRpNxstTF9KbVx golaAHes/XQ4Xb0XGJh99aoW7+ga/bF3a41N4yR19/XTtHSVbKR6dsPSACM4zY/LV8PG tI29zrgE9qjNhEOQkw3uTPkraQHoTOQnD9YBB0r7ROAT3bvLdlEeSJuGzW1CaaVVnr0B pAt8OHBlXCqisiXWJPfbsc3rjiqVkk3rO3e7su89ZaFJ+4sMnpvCuDQWyAAniUjtnCOU t8Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=pvcgs2EibhNN0Ttcsn4VHhgI/eDKwO4f8s0eWqUYqFE=; b=wDjeiup2jBqqhn5I2X01OhXL0M1AyqU+RVAHQ7vKgziUqqwW0/8v3ZNAI76W+SAwDj X22uz4JC8v/rfDn8gmmJlooXRvRWpzOKSko8d2bhrFWm8w/Gdnowb0a3fMwSwHyk8KsQ 73TWkgK2qBOh3fMiPWa5YoTSah94s3yFxmeQ8HfVIZHgA4QfRccIxNnOIAM7l58NpwV0 H870AQf3aREiC9E64OOq4Ru8n/7NyYtlSkqOsZU5bpcEJJJm82fIRH/R0vC0hMBxBEA9 geAlQOhdF+D2/xeGFLuawTGz4D5Ibp8A6sRw0KLjH6zpqC0YBLQI2pWt/cJDghmaXZ4H Ooag== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id kt14si5966259ejb.281.2020.08.24.06.43.53; Mon, 24 Aug 2020 06:44:15 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728014AbgHXNm2 (ORCPT + 99 others); Mon, 24 Aug 2020 09:42:28 -0400 Received: from mga14.intel.com ([192.55.52.115]:17372 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726672AbgHXNmJ (ORCPT ); Mon, 24 Aug 2020 09:42:09 -0400 IronPort-SDR: zPUeZQ1ZncsOtysqL7HIfQsMymC7fwyyb/WfZ9Fuj1sgiH1kM27EYsYPWcXzl1P9/MjVAi/u0h wcsBg9NHpaQA== X-IronPort-AV: E=McAfee;i="6000,8403,9722"; a="155156390" X-IronPort-AV: E=Sophos;i="5.76,348,1592895600"; d="scan'208";a="155156390" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2020 06:42:08 -0700 IronPort-SDR: XYoz56cnWHEh/TtP8sFPmHAc57bNIEbmv02UhHOOlBUJeEwoXp2qYNW8TQl4daQYOfT2pkktxe E72b+EY769Pw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,348,1592895600"; d="scan'208";a="328489122" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by orsmga008.jf.intel.com with ESMTP; 24 Aug 2020 06:42:04 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1kACjZ-00B4Tx-Ln; Mon, 24 Aug 2020 16:42:01 +0300 Date: Mon, 24 Aug 2020 16:42:01 +0300 From: Andy Shevchenko To: Steven Rostedt Cc: David Laight , 'Nicolas Boichat' , "dianders@chromium.org" , "groeck@chromium.org" , Andrew Morton , Daniel Vetter , "Guilherme G. Piccoli" , Kars Mulder , Kees Cook , Masahiro Yamada , Michal Marek , Thomas Gleixner , Tiezhu Yang , Will Deacon , Yue Hu , "linux-kbuild@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v5] kernel/trace: Add DISALLOW_TRACE_PRINTK make option Message-ID: <20200824134201.GM1891694@smile.fi.intel.com> References: <20200824105852.v5.1.I4feb11d34ce7a0dd5ee2c3327fb5a1a9a646be30@changeid> <3f84781f12424cbfa552981af42dfaf2@AcuMS.aculab.com> <20200824092828.4386bd25@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200824092828.4386bd25@oasis.local.home> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 24, 2020 at 09:28:28AM -0400, Steven Rostedt wrote: > On Mon, 24 Aug 2020 08:26:13 +0000 > David Laight wrote: > > > Since the objective seems to be to ensure there are no > > calls to trace_printk() in the git tree, but to allow > > them in uncommitted sources. Why not use a config option > > and rely on rand-config builds to detect any 'accidental' > > commits? > > Because we don't want distros to ship with disallowing trace_printk, > where someone finds a bug, sends the config to a developer, who then > adds trace_printk() just to find that they can't use it. > > The point of avoiding a config was to keep the burden of having the > developer needing it and having to then modify the config given to them. > > Also, it would then prevent those developing modules from using > trace_printk() in their module if they build against one of these > kernels. > > Finally, there's debug code in the kernel that legitimately uses > trace_printk(), and those randconfigs will trigger on them. How making it make's option prevent some "smart" distros to achieve the same? AFAIU any compile-time knob will allow to build a kernel w/o a feature and you are against of such kernel builds in distros. Catch-22? -- With Best Regards, Andy Shevchenko