Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1002525imm; Wed, 10 Oct 2018 07:42:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV61EnSj5dIqlwbioyzdewtwFiIrjitAAXaslVCLoGzkryb7fYfDvqIK8E4HEAvhTiDFJhDUW X-Received: by 2002:a17:902:bc44:: with SMTP id t4-v6mr33509625plz.210.1539182529543; Wed, 10 Oct 2018 07:42:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539182529; cv=none; d=google.com; s=arc-20160816; b=IgWsg1v62LIIITok2hfSvpwapUUzzL52kKJ8+uqXzrluGi8uBIIaT5rQcOx4qdIlvu fsqd0aL1quCoB+4FCNMu7OM0sgT+xfT+DEkVZ2PRoGE9bADXDUEi9czZZOawat013CVI fFCGJfepopkdA7F8uaxaEvZI6WZbF7uW5qjv332QUMjXApyfxZ7BUyV2Sp94MvXMyvsk W7a07BywMWXlUU0z/P7DoYIUCWztr+Qy3xyDOGKfLmQir8o4hBuH+maxQ42I4XEhNUWS dmONCxgTEAol64moUyGoXTXP53+mtqOJ5yJuNLT/1mIgNt2OBlLiA6vjatHe4ZfqXbAS 9hAg== 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:message-id:subject:cc :to:from:date; bh=mC5yftqD1Rj/fxDApf4UcyY9sJ7bkGW5rEbmu+aL05E=; b=BPmfCKVhNd+K9qWTVuMqseoGxp0+0Smx6Oi8nQAaSYhK7NpKNTiBMxVMnlRsYyi3Mc 3B56MuKICKZ1cxvxF1tcc+JqULiFiS2Z51r6Q8QvDAHfIo3GnQUEX5uHrALv7huaB0K+ GmktVmkkvvIiiFsV2z8PYThwurHAGeEgFTZgLzTWMGxkDVhEM1a7638uTjfQuf59L8LB nAgPU29Kf1EV4MWLzyCPTCEFWcy0w2KLcD2jeZDOWm+3sR69FNr2ItEatsuT+amlE2BC bI5BJhiNg2aXNeCRjX3JJlT8pdLVAyVZcjaMvdrJmVadwrmG57qp8DOg/627b8FhmCaZ OLTQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d187-v6si15617558pfa.20.2018.10.10.07.41.54; Wed, 10 Oct 2018 07:42:09 -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; 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 S1726798AbeJJWDp (ORCPT + 99 others); Wed, 10 Oct 2018 18:03:45 -0400 Received: from nautica.notk.org ([91.121.71.147]:50540 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbeJJWDo (ORCPT ); Wed, 10 Oct 2018 18:03:44 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id 33598C009; Wed, 10 Oct 2018 16:41:14 +0200 (CEST) Date: Wed, 10 Oct 2018 16:40:59 +0200 From: Dominique Martinet To: Dmitry Vyukov Cc: Leon Romanovsky , syzbot , David Miller , Eric Van Hensbergen , LKML , Latchesar Ionkov , netdev , Ron Minnich , syzkaller-bugs , v9fs-developer@lists.sourceforge.net Subject: Re: BUG: corrupted list in p9_read_work Message-ID: <20181010144059.GA20918@nautica> References: <000000000000ca61cd0571178677@google.com> <000000000000fddb150577c15af6@google.com> <20181009020949.GA29622@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dmitry Vyukov wrote on Wed, Oct 10, 2018: > How can they be faked? > If we could create a private rdma/virtio stub instance per test > process, then we could I think easily use that instance for 9p. But is > it possible? "RDMA" itself can be faked pretty easily nowadays, there's a "rxe" driver that is soft RDMA over ethernet and can run over anything. The problem is that you can't just give the client a file like trans fd; you'd need to open an ""rdma socket"" (simplifying wording a bit), and afaik there is no standard tool for it ; or rather, the problem is that RDMA is packet based so even if there were you can't just write stuff in a fd and hope it'll work, so you need a server. If you're interested, 9p is trivial enough that I could provide you with a trivial server that works like your file (just need to reimplement something that parses header to packetize it properly; so you could write to its stdin for example) ; that'd require some setup in the VM (configure rxe and install that tool), but it would definitely be possible. What do you think ? For virtio, I'm not as familiar with the environment so I do not know if there are ways to fake it as easily unfortunately. > Testing on real hardware is mostly outside of our priorities at the > moment. I mean syzkaller itself can be run on anything, and one could > extend descriptions to use a known rdma interface and run on a real > hardware. But we can't afford this at the moment. Sure, I understand that. > As far as I understand RDMA maintainers run syzkaller on real > hardware, but I don't know if they are up to including 9p into > testing. +Leon I'd be interested in knowing what kind of tests runs there :) -- Dominique Martinet