Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1641289ybh; Sun, 8 Mar 2020 09:14:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsIQ9GpuX8jakTmXCX8JOk7MO6har0aUB/IxaGhLppR6m+MDHaBPsqf10OEgf+8qpOvpx1Q X-Received: by 2002:aca:b589:: with SMTP id e131mr9044941oif.82.1583684083172; Sun, 08 Mar 2020 09:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583684083; cv=none; d=google.com; s=arc-20160816; b=a9Ek9JF2+bwGJm/Mp1V648o9h/jGpFscv2SXgtfY8AqqSlIV3vNwPLk67LexCjTjy7 zWzP+jhFtdvGzC1kX8RFsoQeAHQ7AYIilS1ukbGNR56GDVBEmQtAV16smAGd1FEaNHs4 58WD45Rr8NiZQNcgb4D8neoh+e48HYOCnbW/7pcotW/l6iXXpclKtcSkIUsHrlIjcWJt gIDrBNgFVmlCwqPsdc34lQ6Hr6XROm7YRWjit83mlm9baSXK2l5S+jj/1XlaKYdsJRGi LfZP9IjKFWA4Zscp+tDXLBykC72S/A9RIPTdDPdYZycX0FkJq50uKdZ9rvMCLGWNTZUA kCIA== 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=9fflaZi2UDVZ02k3k/RokCFQn7Pfzg3BqnCFeFHrwcQ=; b=SOuv3vLdje+0hGTs0+4yAjm3D0wR/6UvtbGtG30zc0gFgchZODg3DA7nqCk0Mg4mWI zxlLTIcy9HWcY8wGO9zXKSklcRLcN4VZQST1+fnLE9WWTKW7ChDYPck64pHNDxN+8U0m V8yIezyx63SVZ/+jccdZCGZ/PERKdoEjW6HaK7HZevYG1QrnrKNj0DapPKZnCAi384UP YKuvJEUOENtQToeR0fFgZbLmizlvccQ3WIT/vUpjqbnsQy3IwjFeYWqOZi/Pd5JtWAIb NaYhGYxFbCG7uKKD5ukZ8MJLM6FS6+sFcRukLWBZb4VudxFuV0tkGGhG0yuy6FyXEhhH 8m4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b="Ux/BYy2D"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si2716421oia.236.2020.03.08.09.14.31; Sun, 08 Mar 2020 09:14:43 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b="Ux/BYy2D"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726347AbgCHQNj (ORCPT + 99 others); Sun, 8 Mar 2020 12:13:39 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:45506 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbgCHQNj (ORCPT ); Sun, 8 Mar 2020 12:13:39 -0400 Received: by mail-lf1-f65.google.com with SMTP id b13so5607505lfb.12 for ; Sun, 08 Mar 2020 09:13:36 -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=9fflaZi2UDVZ02k3k/RokCFQn7Pfzg3BqnCFeFHrwcQ=; b=Ux/BYy2D/0BDknBxP5XF9Vb2SrCqej/YbyUgzxQBobI82+SW8igeOOJgYKgOJtn91T mETvuGT4urqeqoyB0ElzLJdBrz2kvodpdZjNjutIhUdQqLnc/A1fHT2rat/oT0va8VcT w+SBkQpVXN5KHhjtJzkptAkJQugKS/A3o02yQ= 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=9fflaZi2UDVZ02k3k/RokCFQn7Pfzg3BqnCFeFHrwcQ=; b=EI87H+rGqy1wZNnf0Wcez3DzgkAUoZYifsGoKYU9EOd09JdHGDFxuL9F/1JZhpVVrp tf/lMD9jez4prVLFDeMnWJoIeEiQAyEJ1EKMYsbzD8iFcoRffQsxOdSuf1uhx6YaZ8vh oOvzkw3OP7UA/URnOhmZ0yvYryYIX3t4gnpSPHjDJJS6ArNF+CamXZolZjnDTQlenmLt truLNL5+hCkF5oWSNNjlLT+nohYyCAZZfIZ+64xJMW7+lHmklY63iMOB4DjbJiKa0OaA VP/0NtCGeyvvKArF/nETDoUdWzO4I3frHlIArFCk+ZCEqy+bwsn6uL3SJN8b1lYL+QuB Ehhg== X-Gm-Message-State: ANhLgQ3UxQOz4fLsHooiklUN2p4WwuNTKk9cZy2CqXK2lb/+i//SzWV2 znljWZZT+7RlOTYA42O5Abe/M8W6y0Kzpg== X-Received: by 2002:a19:4856:: with SMTP id v83mr7216667lfa.151.1583684014526; Sun, 08 Mar 2020 09:13:34 -0700 (PDT) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id l8sm6197291lfc.31.2020.03.08.09.13.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 08 Mar 2020 09:13:33 -0700 (PDT) Received: by mail-lj1-f173.google.com with SMTP id n20so4306891ljg.3 for ; Sun, 08 Mar 2020 09:13:33 -0700 (PDT) X-Received: by 2002:a2e:5850:: with SMTP id x16mr7075784ljd.209.1583684012806; Sun, 08 Mar 2020 09:13:32 -0700 (PDT) MIME-Version: 1.0 References: <20200307135822.3894-1-penguin-kernel@I-love.SAKURA.ne.jp> <6f2e27de-c820-7de3-447d-cd9f7c650add@suse.com> <20200308065258.GE3983392@kroah.com> In-Reply-To: <20200308065258.GE3983392@kroah.com> From: Linus Torvalds Date: Sun, 8 Mar 2020 11:13:16 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] Add kernel config option for fuzz testing. To: Greg Kroah-Hartman Cc: Jiri Slaby , Tetsuo Handa , Andrew Morton , Matthew Garrett , Andi Kleen , "Theodore Y . Ts'o" , Alexander Viro , Petr Mladek , Sergey Senozhatsky , Arnd Bergmann , Steven Rostedt , LKML , Dmitry Vyukov 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 Sun, Mar 8, 2020 at 12:53 AM Greg Kroah-Hartman wrote: > > No, anything that just evaluates the code should be fine, we want static > analyzers to be processing those code paths. Just not to run them as > root on a live system. So I can see the reason to run fuzz testing as root, but I have to admit to hating the "special config option for this" approach. I'd *much* rather see some way to just lock down certain things individually. The patch in here just added the config option, which is the least interesting part. The things that that config option then would want to disable - those are the things that maybe we want to have a way for the system admin just generally say "disable this". Nothing to do with fuzzing, imho. Linus