Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp353914imu; Sat, 17 Nov 2018 00:48:10 -0800 (PST) X-Google-Smtp-Source: AJdET5dektPz+H9O1I7vip59s+mTWvqlq0ZqeXlJvKrrzb5ShyVofDrC5Rc9OaQTJKcaUcyXlkbo X-Received: by 2002:a62:8c11:: with SMTP id m17mr7142227pfd.224.1542444490509; Sat, 17 Nov 2018 00:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542444490; cv=none; d=google.com; s=arc-20160816; b=mrWRPCUv0q98EQ3GxP4QuKYdzEGc/AQyXw5Z/MMNwOTTlo7Z041nLKVL8btOqwXdTR ivGw9qyNj0PKirALbWap6p1tSbSrbjDVcNwTg8qlfXYDRlNsQOMuAXgLQwDGvwGLbn0W vHGcNYu3G1n4Bdw7eWK+ds8NItyd9d6dpekdNL0j2r/SJHoQvK7igu7oshpnC96Ehgcp 6Dc6qCKFNDGoz2AIN1m0zbrkpC2z1HfiqPCRrpRwOxAJLkfzoTbUuvK9lu71KLN0TLxb GcX15nICWNAyYu+OcMN2ai5gXDbtw4vjC5zJIDwvcyXwgisDCgjkcQU6oXC4+SbyLFXk xB7g== 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=Uy5NP9kbUajB/0IrJL5n8sVKwU0KuthD9CtS0I+Vb9k=; b=W6QLrHwcCTvDS2vJeKyL6dTs64qWRi9pAF6s/beE92knIO9g5/o0OSIR06LfY/Kdr6 okOz4IrZ/YyVp7tX85aOTORgV/1f/0TjLwO56l78RLWQlbO2cB7ASEVv2iw2be3UJGu9 1s1J14veTtHRr7qc20ZKJV5sthfc1EtkeAV5Hk7+9r+vMEMnJcToAA+81JrZ4G9G4c1O RlzXu6UAMTC7cA4V3lPinuli4ONHQ5cQbxFRXVVYqpcph3+jEFMdt0hMhBCSBOsagEla 5K41Dai80w3Ftdqzu6rGFXnCy3V4hKZRioIhoYEcTtdevmjEkBOW37ezn6l0IuDLUBWa GcFw== 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 1-v6si35625379plh.96.2018.11.17.00.47.53; Sat, 17 Nov 2018 00:48:10 -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; 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 S1725967AbeKQTDF (ORCPT + 99 others); Sat, 17 Nov 2018 14:03:05 -0500 Received: from nautica.notk.org ([91.121.71.147]:38578 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbeKQTDF (ORCPT ); Sat, 17 Nov 2018 14:03:05 -0500 Received: by nautica.notk.org (Postfix, from userid 1001) id E4CC2C009; Sat, 17 Nov 2018 09:47:04 +0100 (CET) Date: Sat, 17 Nov 2018 09:46:49 +0100 From: Dominique Martinet To: Dmitry Vyukov Cc: Leon Romanovsky , David Miller , Eric Van Hensbergen , LKML , Latchesar Ionkov , netdev , Ron Minnich , syzkaller-bugs , v9fs-developer@lists.sourceforge.net Subject: Re: 9p/RDMA for syzkaller (Was: BUG: corrupted list in p9_read_work) Message-ID: <20181117084649.GA24182@nautica> References: <20181010144059.GA20918@nautica> <20181010155814.GC20918@nautica> <20181011131045.GA32030@nautica> <20181011141928.GB32030@nautica> <20181012150855.GA22149@nautica> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20181012150855.GA22149@nautica> 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 Dominique Martinet wrote on Fri, Oct 12, 2018: > Hmm, good point; I hadn't looked at the network level how this is > emulated. > When I use a single VM I do not see anything with tcpdump on any > interface, so I assume the kernel short-cuts the interface in this case. > When communicating between two machines there obviously is traffic; it > appears to be transported over udp - I see the messages I sent in plain > text in the dump and there is only a handful of packets for the whole > connecting and teardown so it's definitely much simpler. > > This might have some knob I am not aware of to force the driver to send > udp in the local setup, if we can it's going to be much easier to > reimplement the rxe emulation protocol with raw syscalls than what I was > describing earlier... I've taken a little bit of time to look at this. Unfortunately, I haven't been able to find any knob to make a single-machine setup send UDP over an interface; would have hoped that playing with multiple interfaces might be a way around this (e.g. use the rxe driver on one interface and listen on the udp port on the other one), but I couldn't get this to work and don't see anything in the code that hints it might be configurable. It seems to realize that the remote IP is assigned locally anyway and while I cannot "bind" to an address that wasn't added to the rxe driver at the rdma_cm level, trying to connect to it never sends any packet to a ncat listening on 4791/udp on that interface... If anyone has an idea, it'd be great! Protocole-wise, once we get that to work it doesn't look very difficult to implement some basic "accept connection and send acks/replies" small server, but we need the first part to work... -- Dominique