Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1832980imm; Thu, 23 Aug 2018 09:28:22 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxZJ9kKL8PlNqhHDIwrLZt7CoZdkk1SlDGnHczWgE3UbDPkE6M3ROqQCX2iNkmB4wPlcElr X-Received: by 2002:a17:902:b688:: with SMTP id c8-v6mr22155931pls.114.1535041702013; Thu, 23 Aug 2018 09:28:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535041701; cv=none; d=google.com; s=arc-20160816; b=q7hS6KK63cByOYG77mqzz93RH1HIdjbeLT/Tyd+h7zFhabxU0SpjhHX3LFFG+teV5m 2IkY92GCa7Vf0TvJADrTI9oYI2t87urvqEPzcc0eXXCusfqOw4LNOHOnTlMsOISphFZ0 3gK+IvUd1cL355IBV+4DU6H1SPNzXoiAD2OfkuRJ5SXS6yyDslqXtJpPPNjcuz6+gehC qusF3aUSFOo2IKPPiHJgO3GTnMWTnQ970RiYLb3dmJYFTa0m5NVZpCUes3/TJXGQnrdW pBcq5m6TMXpRCxkhRdNFPwtah7YCTRL6oLd9TkUCNV7lwVkzOorcmEpFnnDfvHprf+yH QN5A== 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:dkim-signature:arc-authentication-results; bh=pgw5dIlS32S9/R0w0dRJVxlBtH0R6iAPxAsrK2N3uiU=; b=bI35r9SzzCN5Bd6xNlX48klIdfhuCmlvQb0WrdY6z4nATTmyMVRnCHZwQi4DclrmK/ Lj/ZjIpJQMffL1lmJWOBiDGKK49bJHTySr7Q7EANRx+OUcAJU+rssfsOmq3yHqDGkxrC JSYaoeIlLEouoFcUs+ym69GxxXbTUVKSgnHIGtC9xCO0Ha5cmyAG6dRPo37Ig7I/2g2o eEzgQ0kpPscWdoI8OI+DOC+09bD+LfpzdcUfEwLh9mg8/AZy2lkrskGdk8um4b8v7ZiK cC/jdTsXqc/++F5qTSHdHE3nTNM2OkwNArA0GIoI6X1asw618j9vTd5wgK4uG6KhMFxH OcMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=PXZDt2zS; 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 h8-v6si394876pgd.449.2018.08.23.09.28.07; Thu, 23 Aug 2018 09:28:21 -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=@ziepe.ca header.s=google header.b=PXZDt2zS; 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 S1732353AbeHWSZC (ORCPT + 99 others); Thu, 23 Aug 2018 14:25:02 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:55851 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731953AbeHWSZB (ORCPT ); Thu, 23 Aug 2018 14:25:01 -0400 Received: by mail-it0-f68.google.com with SMTP id d10-v6so7895724itj.5 for ; Thu, 23 Aug 2018 07:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=pgw5dIlS32S9/R0w0dRJVxlBtH0R6iAPxAsrK2N3uiU=; b=PXZDt2zSar94mYy2mpRDouifUuewoqGpDSjkRpIxue2f9hq3kOT7xmUTeJuCzOyZtH CeVoFy5N4k6WpugTKUDlpWkakm+XQEo6Ey4STitOhWrc/6ZZcuu6US5DhTwgN3dQ9cF9 PKThZOSZVZ2xYXmpADXaRG7a9vZBqjI9KlBjQ2w/nu8I8YUeGLJPVBfQjLNZZ4+BTj/j XVuc/Jq7cCMRZDFmWmwlqiJJOVXbTQ5V8HoOWz4hM4twl4c2xauGLsUxv5LgezJVqFZ8 1A+HAlBRflGmTCBq0CLWMoNO19EPfg7RJNmNu3jYgfF/WafJPievDfd2Jqupwuo9Z2Bc Qc+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=pgw5dIlS32S9/R0w0dRJVxlBtH0R6iAPxAsrK2N3uiU=; b=MdxEHMM21XlKqlpscKQ7SfPwuLGtv3n56UjyOWFZ9ywbEsN8ekcI+y3nMxQVJCo2w7 epHU5D5uyeMw4CCz2vo9RqhswfAu0VIqlRiZ0kF0k1A199BMVPVLoOOSbGfO1R4zlt1e 0+O6RQu8Tq3diYbC4liEJmEuiwsqD9tz7tyUL5l8eR5u1G9D14mr1llq8zb1j7iEiwJU RjMzq2nOClnf3Rglv7Kg1VoB48NNDaYnlJ1XMX9m1/PMSzYsg0pS7XcmWEtuLa8sZEQv 5EdHFHBuYl7f6QFjkoqmtWixNZAAzmQAeKf0GynfS07y705e9sVbMKU6dwpmIhDQAxhN JkYQ== X-Gm-Message-State: APzg51B/u2p0Z+5nlupujvKIFK9zswhHOFiRkry2wXoTHtOZHvWvXq0k 29JNVCW+EVs8QrXuCg/e86Czig== X-Received: by 2002:a24:a003:: with SMTP id o3-v6mr4471169ite.117.1535036100089; Thu, 23 Aug 2018 07:55:00 -0700 (PDT) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [174.3.196.123]) by smtp.gmail.com with ESMTPSA id m5-v6sm1546635itb.6.2018.08.23.07.54.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Aug 2018 07:54:59 -0700 (PDT) Received: from jgg by mlx with local (Exim 4.90_1) (envelope-from ) id 1fsr0k-0002bm-Lq; Thu, 23 Aug 2018 08:54:58 -0600 Date: Thu, 23 Aug 2018 08:54:58 -0600 From: Jason Gunthorpe To: Eric Biggers Cc: Doug Ledford , linux-rdma@vger.kernel.org, dasaratharaman.chandramouli@intel.com, leonro@mellanox.com, linux-kernel@vger.kernel.org, markb@mellanox.com, monis@mellanox.com, parav@mellanox.com, syzkaller-bugs@googlegroups.com, syzbot Subject: Re: [RDMA bug] KASAN: use-after-free Read in __list_del_entry_valid (4) Message-ID: <20180823145458.GC9366@ziepe.ca> References: <001a1141551246502d056845782e@google.com> <001a1140f6ac1677460568489287@google.com> <20180823061630.GB736@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180823061630.GB736@sol.localdomain> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 22, 2018 at 11:16:31PM -0700, Eric Biggers wrote: > Hello RDMA / InfiniBand maintainers, > > This is an RDMA bug and it still occurs on Linus' tree as of today > (commit 815f0ddb346c1960). > > I've also simplified the reproducer for it; see below after the original report. > Apparently it involves a race between RDMA_USER_CM_CMD_RESOLVE_IP and > RDMA_USER_CM_CMD_LISTEN. That is an amazing reproducer! I have a feeling this is the same cause as all the other syzkaller bugs in this code: lack of any sane locking at all :\ We've talked about chucking a big lock around this whole thing, but nobody has done it yet.. It isn't so simple. Jason