Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp235724ybm; Thu, 28 May 2020 21:50:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxN+z1phHh32FnMtrlJQPI4bCgCjP7t4p0B+Fode3FPNbitCqMmE4m1STcOi2zPygDALK7v X-Received: by 2002:a17:906:d923:: with SMTP id rn3mr4645703ejb.261.1590727806424; Thu, 28 May 2020 21:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590727806; cv=none; d=google.com; s=arc-20160816; b=CWxnAix0ihm5fqJshcvBfP1Ie+Ltmc+W9rxJVHKhp6+cKaqhsUK2S2FHyTD3WjE8X/ LoqtOsFWgczyEBR7osx6xUmhC8HvpTGna6JhwqijyvcFt/567uRy7+0TBFI0ZHuguUTN eFUPMAytvyRQubusECO1qUJDgoeYU5KkcmyYjDcNaNDdqha0tTiBTNEaMvx7AYLg0Gzw 7SShA2SxovSZNPY8e5Kn3Y0R/qdtQMlsvFNxqU9/hg/VB/0LArX5vn/0KmusfbpZcdRk E9I5zF6nUmw5+SvwCGlD2JcYMwwBH1jUFM+v3EnYZLJJT/gHoKAH7Sb7ps7zRoyL0bQf FGOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=5c8WVe1CyE/WnVcQyscxmmOguwjI/vCNGz8A7vAlmOY=; b=JXd5mx8xYSMEKmBfVAnqv/6oKVTjBOdNhO+a73SlMN6PXoNTsXPy/qqRPM8rjFlQEc dEMOckSHQRyu6rMG41/Y1vYiRgfkj3BtH5Dk0G8KVMjA5R302/vjefXD3F5uiuaswpG+ ZLK0Tt0ezQMn5OWNVSMyQs87xr+HxkClzgd3PuxjxUEPk5wGOPYubPszo/M1QJmR/c4D ZYCEvnvuvEQyKJmUNAOXPAqv9eXAM4zr/Oo7+QZ7XFKRzhPFcaQ5dfHR2Vq2cESYNqtz CAyCVLDCiycl7xJQ+oJKVwMS6z4nJuVTJ3H1/+NV+sLizVfANEQPBgyH/CKOg1qHwImG 3GJg== 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 bc22si683127edb.368.2020.05.28.21.49.42; Thu, 28 May 2020 21:50:06 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725828AbgE2Er4 (ORCPT + 99 others); Fri, 29 May 2020 00:47:56 -0400 Received: from www262.sakura.ne.jp ([202.181.97.72]:62675 "EHLO www262.sakura.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725601AbgE2Er4 (ORCPT ); Fri, 29 May 2020 00:47:56 -0400 Received: from fsav109.sakura.ne.jp (fsav109.sakura.ne.jp [27.133.134.236]) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTP id 04T4lq3r004873; Fri, 29 May 2020 13:47:53 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Received: from www262.sakura.ne.jp (202.181.97.72) by fsav109.sakura.ne.jp (F-Secure/fsigk_smtp/550/fsav109.sakura.ne.jp); Fri, 29 May 2020 13:47:52 +0900 (JST) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/fsav109.sakura.ne.jp) Received: from [192.168.1.9] (M106072142033.v4.enabler.ne.jp [106.72.142.33]) (authenticated bits=0) by www262.sakura.ne.jp (8.15.2/8.15.2) with ESMTPSA id 04T4lqYR004870 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 29 May 2020 13:47:52 +0900 (JST) (envelope-from penguin-kernel@i-love.sakura.ne.jp) Subject: Re: [PATCH v2] twist: allow converting pr_devel()/pr_debug() into snprintf() To: Linus Torvalds Cc: Petr Mladek , Andrew Morton , Linux Kernel Mailing List , Dmitry Vyukov , Ondrej Mosnacek , Sergey Senozhatsky , Steven Rostedt References: <20200528065603.3596-1-penguin-kernel@I-love.SAKURA.ne.jp> <20200528110646.GC11286@linux-b0ei> <13b0a475-e70e-c490-d34d-0c7a34facf7c@i-love.sakura.ne.jp> <6116ed2e-cee1-d82f-6b68-ddb1bbb6abe2@i-love.sakura.ne.jp> From: Tetsuo Handa Message-ID: <19d377d3-8037-8090-0f99-447f72cc1d8c@i-love.sakura.ne.jp> Date: Fri, 29 May 2020 13:47:53 +0900 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/05/29 11:24, Linus Torvalds wrote: > Some flags do end up having to be practically system-wide, because > they end up being used in contexts other than the test environment (ie > anything that ends up doing workqueues or networking or VM or whatever > - it's a "global context"). Right. And since fuzz testing can't determine whether it will involve "global context", the options for fuzz testing (currently referenced as "twist") can't be "per process". It might be possible to make the twist options "per boot", but we are conflicting on whether making the twist options "per boot" worth the effort. > At the same time, some of the flags might well be "in the test > environment" if they act on behavior that is all synchronous. Then > other testers can use them on production machines for testing, even > when the kernel might be used for other things at the same time. I don't think that people use their machines for testing and non-testing at the same time. When testing kernels, people enable a lot of debugging kernel config options (e.g. KASAN, lockdep) because finding bugs has higher priority than faster kernels. Some of debugging functionality could be enabled/disabled using kernel command line, but it is hardly possible to convert such debugging functionality into "per process". It is much safer to run a qemu-kvm instance on their machines if they want to test kernels without affecting the rest of their machines. > And absolutely none of this should be named "twist". If you can't make > a config have a sane name that talks about what it does, then it > shouldn't exist at all. CONFIG_TWIST_* options are analogy of CONFIG_DEBUG_* options. The TWIST part is a prefix for grouping. If you don't like the grouping, it is just a matter of renaming CONFIG_TWIST_* options. > And making that a build-time option is the worst of all worlds. Can we avoid discussing "the config option naming" (which is build-time things) and "the kernel command line option" (which is boot-time things) at the same time? What I am saying is THE TWIST OPTIONS ARE INTENDED FOR "IMPROVING THE QUALITY OF KERNEL TESTING" which will in turn help improving the quality of kernel itself, and your insistence on making them boot-time things (which might increase flexibility for users) can decrease the reliability/robustness of testing.