Received: by 10.223.176.46 with SMTP id f43csp2909481wra; Mon, 22 Jan 2018 05:32:50 -0800 (PST) X-Google-Smtp-Source: AH8x2269obS6S/aWUh0fg7SK3jIAy3okZXzPADx9DAXGYub/2WSRYtOzqBQelu8TJBcz4L+R18oF X-Received: by 2002:a17:902:7201:: with SMTP id ba1-v6mr3542411plb.125.1516627970100; Mon, 22 Jan 2018 05:32:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516627970; cv=none; d=google.com; s=arc-20160816; b=zSgtICNo7twy0tR2806yBWKvKrix9bLMti7C34+9y1Bzo3VCoIq+ry6zo/G18/qVtX rvQT/lIuGH+Tt3LOEXUB+hAbuY3EZiLoPi7YDr4rH4FqGMsQY500h572QeL04slXN7A1 1KKMuKSibffCsUg/RGk29r7l3VFmW6KfqjqGwzDnQPkmAMld7BADLuLaDaulsoZfNJak WiG8rg3Qp41kIGHWyIjojj9d8oZ6Jvd9U2y7dzTacO8/18RBDuUm/qaBv/zruvMTE+OX alP1CMyyvaTE6PrX2Yiqj+ZnRcmI/LByaXjO3LZqVnUFH51Zva1+bdtrqFkHApwk6bBL lhQQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Ptq8vegFNKMfqp8kTxHUA3kb/pRp2Wyq8Wg7ippb+7E=; b=ZxcTRWu841sIMx8q1BbOyB3YjycRKJRSneWDr0smxoRifuLOkPdqMiUR7MoQeLyNmQ JHIPuGQgqaVxKly+9ZE8raEiRUpdlCgWdNu6Fm28cR+ke7dF4Uu4pGAAYlor/XjvIZnN zYJg94EofjSZ3F+HUaiYTeLxqV8smO/JUHzVfrddzd+LhxLCZui2PS0Ix5XsZDu6TP6a YKRU1/y5+qFUDaMEJ0GNVLpX6hqRchLxo8AOphUlqgBFVCEpXHzVuQri/eT5JXEoaqhK 4Rdsy5j+/IexEqnNqLmCsr5kjpEm3Inipf4WRTR+srZPg4mrXvKFOXxvjE6q3Ma+kR5k QXvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=k9UySVwV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 71-v6si2403184plc.603.2018.01.22.05.32.35; Mon, 22 Jan 2018 05:32:50 -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=@google.com header.s=20161025 header.b=k9UySVwV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751255AbeAVNb3 (ORCPT + 99 others); Mon, 22 Jan 2018 08:31:29 -0500 Received: from mail-pf0-f176.google.com ([209.85.192.176]:35107 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751073AbeAVNb1 (ORCPT ); Mon, 22 Jan 2018 08:31:27 -0500 Received: by mail-pf0-f176.google.com with SMTP id t12so7096630pfg.2 for ; Mon, 22 Jan 2018 05:31:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ptq8vegFNKMfqp8kTxHUA3kb/pRp2Wyq8Wg7ippb+7E=; b=k9UySVwVwMcvo44AhzIXoAzJN9mWdZ3m05QC7n+hdU7+tmq7HR5vQaMoZ/OYvUIL0X cpX6kddz3l2tZTd9nzmmESaFViHX560sYwOTm337SH/nnOpnyCXyWc2jwJAdki5r/75O vu0F1EGsv0DkVbmL47O5wNatdkj8ZVNmalqjfmF9SgEH9osuPROO51CwLHO2dJKGtLOj aXZJc1M128jMcTye/zFLlKU6oz1ixEfK/lTZWgttzfsx3O8t/1hF4iu95W65Si20E0IA 3J7ATpKOk617/c1wsh6c6JTF9ZChhCfFG6bU6tnlGEumKYQ2h5aFNGeEy6AcvmODJG/p PMnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ptq8vegFNKMfqp8kTxHUA3kb/pRp2Wyq8Wg7ippb+7E=; b=ESiFnQt5E4bDskeM3SdA9AUc3z2e1MOutKpLKB1TpjYtEQeOVHvGja4bfLY1NbEEBO bAvAE+GdfeEZF+kTy+XIVs5s19mgngkrMeE2MC5eDNCUZkdgj4YjR3HyT7Tz0ntJPxhv 9bl+SNoT7WjNpXyBoTCkvAe1epBkavIDhlaBQVrISIL6buZX+qLgtS6zFpLdWAka8HRH w68BagwOt3hZVee3e5GKrr1K3rKMe6Rk9nSoM2xrYiqZ07LXSq9xt48Q50pqnqnKoKz7 NVPmIsuMnDWH5/oj1cj17raKFOJBjF7e5oEdaUcJ7YifSLTqz5S+wDuepSEqKN8oe/1H AvNg== X-Gm-Message-State: AKwxytfJKoYRv4ONpklKfXQ0BvMfOnH/dVJ2MzkTiTUFQIpsQ6p+asJs ze7PdCnnGu6miX8LkT/Gu3y6tY5znXKdYaTk8OJtBw== X-Received: by 2002:a17:902:76cc:: with SMTP id j12-v6mr1795780plt.120.1516627886686; Mon, 22 Jan 2018 05:31:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.140.151 with HTTP; Mon, 22 Jan 2018 05:31:06 -0800 (PST) In-Reply-To: <20180118140537.GA30059@kroah.com> References: <001a11405130ff1e9705629eb53c@google.com> <20180117093225.GB20303@amd> <20180117204735.GC6948@thunk.org> <20180118002111.b7ejjd2adunmkooj@ast-mbp.dhcp.thefacebook.com> <20180118010930.GE6948@thunk.org> <20180118140537.GA30059@kroah.com> From: Dmitry Vyukov Date: Mon, 22 Jan 2018 14:31:06 +0100 Message-ID: Subject: Re: dangers of bots on the mailing lists was Re: divide error in ___bpf_prog_run To: Greg Kroah-Hartman Cc: "Theodore Ts'o" , Alexei Starovoitov , Daniel Borkmann , Pavel Machek , LKML , netdev , syzkaller-bugs@googlegroups.com, Guenter Roeck 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, Jan 18, 2018 at 3:05 PM, Greg Kroah-Hartman wrote: > On Thu, Jan 18, 2018 at 02:01:28PM +0100, Dmitry Vyukov wrote: >> On Thu, Jan 18, 2018 at 2:09 AM, Theodore Ts'o wrote: >> > On Wed, Jan 17, 2018 at 04:21:13PM -0800, Alexei Starovoitov wrote: >> >> >> >> If syzkaller can only test one tree than linux-next should be the one. >> > >> > Well, there's been some controversy about that. The problem is that >> > it's often not clear if this is long-standing bug, or a bug which is >> > in a particular subsystem tree --- and if so, *which* subsystem tree, >> > etc. So it gets blasted to linux-kernel, and to get_maintainer.pl, >> > which is often not accurate --- since the location of the crash >> > doesn't necessarily point out where the problem originated, and hence >> > who should look at the syzbot report. And so this has caused >> > some.... irritation. >> >> >> Re set of tested trees. >> >> We now have an interesting spectrum of opinions. >> >> Some assorted thoughts on this: >> >> 1. First, "upstream is clean" won't happen any time soon. There are >> several reasons for this: >> - Currently syzkaller only tests a subset of subsystems that it knows >> how to test, even the ones that it tests it tests poorly. Over time >> it's improved to test most subsystems and existing subsystems better. >> Just few weeks ago I've added some descriptions for crypto subsystem >> and it uncovered 20+ old bugs. >> - syzkaller is guided, genetic fuzzer over time it leans how to do >> more complex things by small steps. It takes time. >> - We have more bug detection tools coming: LEAKCHECK, KMSAN (uninit >> memory), KTSAN (data races). >> - generic syzkaller smartness will be improved over time. >> - it will get more CPU resources. >> Effect of all of these things is multiplicative: we test more code, >> smarter, with more bug-detection tools, with more resources. So I >> think we need to plan for a mix of old and new bugs for foreseeable >> future. > > That's fine, but when you test Linus's tree, we "know" you are hitting > something that really is an issue, and it's not due to linux-next > oddities. > > When I see a linux-next report, and it looks "odd", my default reaction > is "ugh, must be a crazy patch in some other subsystem, I _know_ my code > in linux-next is just fine." :) > >> 2. get_maintainer.pl and mix of old and new bugs was mentioned as >> harming attribution. I don't see what will change when/if we test only >> upstream. Then the same mix of old/new bugs will be detected just on >> upstream, with all of the same problems for old/new, maintainers, >> which subsystem, etc. I think the amount of bugs in the kernel is >> significant part of the problem, but the exact boundary where we >> decide to start killing them won't affect number of bugs. > > I don't worry about that, the traceback should tell you a lot, and even > when that is wrong (i.e. warnings thrown up by sysfs core calls that are > obviously not a sysfs issue, but rather a subsystem issue), it's easy to > see. > >> 3. If we test only upstream, we increase chances of new security bugs >> sinking into releases. We sure could raise perceived security value of >> the bugs by keeping them private, letting them sink into release, >> letting them sink into distros, and then reporting a high-profile >> vulnerability. I think that's wrong. There is something broken with >> value measuring in security community. Bug that is killed before >> sinking into any release is the highest impact thing. As Alexei noted, >> fixing bugs es early as possible also reduces fix costs, backporting >> burden, etc. This also can eliminate need in bisection in some cases, >> say if you accepted a large change to some files and a bunch of >> crashes appears for these files on your tree soon, it's obvious what >> happens. > > I agree, this is an issue, but I think you have a lot of "low hanging > fruit" in Linus's tree left to find. Testing linux-next is great, but > the odds of something "new" being added there for your type of testing > right now is usually pretty low, right? So I've dropped linux-next and mmots for now (you still can see them for few days for bugs already in the pipeline) and added bpf-next instead. bpf-next instance tests under root, has net.core.bpf_jit_enable=1 and the following syscalls enabled: "enable_syscalls": [ "bpf", "mkdir", "mount", "close", "perf_event_open", "ioctl$PERF*", "getpid", "gettid", "socketpair", "sendmsg", "recvmsg", "setsockopt$sock_attach_bpf", "socket$kcm", "ioctl$sock_kcm*" ] Let's see how this goes.