Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2217980ybd; Thu, 27 Jun 2019 08:40:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqww6MEIhM6zNBs9NMXHfVP5oAseLfgfY9Lm0db6diEOrIaBxkDvfi92SdXgAKMT5J6BEN0/ X-Received: by 2002:a65:42c6:: with SMTP id l6mr3915218pgp.442.1561650051505; Thu, 27 Jun 2019 08:40:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561650051; cv=none; d=google.com; s=arc-20160816; b=exQUkh+Z6u0T8uLsnB06E5yNnGG+ioWs1hLKrgg7b4TUbJN8Cjtrnbrb5aqXTiamty X/D6ade1WGD4owz4rvb+5sh9MqEdcBEsxchVRyC6rdOq7uxozjPTaJycrrLGH1z8hDA/ 3yqLbiueqnS7//qnM5D87XSJsZnw/0aHCCrQYNWz1IVyd6wUFuU1zNtKyDoqf+jsyKMt dkmI54MPsAZotIvGvq5zYy9Kg5vE6EtT94GOHM2FRH7/i2I3jLP4PW/H9XAfQXdregAw jMybkdjRPXRKDsJ8uAeR6wF/gsOUnuplABExiQsmMaRN73OySEoBdo6MNO5GuJIvym0s vSSw== 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; bh=h9MyhRkLoHa3R2qsUolY3LJtas20MhFgnwR8AKoEdtI=; b=OgYqWsQMyBOx7FRwMM/9qr6QEClY4A+0PfFQn4/sG4US7WkXLFBXz1FFyGhzZtuEDu NSB/orukv9uG/pkOAIGhqsqcF89a1GUGV2+C4eM0YVYzh7dRS9yrnuy8A9+t2T4nW8uE RFVZzVilretTUVwHNG0nFPk3dF7ahnAGCudbVjj9qppDKHtNIyCd0GoXNS6+02x/u7Da gYYwaHEX+XfJhkIbAcEEAP88KNbV338o2QWGpqusou+XZyeahIP4WUxHLS6ktlyipVcS yjwlFJ5zW6DrQjMjkY29hpHCCeReMjK9cLKBdfgxnvCN8F86IObRpWGKfSXrYNwJwjdQ BUFg== ARC-Authentication-Results: i=1; mx.google.com; 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 d135si2234265pga.557.2019.06.27.08.40.34; Thu, 27 Jun 2019 08:40:51 -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; 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 S1726524AbfF0PkS (ORCPT + 99 others); Thu, 27 Jun 2019 11:40:18 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:57414 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbfF0PkS (ORCPT ); Thu, 27 Jun 2019 11:40:18 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1hgWVP-0000uq-A2; Thu, 27 Jun 2019 17:40:11 +0200 Date: Thu, 27 Jun 2019 17:40:11 +0200 From: Sebastian Andrzej Siewior To: Joel Fernandes Cc: Steven Rostedt , "Paul E. McKenney" , rcu , LKML , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Josh Triplett , Mathieu Desnoyers , Lai Jiangshan Subject: Re: [RFC] Deadlock via recursive wakeup via RCU with threadirqs Message-ID: <20190627154011.vbje64x6auaknhx4@linutronix.de> References: <20190626135447.y24mvfuid5fifwjc@linutronix.de> <20190626162558.GY26519@linux.ibm.com> <20190627142436.GD215968@google.com> <20190627103455.01014276@gandalf.local.home> <20190627153031.GA249127@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Sebastian