Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp168816ybm; Thu, 28 May 2020 19:28:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaIHxFKBhrTIIhmfsZvj327vzQk6gfwQVjH2mbSE094/fZiEIFmHYVbQIgD4bkitINBS7e X-Received: by 2002:a05:6402:31ba:: with SMTP id dj26mr5875309edb.360.1590719296211; Thu, 28 May 2020 19:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590719296; cv=none; d=google.com; s=arc-20160816; b=QXQUjuGo3dIcc2U64UgVLjTS/mkUVZE8bRPkZg07whnFC0FjgEsrlz1Wx5GlNCfJXB wempuDczSFeVa8EE7pVGV6i0bwchQZQPGkva+aSPp0cgbc+CvaGK+TCl1DNfYZacn3m2 XzolT2BuovDVeKAfpnRNOFEJFswXyRcPgRwTXYcf8nFueCRIWNWDqTTgch56EsNH2IqZ rdHtCGdCrZY+JWk5MV7agjQsBo8UW+RDnU/09/aIGxBYGCNM7S8OaFOECKT6Dn3J1Nom JbFzlsxMlFUJqFTc8mLzcwSF33aI7Bbp7Mm8QTQcLZOz6H9C8OH1/XkEru+8PhSwKhQC JZHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ONa6CuPxkOqIgk/WD4umBDCRhNX8IRtUPeSQktiBLgc=; b=NHZzE4beJlMNQKlKbP4pEJVcaQ2VjzV8sUCwAgzHUiveSLu83iYHuRyWzdFC6JdR/W DGPspxzGbz2A0N+jhSvzEhKOix1gaAp+/IhhcBf0xyiYSXZK5vrTnGzxZKOjKF0/jeKV J8UUzjN2dHziApKaOkxLF9C1Dsct8Mc7+zldsI877zlNfkp9twbgiYAsJxpGwLCqDJrt k66jSzANCBvD7olhhbbjcMc09t4MyIGyVDRAa4E42rvwsyffmYupebPjlTEYyR/1/HuC t6RIg+DrbFuHdPMO1KuDG6K6gnuZHTbGSG3abXk5hsQuedeWhNPB4KjREbpDtzF4voAL 74AQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IUtiUtqF; 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 do5si6257036ejc.105.2020.05.28.19.27.52; Thu, 28 May 2020 19:28:16 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IUtiUtqF; 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 S2405319AbgE2CZH (ORCPT + 99 others); Thu, 28 May 2020 22:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404312AbgE2CZF (ORCPT ); Thu, 28 May 2020 22:25:05 -0400 Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45A5BC08C5C6 for ; Thu, 28 May 2020 19:25:05 -0700 (PDT) Received: by mail-lj1-x241.google.com with SMTP id e4so682352ljn.4 for ; Thu, 28 May 2020 19:25:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ONa6CuPxkOqIgk/WD4umBDCRhNX8IRtUPeSQktiBLgc=; b=IUtiUtqF2PtXjjJP12hGeZH2Pklr0srp0Yox7oJ7CbquVwDACOdUv4mHI55w8wqbpU nk5Uz+wTotTYBSZxKEWd0U+zLd9M2RSZXKUWzh5tStLdBfkZtLAC2HlOPZ3L5FnW+nmD WygaQMcqNkJVXPHcSRNeV8qZZEjut/WB+rfBU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ONa6CuPxkOqIgk/WD4umBDCRhNX8IRtUPeSQktiBLgc=; b=L+Hc5lJT4Dr4G1Xvc6xp/vhJ8n5rTJrOp7HurGjf6zIotblQl1lpwm8V6SuqC9hXFk fxmnODT/Vkbxj6USKbrYuQBiz+W2l1md0ZVkwBFZ7dw5RwDtYhyFcs24PyDy29a3MxFM LeTa1bmL4Ez6jIP8yh35j96llOqbW01mHna1JwRKFy84i3ezH5jruQ0NzVGLPIPWU2ht TFO0LoZ9PCLVUwnjdNi2/pWp3QSpldQVPPHPjpKgrFvjSbgdsmj/uWPZk2EAtitaM33F 0EOx9UsdFzKanL9NOQPjIo3gCJ2b7xueHKP8cgNcT8RDNSwDSqegsoaUoQF7Eaj1+/vv 98qA== X-Gm-Message-State: AOAM531Qyi4/laKdmufEBX+V2PGc+EYEV24rEVRarpD0LCNJa03q5W7J Lc+QIm+H+Wi4lRm+KxufFbB/DgpXRmc= X-Received: by 2002:a05:651c:1028:: with SMTP id w8mr2378082ljm.136.1590719103222; Thu, 28 May 2020 19:25:03 -0700 (PDT) Received: from mail-lj1-f179.google.com (mail-lj1-f179.google.com. [209.85.208.179]) by smtp.gmail.com with ESMTPSA id k5sm1749212ljg.13.2020.05.28.19.25.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 May 2020 19:25:01 -0700 (PDT) Received: by mail-lj1-f179.google.com with SMTP id v16so652875ljc.8 for ; Thu, 28 May 2020 19:25:01 -0700 (PDT) X-Received: by 2002:a2e:7e0a:: with SMTP id z10mr2942818ljc.314.1590719101235; Thu, 28 May 2020 19:25:01 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <6116ed2e-cee1-d82f-6b68-ddb1bbb6abe2@i-love.sakura.ne.jp> From: Linus Torvalds Date: Thu, 28 May 2020 19:24:45 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] twist: allow converting pr_devel()/pr_debug() into snprintf() To: Tetsuo Handa Cc: Petr Mladek , Andrew Morton , Linux Kernel Mailing List , Dmitry Vyukov , Ondrej Mosnacek , Sergey Senozhatsky , Steven Rostedt Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 28, 2020 at 7:14 PM Tetsuo Handa wrote: > > You said > > Some kind of "not even root" flag, which might be per-process and not > possible to clear once set (so that your _normal_ system binaries > could still do the root-only stuff, but then you could start a fuzzing > process with that flag set, knowing that the fuzzing process - and > it's children - are not able to do things). Yes, that was in a long ago discussion. And I still think it's actually possibly the right idea for several of these flags. 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"). 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. But the point is, NONE OF THIS IS CONFIG OPTIONS. 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. An option like "disable-sysrq-k" is a fine option. It might make sense. In fact, it would fit well with boot options that we already have, like "sysrq_always_enabled". An option called "twist-disablke-sysrq-k" is just odd and nonsensical. And making that a build-time option is the worst of all worlds. Linus