Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7310891pxb; Thu, 18 Feb 2021 06:59:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMq3+eVBBIVQMO7V+dWmQ4y/NHd/ISMjSBGJeMTrLLG3QQZQ0mx0sS+WgMrS96VpxB3x6G X-Received: by 2002:a17:906:564f:: with SMTP id v15mr4402028ejr.31.1613660367576; Thu, 18 Feb 2021 06:59:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613660367; cv=none; d=google.com; s=arc-20160816; b=jolqZNHhqprj9p193SolXHreMvX2ARWMRpvEFjNKkh5ySsE3sTP7bj8rLCNfIPmmaP 79TXYYP7tnuBXb+XiihDigmr7gBqDks1hAiHx3YWyWZmNPY5dv1x2xj670OMbYDwMf3k mvKqLaB+dvrHECkfxeiduw1aA9c9sn855NgjSbNZT6WpvL/zvblGkZM5ARZiI7qExAxp dCKm0i0sz+UqGp8SDE5dboOBn2gptiuDUCwnmQzTYAzhdMC0Y+JKcm1BcsQlT1jFVAUP ggpFenaZ/bAD7WuPOPCJT6nyDTXu9LXAS+qH0c/P8cmD8QBcmdOYQXWNH9SLBBrWz73H CudA== 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=KAPWiMLdVgpL54iOswvuAK9eFuhy8zwjl8z04LgGsM0=; b=TmhtGxK1H4OMKNVwi7fxGek2Q9G3CnybuMXLN/eAtR2N4FuZ3/iEAQwfftqobnueR9 xjU765ciGkFgGtt+u9huhpyQ6RreE29p+C0oINrepaO79GQVMjFHnWFZLAm65VxutG8k yJViX6W+ZAoY8Ecx/WKwdIiIHihnKWluQmXwOHfpMdE10iKfb9D+dboel6oJRPArChCI LZA2Bi63VWphHe9/5Ro8VUxV/rYJI8Jp35hqaqXcPmI8sn1uCYjGqjVcaHV0qX9dpBr0 PsRqBJ3eggg+3NI5kjKXFGp9vQj4c7+jlYxiYVm0ltOLD/zD6b2KNibNMIfGmjIVlMR9 Edxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Q3DzArRY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 hb43si3211619ejc.169.2021.02.18.06.59.02; Thu, 18 Feb 2021 06:59:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=Q3DzArRY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S231693AbhBRO5r (ORCPT + 99 others); Thu, 18 Feb 2021 09:57:47 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:37066 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231480AbhBRMy2 (ORCPT ); Thu, 18 Feb 2021 07:54:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1613652781; 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=KAPWiMLdVgpL54iOswvuAK9eFuhy8zwjl8z04LgGsM0=; b=Q3DzArRYmty0FekwceP55r/OERcFfQ07OE8GOdmhWDgSjIjtgBk5XlQ8Sa8jHvCrDNq5l6 nStT7WJ/DpqgCQm/aAJQVJWUwzsKJaDQ6NWeiQhpIUMgprAl9viYBizCkuGXRDg8oyAN1K zHsWeTaQ2WFuke50fmY1Bsc2fIny1YA= 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-579-iA1Zs0AHPcal5N-Lhv75GQ-1; Thu, 18 Feb 2021 07:41:54 -0500 X-MC-Unique: iA1Zs0AHPcal5N-Lhv75GQ-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8F202AFA81; Thu, 18 Feb 2021 12:41:51 +0000 (UTC) Received: from ovpn-114-233.ams2.redhat.com (ovpn-114-233.ams2.redhat.com [10.36.114.233]) by smtp.corp.redhat.com (Postfix) with ESMTP id D17CC6A03D; Thu, 18 Feb 2021 12:41:45 +0000 (UTC) Message-ID: <639082dd7bddce31122200cc0e587c482379d1a7.camel@redhat.com> Subject: Re: possible deadlock in mptcp_push_pending From: Paolo Abeni To: Dmitry Vyukov Cc: syzbot , davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, mathew.j.martineau@linux.intel.com, matthieu.baerts@tessares.net, mptcp@lists.01.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Date: Thu, 18 Feb 2021 13:41:44 +0100 In-Reply-To: <000000000000787b8805bb8b96ce@google.com> References: <000000000000787b8805bb8b96ce@google.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.13 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2021-02-17 at 09:31 -0800, syzbot wrote: > syzbot found the following issue on: > > HEAD commit: c48f8607 Merge branch 'PTP-for-DSA-tag_ocelot_8021q' > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=16525cb0d00000 > kernel config: https://syzkaller.appspot.com/x/.config?x=dbc1ca9e55dc1f9f > dashboard link: https://syzkaller.appspot.com/bug?extid=d1b1723faccb7a43f6d1 > > Unfortunately, I don't have any reproducer for this issue yet. > > IMPORTANT: if you fix the issue, please add the following tag to the commit: > Reported-by: syzbot+d1b1723faccb7a43f6d1@syzkaller.appspotmail.com > > ============================================ > WARNING: possible recursive locking detected > 5.11.0-rc7-syzkaller #0 Not tainted > -------------------------------------------- > syz-executor.1/15600 is trying to acquire lock: > ffff888057303220 (sk_lock-AF_INET6){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1598 [inline] > ffff888057303220 (sk_lock-AF_INET6){+.+.}-{0:0}, at: mptcp_push_pending+0x28b/0x650 net/mptcp/protocol.c:1466 Even this one is suspected to be a dup of 'WARNING in dst_release': the subflow socket lock family is reported to be 'sk_lock-AF_INET6', but subflows are created in kernel, and get 'k-sk_lock-AF_INET6'. This looks like [re]use after free, likely via msk->first, as in the suspected dup issue. Lacking a repro, I'm not 110% sure. @Dmitry, I'm wondering which is the preferred course of action here: tentatively marking this one as a dup, or leaving it alone till we get a reproducer? Thanks! Paolo