Received: by 10.213.65.68 with SMTP id h4csp1856143imn; Sun, 8 Apr 2018 13:03:23 -0700 (PDT) X-Google-Smtp-Source: AIpwx48WJ46Bo3d19GgBWrvXmOGbnQYP2jt3KcclJNkQ2qx9LxhX+6vu0+dBcd/lza8zEVMjS0pW X-Received: by 10.98.36.76 with SMTP id r73mr27044847pfj.108.1523217803809; Sun, 08 Apr 2018 13:03:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523217803; cv=none; d=google.com; s=arc-20160816; b=J4Zkt9c99z7J0xkDHvnDMYvTxStHBfdpEaTzSGNLVDg6yLVLTjU1NoBFyu0tlmlofo mvyKLNOTA6plvldzPEKti09K2D83ehFsWVjm3OZYEtpa9c/laZq+9QIwXzfaFUVGU9bg ruE+jNproW9JhI1CcNsG9uPYXY3hyeLkvowTUsOtnokSqh7jgJKZpzz60mXtNGpbHS1d RH0B8stCbVjoh+NoiDF/U+3KWZpX9SiQyh4e0Ouo12KPOrCvHahTSZqekjv4lbNtbJEi 7qS+8fF6sPs793FrPNYkjAsf2OYB/L/CVa6h4NqD5xel/H4o6/0RpjAJU2xPWNGRKxCQ VNkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=Qb/12oHsn81Gl8iG7Y5XYq4CplmJ5/jiWhupFnUT+y8=; b=MiwDNaxDV1fFfnhU7pti7q+1NrpdU29s1b/aNHXqd+zbd9Q+KQn/1IliB2yr+FEWNo 807WzVdwz44ELuTkG1ufbtaD4rew6tBn4CPPnUyBW2wEKlJ1Nj9kdlQSKIhc1pmIhEY3 IVoeb32yepnx4AVfxKxCQgrSRLY5j6fEWlkAWY8RgUH3Dr5FpmeGPJqEDTp8cQm4JGmM Ky2UTMouSoYqOVl61/E9Vem1BK9SuNIWJKIMDgZFnqJ79DVxb8Hb/H0BHefeJpmmAwM9 F+ZzdctkO/zW7DLbKt168ATlwnzN8kX91qAqF51JkNIMr4C+waKK11SHDaxtdlVi5P+i tYwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b=AReQT3Ch; 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 9si11536017pfh.242.2018.04.08.13.02.13; Sun, 08 Apr 2018 13:03:23 -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=fail header.i=@thunk.org header.s=ef5046eb header.b=AReQT3Ch; 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 S1752366AbeDHSC7 (ORCPT + 99 others); Sun, 8 Apr 2018 14:02:59 -0400 Received: from imap.thunk.org ([74.207.234.97]:44616 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751601AbeDHSC5 (ORCPT ); Sun, 8 Apr 2018 14:02:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Qb/12oHsn81Gl8iG7Y5XYq4CplmJ5/jiWhupFnUT+y8=; b=AReQT3ChzG7DfHSVvysSC4ZPIZ WPRyh4djDWgF1QlpChuDO3CICgv9+8uBWRJU+HsIuWUu0qTXczbTjxRd9N++UpZQypg9uIk6nwF/y agnnEsKGyC55S98ETghfC/NXT3nqyctFWNeANg8IC2dQOSxSrZrX9tgZWfs6j/gl+XtE=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1f5EeU-0001ib-49; Sun, 08 Apr 2018 18:02:54 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 0E8867A2E4B; Sun, 8 Apr 2018 14:02:53 -0400 (EDT) Date: Sun, 8 Apr 2018 14:02:52 -0400 From: "Theodore Y. Ts'o" To: Dmitry Vyukov Cc: Eric Biggers , Dave Chinner , Matthew Wilcox , linux-fsdevel , LKML , syzkaller , Al Viro Subject: Re: Running syzkaller repros using kvm-xfstests Message-ID: <20180408180252.GC9720@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Dmitry Vyukov , Eric Biggers , Dave Chinner , Matthew Wilcox , linux-fsdevel , LKML , syzkaller , Al Viro References: <001a1148578c10e4700568e814eb@google.com> <20180404193504.GA7715@bombadil.infradead.org> <20180405032200.GC22358@thunk.org> <20180405032454.GD9301@bombadil.infradead.org> <20180405223226.GA729@dastard> <20180406001325.GA133204@google.com> <20180406013741.GA7345@thunk.org> <20180408063114.GB9720@thunk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 08, 2018 at 03:18:39PM +0200, Dmitry Vyukov wrote: > > But note that syzkaller is under active development, so pre-canned > binaries may not always work. Mismatching binary may not understand > all syscalls, fail to parse program, interpret arguments differently, > execute program differently, setup a different environment for the > test, etc. Now a C program captures all of this, because code that > transforms syzkaller programs into C is versioned along with the rest > of the system. > Strictly saying, for syzkaller reproducers one needs to use the exact > syzkaller revision listed along with the reproducer, see for example: > https://syzkaller.appspot.com/bug?id=3fb9c4777053e79a6d2a65ac3738664c87629a21 > The "#syz test" styzbot command does this. Using a different syzkaller > revision may or may not work. Thanks for the warning. I assume you try to maintain backwards compatibility where possible? It might be nice if you could add some kind of explicit versioning scheme --- perhaps with a major/minor version scheme where the syz-executor needs to have the same major number, and a minor number >= the minor version number of the test? One of the reasons why the C program is not so useful for me is that in the Repeat:true case, the C program repeats forever. So for example, I translate Repeat:true to -repeat=100. See: https://github.com/tytso/xfstests-bld/blob/master/kvm-xfstests/test-appliance/files/usr/local/bin/run-syz I suppose I could just abort the test after N minutes and assume if the kernel hasn't crashed, that it's probably not going to. But some way that the C program can be given an argument or an environment variable to control how number of loops it will run might be useful. And some kind of hint as how reliable the repro would be (e.g,. some indication that you should try to run it at least N times to get a failure at least 95% of the time). - Ted