Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3319338pxb; Mon, 1 Mar 2021 07:10:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/43DJuX5Cc9PYI1B7sWMlNiNcD8VGUAY/EMcP+vzmtYCZF5Yvlqv/j5g45GkD+1BQrTHb X-Received: by 2002:a05:6402:203:: with SMTP id t3mr16900690edv.306.1614611450630; Mon, 01 Mar 2021 07:10:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614611450; cv=none; d=google.com; s=arc-20160816; b=RQcG2K4FTlc9jdrfqo5ZFHjyd+sCyqJGMEhqkB9Qeyu0XOs6Zl8ZHmt8I3V1SgmmAM wFCRa31JmwMIxnRWdZdHNVi7VRlibxK/czhyba5UbKt9xfcLeM71dU59iU7r/WCq1k3F DVoV5OVXWUrt0VD0N0oy92xvMUFT2O+8wC1YV/pzkSxODXaczpeDlIcv1tNihZsg4x30 yLEjEbTPiJHAhpmfxleILGaJQtrznKk1tD2fyMgxOHyVVB7XibvGbYDQmdnoxez/Geo0 H84ivNFWxHK8hLt2vALAyI7zsfyLtSaNNnFvn4bPX/0dNE3rEpXangUMqpQIGsmciUCC dszw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=3CcxvPbENRoxnpPYUhLzxCww37f6skYKB+CD+PRX/BM=; b=y2AOOlL5y88s8xDa8ux/w9RE5LzIB12kDMXpl06lth/kYZFQVB2pSCCJAwG2Kdu7GM XsHk5lU8bpTcDMeE6Zn9jXbATaRu9ryU8PY9kLhmRwY+EVvLlkXDIlOcLTzRxLU0IF50 w/9k3nujpW8UshathHZ8JEQXwPDON1LSS+34vm/aYZxpmuC+H2v+UoOTF5E4DiTjehUg D2VU22eIYCMHIEGQl53ykqG1qSAXymN7nh9N2kjHBCXFVhOW02fYxgvNlkemT5UmCNre LKxkKHmbaW8VpCdG3kuI4THPckR6CUZ6rxgw7LlN3od+GXW7kJCKO7Bj+DoEzYmPwFCi zY+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BQ8MCEw+; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q3si11671532ejb.599.2021.03.01.07.10.25; Mon, 01 Mar 2021 07:10:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=BQ8MCEw+; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236903AbhCAPI7 (ORCPT + 99 others); Mon, 1 Mar 2021 10:08:59 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:36927 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236881AbhCAPIr (ORCPT ); Mon, 1 Mar 2021 10:08:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614611240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3CcxvPbENRoxnpPYUhLzxCww37f6skYKB+CD+PRX/BM=; b=BQ8MCEw+1QNI2PI5g4e578hWtzX2pqcJrV5NfVHddplua6iLB0cdz23bwB44HnMzsCsNW0 4M4kNjr3Zrt0KgABCCFx3X3eJRPZgg2xoQPnpfWqhrF5DApvW7qWyxulgMIGeHSOe/s4Q3 k0voAVzIxPwumQNixiBjAS+tQ6SuBfk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-251-t7bwRF9dOFm6QxJxl1AHCQ-1; Mon, 01 Mar 2021 10:07:18 -0500 X-MC-Unique: t7bwRF9dOFm6QxJxl1AHCQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B8B47107ACE6; Mon, 1 Mar 2021 15:07:15 +0000 (UTC) Received: from ovpn-114-130.ams2.redhat.com (ovpn-114-130.ams2.redhat.com [10.36.114.130]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7AC695C3E5; Mon, 1 Mar 2021 15:07:12 +0000 (UTC) Message-ID: <51bd5e035546937b8c46264b52e149f0331d0b60.camel@redhat.com> Subject: Re: possible deadlock in ipv6_sock_mc_close From: Paolo Abeni To: Chuck Lever , syzbot Cc: Bruce Fields , "David S. Miller" , "dsahern@kernel.org" , Jakub Kicinski , LKML , Linux NFS Mailing List , Linux-Net , "yoshfuji@linux-ipv6.org" , "syzkaller-bugs@googlegroups.com" Date: Mon, 01 Mar 2021 16:07:11 +0100 In-Reply-To: <974A6057-4DE8-4C9A-A71E-4EC08BD8E81B@oracle.com> References: <0000000000001d8e2c05bc79e2fd@google.com> <974A6057-4DE8-4C9A-A71E-4EC08BD8E81B@oracle.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hello, On Mon, 2021-03-01 at 14:52 +0000, Chuck Lever wrote: > > On Mar 1, 2021, at 8:49 AM, syzbot wrote: > > > > Hello, > > > > syzbot found the following issue on: > > > > HEAD commit: eee7ede6 Merge branch 'bnxt_en-error-recovery-bug-fixes' > > git tree: net > > console output: https://syzkaller.appspot.com/x/log.txt?x=123ad632d00000 > > kernel config: https://syzkaller.appspot.com/x/.config?x=e2d5ba72abae4f14 > > dashboard link: https://syzkaller.appspot.com/bug?extid=e2fa57709a385e6db10f > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=109d89b6d00000 > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12e9e0dad00000 > > > > The issue was bisected to: > > > > commit c8e88e3aa73889421461f878cd569ef84f231ceb > > Author: Chuck Lever > > Date: Tue Nov 3 20:06:04 2020 +0000 > > > > NFSD: Replace READ* macros in nfsd4_decode_layoutget() > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=13bef9ccd00000 > > final oops: https://syzkaller.appspot.com/x/report.txt?x=107ef9ccd00000 > > console output: https://syzkaller.appspot.com/x/log.txt?x=17bef9ccd00000 > > > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > > Reported-by: syzbot+e2fa57709a385e6db10f@syzkaller.appspotmail.com > > Fixes: c8e88e3aa738 ("NFSD: Replace READ* macros in nfsd4_decode_layoutget()") > > > > ====================================================== > > WARNING: possible circular locking dependency detected > > 5.11.0-syzkaller #0 Not tainted > > ------------------------------------------------------ > > syz-executor905/8822 is trying to acquire lock: > > ffffffff8d678fe8 (rtnl_mutex){+.+.}-{3:3}, at: ipv6_sock_mc_close+0xd7/0x110 net/ipv6/mcast.c:323 > > > > but task is already holding lock: > > ffff888024390120 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1600 [inline] > > ffff888024390120 (sk_lock-AF_INET6){+.+.}-{0:0}, at: mptcp6_release+0x57/0x130 net/mptcp/protocol.c:3507 > > > > which lock already depends on the new lock. > > Hi, thanks for the report. > > Initial analysis: > > c8e88e3aa738 ("NFSD: Replace READ* macros in nfsd4_decode_layoutget()" > changes code several layers above the network layer. In addition, > neither of the stack traces contain NFSD functions. And, repro.c does > not appear to exercise any filesystem code. > > Therefore the bisect result looks implausible to me. I don't see any > obvious connection between the lockdep splat and c8e88e3aa738. (If > someone else does, please let me know where to look). I agree the bisect result is unexpected. This looks really as an MPTCP-specific issue, likely introduced by: 32fcc880e0a9 ("mptcp: provide subflow aware release function") and should be fixed inside MPTCP. Cheers, Paolo