Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1014632imm; Wed, 10 Oct 2018 07:54:11 -0700 (PDT) X-Google-Smtp-Source: ACcGV61xBjYfMwS3gIGD7npbf1WVxzb8ziMXGMZysHdOxIFOKbQyVeEgAFbuGeTnbD7k01wzX6OD X-Received: by 2002:a17:902:b78c:: with SMTP id e12-v6mr33197220pls.67.1539183251183; Wed, 10 Oct 2018 07:54:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539183251; cv=none; d=google.com; s=arc-20160816; b=WljPMsbMErLcdirGTs6FQNI/yFdLQLMuUHBwnrltaujW0w/g2fX+9rzT78xy6JJvd4 39U2SNyR2OR69aGGyC5/AA1MIKhXtYU6QEq5+Pw4JEYhwe5QiumZ8jGK8aPYC/O57e+j X7IBiYF9p4u13WaZ+z1yeOaA3hstk0pZGYf0Osw+ynLAQP099TZ7QkAqswJHhz5AU8/p HrTTA/MXi9x9hdaif/0i/cxEPttKwFbRuPyiD6A1xRNmVW6VAoAfa5gYWQI8UUS+68on t0L4wg7/rea6rUO50P9PT5vHXLDPXSxMaTQ1REmmOrf+xUr6s/4DHgzSz0ZEEJU8DIeZ Ri9Q== 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; bh=/zt3J7yi+WcuHkC/u33aXoSlzeEXln7OK2wVN6j0xBo=; b=twrDfU3ee7vS2GuLF0Aob8laR69vqDY6XppMB99hD0WugXpKTTiG2pQiOjVn3oAPP3 BXwaz3V6X6uHWTjY3nUb1vOE8TxrAwv7D61hN0bIklJcxiRV79y4IKWtljCL9mRaeZes aW/KUSikk0uaQztNsyHPLA9A/h1MdUN4d33XtbVtOpeTM4PtcKWhuLYU+PSRX19+1qh4 syJS+qdjVIRvkTxzHW/qdpxvwruvhDvUH+GPsqBkLU3ItiswlRgBUWQu0rvRY5Z76L6D 39ylsIkl6Qyx7n9ErvU7q7UX+H42uAc/p3fyqZYMoZ4dIvdpHf19A/ctx+HRYF1tMJIW E1FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=S5rC8UuF; 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 b35-v6si25743326plh.308.2018.10.10.07.53.55; Wed, 10 Oct 2018 07:54:11 -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=@google.com header.s=20161025 header.b=S5rC8UuF; 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 S1727071AbeJJWOs (ORCPT + 99 others); Wed, 10 Oct 2018 18:14:48 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:54618 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726693AbeJJWOr (ORCPT ); Wed, 10 Oct 2018 18:14:47 -0400 Received: by mail-it1-f195.google.com with SMTP id l191-v6so8438911ita.4 for ; Wed, 10 Oct 2018 07:52:15 -0700 (PDT) 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=/zt3J7yi+WcuHkC/u33aXoSlzeEXln7OK2wVN6j0xBo=; b=S5rC8UuFg25n09mnlVHyyStP0kbLLXN5OX+a64v9j3sqrE4vh5L+duJvSNNUaCGPOg oqNqBCFbYBBDwqmBeCirKKJSK6PKszD+4hZjy7eS1Hw9onWxE8kVMXMCPA6clyzfHnPR gcnVRpYxlZKxQhyXIGqdmlgjgrNCBn9nhYPtHx112T1Npd4rD64oEhJuPnjpf09kM0yv B6uu0GRuDJusRyJ2pHMiSdIy47xXk3mhEEfg2NOCd1DK5n2sn1btdTkjilLDATZhHFyh XUC35cej2QyhJE7BHxpBMW3yR7mLCIoPNiIOnzNmNTszGtUZT5+kJtkWRAxnffAWzG1E /1Cw== 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=/zt3J7yi+WcuHkC/u33aXoSlzeEXln7OK2wVN6j0xBo=; b=nYcZtt8JExrXS1QHtnnTVk+JlVFnFTuD7AHRsjL8lPRiwcAlSI22sbQcZjSw0EoWa/ VBe3TMRfafWzBckcxEqUQjHkVd3WGidgNiZE7ULcCJCPHmNLUra86oXznoyoDSOsEG5v Kq/Mf/GnVDSGq6xfS7RexSN0Kr4zTOUZ95EJbOLZxpqfhJFnSgLKr7xjpQloWBBoYYq1 4lIoR0psavRcq3i5hRxwqdxB0CET1472ADZXfJ/hAtuC/S8Z6MmYHicRd5+9STbakGFH i0wOAFr4zkSxyIgY4fo4pcSFNPXGFkuGCQPNKvW3WVj4KHwxms2rB5yDlJjrY2zu0iIA uVQQ== X-Gm-Message-State: ABuFfoi1x/jpV7TOzNbo76Lgih3lL9NUnTG5GuKYD2DjKe/DWww+n8DQ K5WbltEq42a/fZCmaTHlsEDnk1bfjCtrAXQ+CvX1xA== X-Received: by 2002:a02:55c1:: with SMTP id e184-v6mr25786170jab.35.1539183134711; Wed, 10 Oct 2018 07:52:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:1003:0:0:0:0:0 with HTTP; Wed, 10 Oct 2018 07:51:54 -0700 (PDT) In-Reply-To: <20181010144059.GA20918@nautica> References: <000000000000ca61cd0571178677@google.com> <000000000000fddb150577c15af6@google.com> <20181009020949.GA29622@nautica> <20181010144059.GA20918@nautica> From: Dmitry Vyukov Date: Wed, 10 Oct 2018 16:51:54 +0200 Message-ID: Subject: Re: BUG: corrupted list in p9_read_work To: Dominique Martinet Cc: Leon Romanovsky , syzbot , David Miller , Eric Van Hensbergen , LKML , Latchesar Ionkov , netdev , Ron Minnich , syzkaller-bugs , v9fs-developer@lists.sourceforge.net 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 Wed, Oct 10, 2018 at 4:40 PM, Dominique Martinet wrote: > 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 ? I would like to hear more details. Opening a socket is not a problem. Why do we need a tool for this? I don't understand the problem with "packet-based" and what does it mean to have a separate server? Any why? We definitely don't want to involve a separate third-party server, that's very problematic for multiple reasons. But we can have a chunk of custom C code inside of syzkaller. What exactly setup we need? I guess it will make things simpler if you provide some kind of "hello world" C program that mounts 9p/rdma. I don't need exact messages (they will be same as with pipe transport, right?) nor actual server implementation, but just the place where to inject these packets.