Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=3.0 tests=HK_RANDOM_FROM, MAILING_LIST_MULTI,SPF_HELO_NONE,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3FFBDC433E0 for ; Tue, 26 May 2020 15:43:22 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C36920663 for ; Tue, 26 May 2020 15:43:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C36920663 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bu.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:39432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jdbjd-0007KV-0P for qemu-devel@archiver.kernel.org; Tue, 26 May 2020 11:43:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49514) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdbir-0006bx-2Y for qemu-devel@nongnu.org; Tue, 26 May 2020 11:42:33 -0400 Received: from relay64.bu.edu ([128.197.228.104]:32812) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jdbip-0000hD-Us for qemu-devel@nongnu.org; Tue, 26 May 2020 11:42:32 -0400 X-Envelope-From: alxndr@bu.edu X-BU-AUTH: mozz.bu.edu [128.197.127.33] Received: from BU-AUTH (localhost.localdomain [127.0.0.1]) (authenticated bits=0) by relay64.bu.edu (8.14.3/8.14.3) with ESMTP id 04QFfku0004919 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Tue, 26 May 2020 11:41:47 -0400 Date: Tue, 26 May 2020 11:41:46 -0400 From: Alexander Bulekov To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Subject: Re: [PATCH 0/2] tests/qtest/fuzz: Avoid QTest serialization Message-ID: <20200526154146.of5jbenq7gduimx6@mozz.bu.edu> References: <20200526055820.12999-1-f4bug@amsat.org> <20200526085609.GA766304@stefanha-x1.localdomain> <0e3f6528-b26e-6b5b-be23-f7cf79c216f5@amsat.org> <20200526145632.65uxxj7qk2lrwxsv@mozz.bu.edu> <1e9429d6-7309-4f1e-4a72-6d4d28eea956@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1e9429d6-7309-4f1e-4a72-6d4d28eea956@amsat.org> User-Agent: NeoMutt/20180716 Received-SPF: pass client-ip=128.197.228.104; envelope-from=alxndr@bu.edu; helo=relay64.bu.edu X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/26 10:57:30 X-ACL-Warn: Detected OS = Linux 2.6.x X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, HK_RANDOM_ENVFROM=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Laurent Vivier , Thomas Huth , qemu-devel@nongnu.org, Bandan Das , Stefan Hajnoczi , Paolo Bonzini Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 200526 1725, Philippe Mathieu-Daudé wrote: > On 5/26/20 4:56 PM, Alexander Bulekov wrote: > > On 200526 1105, Philippe Mathieu-Daudé wrote: > >> On 5/26/20 10:56 AM, Stefan Hajnoczi wrote: > >>> On Tue, May 26, 2020 at 07:58:18AM +0200, Philippe Mathieu-Daudé wrote: > >>>> Hi Alexander, > >>>> > >>>> I forgot to share these 2 patches wrote before > >>>> the direct MemoryRegion fuzzer sent yesterday. > >>>> > >>>> Regards, > >>>> > >>>> Phil. > >>>> > >>>> Philippe Mathieu-Daudé (2): > >>>> tests/qtest/fuzz: Avoid QTest ioport serialization > >>>> tests/qtest/fuzz: Avoid QTest mmio serialization > >>>> > >>>> tests/qtest/fuzz/i440fx_fuzz.c | 19 +++++++++++++------ > >>>> tests/qtest/fuzz/virtio_net_fuzz.c | 6 ++++-- > >>>> tests/qtest/fuzz/virtio_scsi_fuzz.c | 6 +++++- > >>>> 3 files changed, 22 insertions(+), 9 deletions(-) > >>> > >>> Will it still be possible to print qtest reproducer commands when a > >>> crash is found? > >> > >> Yes, there is no change in the corpus format. > > > > Yes, though with these patches, the qtest-based code will be gone. > > Should there be some option to switch between the two modes? > > How so? > > How do you generate your reproducers? Right now basically with this: --- a/qtest.c +++ b/qtest.c @@ -808,6 +808,8 @@ bool qtest_driver(void) void qtest_server_inproc_recv(void *dummy, const char *buf) { + // It would be nice to add support for qtest's built in qtest_log_fp. + printf(">>> %s\n", buf); static GString *gstr; if (!gstr) { gstr = g_string_new(NULL); -- It would be nice to add support for qtest's built in qtest_log_fp. Unless I'm missing something, these address_space_writes completely bypass qtest, so there has to be some additional step to build reproducers(eg running against the QTest-based version, or adding some way to spit out corresponding qtest commands for the address_space_writes). > > > >>> > >>> Other than this concern, higher fuzzing rates would be great. > >> > >> Thanks, > >> > >> Phil. > >