Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7393671pxb; Thu, 18 Feb 2021 08:57:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMqfClAspp+32oNesD7tIXiyT1dleMWvwmeGM2xjsDouozJN/2C/MS202t3B3W8mUd3UHf X-Received: by 2002:a17:906:480b:: with SMTP id w11mr4099792ejq.145.1613667468367; Thu, 18 Feb 2021 08:57:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613667468; cv=none; d=google.com; s=arc-20160816; b=wAg/IcvD3iIxjPS34Ft6u4Sqby6zz+5ulf2stDjtaiz3LXVxmfih9cw2cK0MNI92nA okhadnXKtK+1Hy8gqT+3JxFPTwd2KE6uMJllur11L3tFyzuLQ4Vmnpmny7GWy6Au+B5e Sc7AvVAGyjn1lMIA4RZD1lcXThFiiwefR+FYHM3A0PAhWMhsHQUncWMwUCP8Fp2/pV6L mSiDLNVl1411JPRspzWzXW58SwxoQPPk24LfbjF3R7nnqqe57iIIdJpyN9RNZSSWrIyc hBauQyHWv4ie5AYra7qjE4PFQfkk0E0mO7ZTuwBY43g8SaGj8OVmK9/k4nBkXEBvIh1h 9HOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ITK2W56ft818ZWt4QDSd8KlN0Y5ANnHZi1kSURRPbHU=; b=rPMeI9AWVR2y+7N+VMW8e2QiEkERpLLC7G23qf4FnBV2rPeaiZiUEqhNKd6foPH9HV nbUkxa/O1HJDBNYvOi7eCp6rZM0LOZQQNu08Ql9Au4wPaOVEtrY4NWGu770ZPIKvxMPr yIgW2h5Wg7SHjVg4Yo5F0yRsz6LZNCKdVKwZDE9GN0juLwIQX7B5YTkz6/uECk0qfxsT U2RhFl4CzTaHtS61OEqn5z/Zks3ty+NUcj8gbsTq1w6oklNA24ujT8dUoAKEFFud/GFf 1/fWLSzcgxgsnoi7VkQces6Bx5IIvmopGCnWJv/FHJtbv89EvM/HPrMePf7zSwveowDQ flHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=wM5YG8NV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q23si5246495edb.260.2021.02.18.08.57.25; Thu, 18 Feb 2021 08:57:48 -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=@google.com header.s=20161025 header.b=wM5YG8NV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234001AbhBRQxp (ORCPT + 99 others); Thu, 18 Feb 2021 11:53:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233077AbhBROGL (ORCPT ); Thu, 18 Feb 2021 09:06:11 -0500 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EA25C06178A for ; Thu, 18 Feb 2021 06:04:15 -0800 (PST) Received: by mail-qt1-x831.google.com with SMTP id e15so1384204qte.9 for ; Thu, 18 Feb 2021 06:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ITK2W56ft818ZWt4QDSd8KlN0Y5ANnHZi1kSURRPbHU=; b=wM5YG8NVcZQLBM6znd53hm2kK+Eu+SfLU58yysPJAQGtMmp967qgN7o9dga2Rqk9oa OtBVqKvYND/GxH2wY9N+wcTzd01j7CfEsU/LQPNHbydX8rJ3Wk/tYuMdzMatdkHqx3G1 q90OymzVLBUTSXtAE1/P8qPJODvLKDLORunh0LDlwrRtMFtOPA06x8ydVq6c9g0G7JyH G1zKYud+5V8PoGSsGMHNdxuJcJ9sEqDSNWHQ0iuHSgdPNoQlQ/85tLYcYzVu3UHO+FJb KcBBC1/kK1fCacKF1vxA8QnHjtvwgJVs0AFvIozaDLyAO5CK4eGboTo1pOZuJBxGFld7 Zsow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ITK2W56ft818ZWt4QDSd8KlN0Y5ANnHZi1kSURRPbHU=; b=i6il5VtiI8CYDXGoJiwV+beijdcW6FWLGRymQV7CHHk2H45Ks/ZH2frV8ScRFKCVpg oSeEeDdKQUjIpPU0Zlc7OgmcWrO4WzIKXxx4LDimXD93R3Vt6MxbPcWkbqHIO+TQk0Cy rRWhxxrPat/jLqbm2dgikTVGYMxE6XLw+wwPpwLpz2JR7kpHYSkyRJWCJ9plEZdsyYu9 qVO0WveLtm0bRVe3BEnuigpb/VJWHOIE6nzZegzfJJg3E5qzrz6E4nx6NDwNL7VGTJOB x0eVVld5gbGm1T+7dKsI3Jio3+gXlnVFzCcR+I0fJ0B/lX5fHndAnrKHQWESmwHQxNqR AAcg== X-Gm-Message-State: AOAM532WAf3clIAqBNHJpNh7oZeZpasm+Mba0bwMH/3MpTtIKW7utgxH Xoqj6ovjZ3bqCzaqZZI5UV9YxPL+lHU79z2O9T8gHg== X-Received: by 2002:ac8:7514:: with SMTP id u20mr4288204qtq.66.1613657054203; Thu, 18 Feb 2021 06:04:14 -0800 (PST) MIME-Version: 1.0 References: <000000000000787b8805bb8b96ce@google.com> <639082dd7bddce31122200cc0e587c482379d1a7.camel@redhat.com> In-Reply-To: <639082dd7bddce31122200cc0e587c482379d1a7.camel@redhat.com> From: Dmitry Vyukov Date: Thu, 18 Feb 2021 15:04:02 +0100 Message-ID: Subject: Re: possible deadlock in mptcp_push_pending To: Paolo Abeni Cc: syzbot , David Miller , Jakub Kicinski , LKML , mathew.j.martineau@linux.intel.com, matthieu.baerts@tessares.net, mptcp@lists.01.org, netdev , syzkaller-bugs Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 18, 2021 at 1:41 PM Paolo Abeni wrote: > > 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? Hi Paolo, I don't have a strong opinion. Either way will work, especially since this seems to happen regularly. Or, submit a fix and wait to see if this stops happening or not.