Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1098894imm; Tue, 15 May 2018 13:51:01 -0700 (PDT) X-Google-Smtp-Source: AB8JxZouU5mRl+iKYCkLb1M7W52lFuJ1ZP8ta4MQPlHVl5tK3n2vCx/0ATCux5RRluB+SUX7PBH9 X-Received: by 2002:a62:1549:: with SMTP id 70-v6mr16697730pfv.91.1526417461343; Tue, 15 May 2018 13:51:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526417461; cv=none; d=google.com; s=arc-20160816; b=F23FdNxNtqr2XuWl4xyLhsWNahGhtKSGH9l3Qs/tsK7sVTFtGRuPYMHP6tO72vrx5S AcnIBkpYV9vP6ZstCf8B4ZxPE1V1TwmcnQWCwh3teqdamZioUk515q0dSn2xik373tb/ zED9RIpfq0ZTG8+uNBhi4xiU76Yg1JRtmjqM2PQXhcvtIkH84qd+8zlksrAHDO1GtpvM 6TYbMKPm9tPIa+k4hHeywUfKwx48eEbTYz0y4ZFTTPArc/MRwJVgLRAsAtbQJlPt8XGg FRcmMjuZBfWtW3z/Qv4dOAAg3flyTx/Sn9zikKkhAKI33Z+QZvuJVWYANW533bhXq80C Kwwg== 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 :arc-authentication-results; bh=lyXPSRsd5PmUHQcl8bBirByiMn+FKhm2j0JUIdYALO0=; b=P48hgM8n/KpufCfYXi1c6cRpqKoi1N9TNs9sC/Jq3WDDhlyfL3DJIji86+ZIc3t3YM EQsu+lXwmHY/z2MiiYBy4nDOjqlgObbGicfp/CbPjxSRIImkL3t6Iz4tyHGjjn/QBmv+ 8heEHk8Zv7xRS/Avk2+DY5t34AvRfHf265nQqr74YDdMnHMSW1CFZwXUDwYem891Hm1D ckOdxYBJ1d/83BDf1XQESNKZ+ZTmzjv3M6CspJhwyeN8Frcb4Ue68X/7INZmaIms0Stn H7BZShWLxImtXHret4uhf4+oPpn66M7KBEEy2Cd3WERsl5DLWSJlVZnmwIUOfiMwuNx9 WGsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@purestorage.com header.s=google header.b=UZKMdhlb; 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=purestorage.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si687631pgr.642.2018.05.15.13.50.46; Tue, 15 May 2018 13:51:01 -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=@purestorage.com header.s=google header.b=UZKMdhlb; 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=purestorage.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752669AbeEOUtq (ORCPT + 99 others); Tue, 15 May 2018 16:49:46 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:42194 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752465AbeEOUtp (ORCPT ); Tue, 15 May 2018 16:49:45 -0400 Received: by mail-lf0-f68.google.com with SMTP id b18-v6so2256587lfa.9 for ; Tue, 15 May 2018 13:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lyXPSRsd5PmUHQcl8bBirByiMn+FKhm2j0JUIdYALO0=; b=UZKMdhlb6E5yaYdtpmEn4UWLIv8Dv4FfVfv5G6Spddv7w3I6DxyhZvTjyMM7x5vVBw dqduWKAcWA0WxcZJtKId/EWWvoE/jKwgjkCa3Mo45hiU05YlpiUNbEJRu7SXqkbp6s4C Ixkylxei1p9RjkUBzTGYAk0fF/HP1ba970098= 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=lyXPSRsd5PmUHQcl8bBirByiMn+FKhm2j0JUIdYALO0=; b=hhWfCTccJ/UbDarVNT19bHAXS7l6LhQ5qk81Cnhki2ZUCyjyYUchMpy0+6dIY82z6o M6cKrshRihO+LIxDHxMAPATbraEN+3ABTzGu6yHqReaTut4c1FO30K9NeCzKUOWfOg46 OBYgANFWjgNk7T83glR9K0+6OMuf3t88eohCSHBDCsydvHSt9ca2fo9itaeITDY/ylBI q164Fy69QUIMDm7ogaHs5cM7awsYiGw4cr4zjXhHiuyJj9Ivw3J4/sDN+wog036I+ABy 7MJwNbDyTk0az4xj3IonDKzK73jh7MNcK0eJpIK8zL5EWOE3rMg7tL9y/SolyajXX84R fXMg== X-Gm-Message-State: ALKqPwcTkEtBiCPxDtAoV80dz40th8OGPpmVGNV1QrmRNPdC0PU7WIXZ FgLJa3acBCpytH1QTi4jUl3aPS+TEIvNkmtT/rLEtA== X-Received: by 2002:a19:7906:: with SMTP id u6-v6mr12555334lfc.34.1526417384011; Tue, 15 May 2018 13:49:44 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a19:7f13:0:0:0:0:0 with HTTP; Tue, 15 May 2018 13:49:23 -0700 (PDT) In-Reply-To: <20180513230237.GG677@sol.localdomain> References: <089e0825fc78410eaa056845781e@google.com> <20180513230237.GG677@sol.localdomain> From: Roland Dreier Date: Tue, 15 May 2018 13:49:23 -0700 Message-ID: Subject: Re: KASAN: use-after-free Read in __list_add_valid (5) To: Eric Biggers Cc: linux-rdma@vger.kernel.org, Doug Ledford , Jason Gunthorpe , rds-devel@oss.oracle.com, syzbot , LKML , syzkaller-bugs@googlegroups.com 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 > Still reproducible on Linus' tree (commit 66e1c94db3cd4e) and on linux-next > (next-20180511). Here's a simplified reproducer: Thanks! That's a fantastic test case. The issue is a race where rdma_listen() sees invalid state in the middle of an rdma_bind_addr() call that will ultimately fail. I'll send a proposed patch shortly. - R.