Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp266699ybf; Wed, 26 Feb 2020 12:44:11 -0800 (PST) X-Google-Smtp-Source: APXvYqxU+Rdthhr9NRB2BgEvEcnmIQXL3rww9h4AID5fi54LGePYBxHeCxolpyXhAosEUPsQuuOs X-Received: by 2002:a9d:12a2:: with SMTP id g31mr494685otg.283.1582749851236; Wed, 26 Feb 2020 12:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582749851; cv=none; d=google.com; s=arc-20160816; b=a3vXdfSEGsVrYstXa7xFmfsaYQUBKlCsYVa0lY+TFw79Dj62awYeaW7cRpvymzviWn SzKRuK9e1q4Ml9zClrEnJX0gAAqIBPrcUqJI+6dmSXlP6mTR7I4ugAeh69VqmYQOqgLE 198vtHafmhOZA8VbjcIUupsKfoPjiizOvDPNv5r4ceZaqX8vxAChyOdT4CoUJubSMUPV gSguIyGzq8Bu15c6laIhheGuGKqh4BqwaH1EJB50BFRotIhe28dHy6aZlAR28WgPpaqQ cyD+mh0bI6XCX4UntDAFxTUnJdpiop84zzdyVqn9/gKWoIdS1dItqM+wZsI4JaZNLn5z GwZg== 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; bh=i88oqqwGwa149ArRLuVW7H77TVeoVzHvwQKN4q66IIM=; b=uVDawVJ39LtOkTwzA8U0/wcT1vGXpFL9Hjkjp/NgPcoZyQPemdnOfkaulKnDmZIsoh 9VVlhwl7ZiXeIPCm9ZkxXuKkPFp2AWAPYTo2jcr+abz4ZeBebMoxKfIodI8i8uYrZxrf G8WOU0uocegzWhlZPJgQ/7dr1fHjMsaL0MuxsxvqL+0M7TCHoemkuJugOfK2xfSlQH5I 6nGRX7aEWvRC7HRs1ijUuj+lHEN4IAEe2pbX/b0hFr2rkehFOnsuAgG70itlWqHEJH+U XFX+2NgIABffwjUo7+MAXlj6JvdeqnemzGCEWjisdIChsTgJQy3TS5JNaKEf+Y1N8AWV POHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=MEr0ISDH; 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 q19si264115otm.221.2020.02.26.12.43.58; Wed, 26 Feb 2020 12:44:11 -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; dkim=pass header.i=@ziepe.ca header.s=google header.b=MEr0ISDH; 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 S1727460AbgBZUmk (ORCPT + 99 others); Wed, 26 Feb 2020 15:42:40 -0500 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33205 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727429AbgBZUmk (ORCPT ); Wed, 26 Feb 2020 15:42:40 -0500 Received: by mail-qt1-f194.google.com with SMTP id d5so608899qto.0 for ; Wed, 26 Feb 2020 12:42:39 -0800 (PST) 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=i88oqqwGwa149ArRLuVW7H77TVeoVzHvwQKN4q66IIM=; b=MEr0ISDHqnCdVLRtSfviOXm6RbiP7/A1qgWyYq0gIb/y4VyyvBE5gVdLxHAHoo0wca HH+WDRnHo7qnzjeTQDBW9rUyUmlwd/5UsPmOjzCYeBGg21bXmnWMCg+1D+enEY74ZnB0 5tssh0vpdDn/hhryTYlqVHUtoGnGvKAy9I42SNw0Y/cJChLwdIsxFXLU5TTec7NUcHg4 vZVmiF+SIWdAUBntw4jskQj49pP72/EumL5+hQuyBIev/ESdfXaTYCSlRmekzjuAJIrj hyI3D79b7CAqZtO0RjjYL638NAXYE1qvUQMv9JZzXeCvGb1/Wm625j6+VLFYkESI+vRn elsA== 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=i88oqqwGwa149ArRLuVW7H77TVeoVzHvwQKN4q66IIM=; b=OwaTAWeYCtLkMXvRh6uDVoa07tLw/1uLV6GW1UM2eMFpVusAnzCyyCrPf5nnbfuXBp UcyWg1D2fwqQGZP5VI9nsjOFaZ08mCwp3Cp/B0gaLpoZa9/QoH0b8UFyPZAniqyZ2Gbu n27/ku7k0Mx+4lx93nU+YvGuJmmWWlDKa8Q/ylr0hG/Q3Kn5aCTl3W1vR0UI9ClJG1mv MVVlbX8+/9zEUOYFYfYgxW0dsL60B0jL5vL3VJleKFQ+wo6cnPmpDmzMZt4NrHniuhYl h6G6Z299ut9OUQ2Y2ct+c0yXJHYptfsg5zssyljMfq0G8bMgAjn35XLzJHz3zEd82CP7 BPpA== X-Gm-Message-State: APjAAAWCHC1ML0iu90XbWZzhYHmaDnHuMkM436+1YiQAVZSGAoStXgwP rzASZRZjbHgEb+qg3J/HKUNym/0u24VrCg== X-Received: by 2002:ac8:377a:: with SMTP id p55mr785701qtb.87.1582749759314; Wed, 26 Feb 2020 12:42:39 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id t13sm1726812qkm.60.2020.02.26.12.42.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 26 Feb 2020 12:42:38 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1j73Vu-0007FH-8G; Wed, 26 Feb 2020 16:42:38 -0400 Date: Wed, 26 Feb 2020 16:42:38 -0400 From: Jason Gunthorpe To: syzbot Cc: chuck.lever@oracle.com, dledford@redhat.com, leon@kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, parav@mellanox.com, syzkaller-bugs@googlegroups.com, willy@infradead.org, Bernard Metzler Subject: Re: possible deadlock in cma_netdev_callback Message-ID: <20200226204238.GC31668@ziepe.ca> References: <000000000000153fac059f740693@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000000000000153fac059f740693@google.com> 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 Tue, Feb 25, 2020 at 09:39:10PM -0800, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit: 6132c1d9 net: core: devlink.c: Hold devlink->lock from the.. > git tree: net > console output: https://syzkaller.appspot.com/x/log.txt?x=16978909e00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=3b8906eb6a7d6028 > dashboard link: https://syzkaller.appspot.com/bug?extid=55de90ab5f44172b0c90 > compiler: gcc (GCC) 9.0.0 20181231 (experimental) > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12808281e00000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=134ca6fde00000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+55de90ab5f44172b0c90@syzkaller.appspotmail.com > > iwpm_register_pid: Unable to send a nlmsg (client = 2) > infiniband syz1: RDMA CMA: cma_listen_on_dev, error -98 > netlink: 'syz-executor639': attribute type 1 has an invalid length. > 8021q: adding VLAN 0 to HW filter on device bond1 > bond1: (slave gretap1): making interface the new active one > ====================================================== > WARNING: possible circular locking dependency detected > 5.6.0-rc2-syzkaller #0 Not tainted > syz-executor639/9689 is trying to acquire lock: > ffffffff8a5d2a60 (lock#3){+.+.}, at: cma_netdev_callback+0xc6/0x380 drivers/infiniband/core/cma.c:4605 > > but task is already holding lock: > ffffffff8a74da00 (rtnl_mutex){+.+.}, at: rtnl_lock net/core/rtnetlink.c:72 [inline] > ffffffff8a74da00 (rtnl_mutex){+.+.}, at: rtnetlink_rcv_msg+0x405/0xaf0 net/core/rtnetlink.c:5433 > Bernard, this is a siw bug too, it is not allowed to get RTNL in siw_create_listen() (though this is probably for silly reasons and could be fixed) It is not easy to get this into the lockdep, I'll send a different patch too Jason