Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1508937ybi; Sun, 30 Jun 2019 17:45:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqyPegqM0uB7++zsDiTgc2QrqZqbVLwjljK/D6tgsARstdIPNjad71zAbXm+Hd516Yk6R3Pv X-Received: by 2002:a63:7887:: with SMTP id t129mr3806771pgc.309.1561941911944; Sun, 30 Jun 2019 17:45:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561941911; cv=none; d=google.com; s=arc-20160816; b=EpelkR1pRPNF3iKBkEfuQKxyvOs/ckmwRvK2yGnaxPWmI/go+ytJhGsic+oYS02Vgy YP7BlH+9ceqkh3dybm76/gc9pwYNWZ09MCWK2j183UtITtCbiQJmZ65pLcIztfjPoGVe TE1meHmJvhYHjE34c1MYv0a5lPQPfZsZDbIP72Kf+HKjcM2VI+X7kPI31/U0Zx1k6Y6u 8ttlmnPqyiHEO4l0SXuOrAOP554khGzRAlwyBUh3ZLv3c/zp4+qDps1dwppHM8/EiAvN laVca/cSQ8JZFmNA7FPQo0YBWvPBY0xwRT/jbmdOgwqE0LXcNJfub9LwgElXyPl5IV1q /jaQ== 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=4D4FNzvcQ+PpsaFp3u6zHhSCvsuyzT8LxE4+cOu9dys=; b=vLTxsYGyfHTfomK8XC/mEzwo5m4ErHI+Rr30KM4iCsO5TkFcwR1mv9u7n2o/s1p500 UdM2WI3AybxhDrHcy4HrqlJJZUOGknERZJe4jwambZx49S+1ULoppmVBftGskkiJjB4A MFoR600mGO9zuCxh4p1MbmLZSVcqx12Da/DR2T3Nia6XP6BxgdTM0dzl4WT+RuzKmP+G WDlAgBphf1MyiDakTLlGNRkMVaUxjMv2i/H9z/h5kpiSh5t1ggZvAIhahR7G3hgCTzwG AN4Icjh9w09OUgwDZRgC14psVincvy8yzrjeN6iZKTA4Xurc0aScy7AYod4Y+ryixp+x JOhw== 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 f15si8469318pgi.56.2019.06.30.17.44.56; Sun, 30 Jun 2019 17:45:11 -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 S1727280AbfF3X4M (ORCPT + 99 others); Sun, 30 Jun 2019 19:56:12 -0400 Received: from lgeamrelo11.lge.com ([156.147.23.51]:34181 "EHLO lgeamrelo11.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbfF3X4M (ORCPT ); Sun, 30 Jun 2019 19:56:12 -0400 Received: from unknown (HELO lgemrelse7q.lge.com) (156.147.1.151) by 156.147.23.51 with ESMTP; 1 Jul 2019 08:56:10 +0900 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO X58A-UD3R) (10.177.222.33) by 156.147.1.151 with ESMTP; 1 Jul 2019 08:56:10 +0900 X-Original-SENDERIP: 10.177.222.33 X-Original-MAILFROM: byungchul.park@lge.com Date: Mon, 1 Jul 2019 08:55:25 +0900 From: Byungchul Park To: Steven Rostedt Cc: "Paul E. McKenney" , Scott Wood , Joel Fernandes , Sebastian Andrzej Siewior , 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: <20190630235525.GA23795@X58A-UD3R> References: <20190627155506.GU26519@linux.ibm.com> <20190627173831.GW26519@linux.ibm.com> <20190627181638.GA209455@google.com> <20190627184107.GA26519@linux.ibm.com> <13761fee4b71cc004ad0d6709875ce917ff28fce.camel@redhat.com> <20190627203612.GD26519@linux.ibm.com> <20190628073138.GB13650@X58A-UD3R> <20190628104045.GA8394@X58A-UD3R> <20190628114411.5d9ab351@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190628114411.5d9ab351@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 28, 2019 at 11:44:11AM -0400, Steven Rostedt wrote: > On Fri, 28 Jun 2019 19:40:45 +0900 > Byungchul Park wrote: > > > Wait.. I got a little bit confused on recordering. > > > > This 'STORE rcu_read_lock_nesting = 0' can happen before > > 'STORE rcu_read_unlock_special.b.exp_hint = false' regardless of the > > order a compiler generated to by the barrier(), because anyway they > > are independent so it's within an arch's right. > > > > Then.. is this scenario possible? Or all archs properly deal with > > interrupts across this kind of reordering? > > As Paul stated, interrupts are synchronization points. Archs can only > play games with ordering when dealing with entities outside the CPU > (devices and other CPUs). But if you have assembly that has two stores, > and an interrupt comes in, the arch must guarantee that the stores are > done in that order as the interrupt sees it. > > If this is not the case, there's a hell of a lot more broken in the > kernel than just this, and "barrier()" would also be meaningless, as > that is used mostly to deal with interrupts. Clear. Dear Paul and Steve, Thank you. > -- Steve