Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2343407ybd; Thu, 27 Jun 2019 10:47:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxI0+Yk57hNPas6oLAVyGsWqhd2hJ8S0enhXIh+9zt+zp48bPCH6v5pMAM/Pcbut6lwXKB X-Received: by 2002:a63:18d:: with SMTP id 135mr4927896pgb.62.1561657637551; Thu, 27 Jun 2019 10:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561657637; cv=none; d=google.com; s=arc-20160816; b=bXKDS0CkeEnruopCpAdZ88le35X3QEtDJdOQc+z0TQhxhkcvOl6jb1OX+JV40yuhhf OQPqenik1kIfxgTSBsq1JYq9+YKqqlrnqpTz7lzRIt0skBXfrOIBYrv51Dxuq1at0ssp o8vkwn9xd09bqB62HVzi/B7arBGzn8Sp4l5vsKe5/VEsapzXs1u0t4e0XCcTW84zx/wf muUvh+01SieATnPvsssWjxN4+LR1irJ728nkWxQwS1k36qvH44uY9nGyNSpbLCFBwnkS 6Cf5kMTvyUM+3pXeY/tvZ4x4Ks/hzTgrlYiOrzFF8J9TwkmT5Ssv3G9tnHikJADsTJdd s5MQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=W6W2K1b/3xwaEs6Qc9I8DS4+zNASP1N/uvlbH7rl76E=; b=br+nu3C5HjJSl0WSFj6/uMmWhGlKiYI7+NeaXaJ6DSyJyY4rnaFnnbFoRPobgtZsJW xs+RE1JmaKITsrD9YXIdcujkBufhCE4+NnAOVQoHZNaAnDB/ClnXX7CnByGW+E0nuNQz WcEJZBfO0w51Erom6NGZRobZl14nenAYRvpEOvEndwCyL5SNPyYufHGxr2Y+tqIK1Cdj HUmzzqhOs6JmSKEdnNc9KEIf85K77b4gOLj6+/IMVRY0umGNs3sZUlUixh+Yk/FqNg6j I9QPsIaje1JNjvYDAsGFlCoY0OwFRudoD6zDlaMzZIABW9JIPKGSF5IdwPFRMrFNM+jl /iww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=QWWe0qbf; 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 r20si2846984pls.389.2019.06.27.10.47.01; Thu, 27 Jun 2019 10:47:17 -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=@joelfernandes.org header.s=google header.b=QWWe0qbf; 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 S1727423AbfF0Rqn (ORCPT + 99 others); Thu, 27 Jun 2019 13:46:43 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:44674 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbfF0Rqk (ORCPT ); Thu, 27 Jun 2019 13:46:40 -0400 Received: by mail-lf1-f67.google.com with SMTP id r15so2123592lfm.11 for ; Thu, 27 Jun 2019 10:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=W6W2K1b/3xwaEs6Qc9I8DS4+zNASP1N/uvlbH7rl76E=; b=QWWe0qbfaNHsWfqWaCYdMOBPZHNLceVVMR6vo2C0NhBVUEkOfYuBTroEj8kpUTMql1 rXzc3hbrJRRsVASyBuBynXo0SCOy7RhsLn+Y3VerNa+90OQyEGkwypBsKGlss90teIQ1 4Ymwesw1pbrDbXIg/UidFML1hwz2CZ6XGbKI0= 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=W6W2K1b/3xwaEs6Qc9I8DS4+zNASP1N/uvlbH7rl76E=; b=cKaX1VI/gXB1eMTkiPDkKo5uOIuqbFDaxNEsYBTHn4JjnPwWkz7GbhAFNwKGkNOoZP F2uGBVjTFXgVHXhQ4d48+zLpB+wBrO7j8Mc4FQa37/Xufqc6LmtrL4dV05Ick8HrJllE KPAe+u9AxKwJAoKBLw9S+t9uXwM1rPnSWjdazT5po6IusPRx2Ccok1s0TgIoCSJPqZdJ Qex3yK/HccCuiJpVp/nRpKKZGaZPnN0feQfimWGZYcf/LGZ3A5we40ARA3DQ/w+jawpt w2UGZ325pY1/KVBp345DQSqKb7rpOohftcj83DC7OWZsvS7LEs1Z2Lz4VMxcMLqjlhUY jCiw== X-Gm-Message-State: APjAAAXwTJMOCDyXE7Iz+2oDqPVqt2NJ7FvaZ94+YN/xkr7NqyoX6QYq ijaZy8qRxzEk1ECqkOSRjuP/ChYqM9PtO5iz7p794g== X-Received: by 2002:a19:ed0c:: with SMTP id y12mr2596505lfy.191.1561657598836; Thu, 27 Jun 2019 10:46:38 -0700 (PDT) MIME-Version: 1.0 References: <20190626135447.y24mvfuid5fifwjc@linutronix.de> <20190626162558.GY26519@linux.ibm.com> <20190627142436.GD215968@google.com> <20190627103455.01014276@gandalf.local.home> <20190627153031.GA249127@google.com> <20190627154011.vbje64x6auaknhx4@linutronix.de> In-Reply-To: From: Joel Fernandes Date: Thu, 27 Jun 2019 13:46:27 -0400 Message-ID: Subject: Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs To: Sebastian Andrzej Siewior Cc: Steven Rostedt , "Paul E. McKenney" , rcu , LKML , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Josh Triplett , Mathieu Desnoyers , Lai Jiangshan 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 On Thu, Jun 27, 2019 at 1:43 PM Joel Fernandes wrote: > > On Thu, Jun 27, 2019 at 11:40 AM Sebastian Andrzej Siewior > wrote: > > > > On 2019-06-27 11:37:10 [-0400], Joel Fernandes wrote: > > > Sebastian it would be nice if possible to trace where the > > > t->rcu_read_unlock_special is set for this scenario of calling > > > rcu_read_unlock_special, to give a clear idea about whether it was > > > really because of an IPI. I guess we could also add additional RCU > > > debug fields to task_struct (just for debugging) to see where there > > > unlock_special is set. > > > > > > Is there a test to reproduce this, or do I just boot an intel x86_64 > > > machine with "threadirqs" and run into it? > > > > Do you want to send me a patch or should I send you my kvm image which > > triggers the bug on boot? > > I could reproduce this as well just booting Linus tree with threadirqs > command line and running rcutorture. In 15 seconds or so it locks > up... gdb backtrace shows the recursive lock: Sorry that got badly wrapped, so I pasted it here: https://hastebin.com/ajivofomik.shell