Received: by 10.213.65.68 with SMTP id h4csp724312imn; Fri, 23 Mar 2018 14:34:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELt7A2n1v99X2pYwiQnUB7hEKDBYS+EJdqaeDrUXwAflPafZmvW5Imxy2ncSntzt0rYs7OCO X-Received: by 10.99.120.198 with SMTP id t189mr22732097pgc.0.1521840879080; Fri, 23 Mar 2018 14:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521840879; cv=none; d=google.com; s=arc-20160816; b=VO1TB0IEEb70FkAh3Mh/ZwcPsnyo410YGK+ZoIS2iAf5ARn7wrO7UkPSpgdcKLyLQ6 NAwm9Eq7CuoCkC/RKxZdLWdX+DaK8HQsz2lCkF6uQvQq50JUE/65H/1APavP/QMtoUU9 x17CYo+JlUKZs7Ee7ewr0igFWlb5OyJs4PshpnLOjqW+hnzgX+0L8NUWaGtmYyQZaPU0 J6YIkTTfjN8Ys+82+ywXzy0PGAdintf1DZL85J2WJFIHw2TkH3JrN6dGIhKvlTEMTwic Hn3AsjjaEUArsYP6Av86Zwn0fbh7VINWrx1s0lQFR6/+FCAvj7v+kWnWlEFVqGHt4afC wyDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=TE5gMTObPXEcI0plk/jwITu8om+e1Be7Z3mr3/k0uuo=; b=Ap2kSPCnz4nBb+dnqT8oVVttEWtWBwOhh4Ps7ffJrbnb9mYK6TNrxniqx/RR0Vi6M0 ug8fAldL6hRtIyVTq8nKneeaA9/MVVreAx7co7Ju6pg2e1p8mLqowE2XRBy+lBlAPsk+ Vkoi02AyKgt+n0ysO9VudrHv2JlZb9S2OMHkwCEXIiXDHZymRh4UZmxZr3riRtQlH/da AIzGZ+HqlbUBRBas209Msj18FV4321CrG1yMpLrpT9gxjAj5EoCxrR6gO4ROzb9PGt74 hdJcLZvUOnx+tfBXjbdXcxkbtY70nVwt+EN4kK+jVNTKYnwitQgvNBuHwt302OLrDCqk 2C5A== 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 w130si7303205pfd.280.2018.03.23.14.34.24; Fri, 23 Mar 2018 14:34:39 -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 S1752256AbeCWVde (ORCPT + 99 others); Fri, 23 Mar 2018 17:33:34 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:42417 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751828AbeCWVdb (ORCPT ); Fri, 23 Mar 2018 17:33:31 -0400 Received: from p4fea5f09.dip0.t-ipconnect.de ([79.234.95.9] helo=nanos.glx-home) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ezUJV-0003NT-F0; Fri, 23 Mar 2018 22:33:29 +0100 Date: Fri, 23 Mar 2018 22:33:29 +0100 (CET) From: Thomas Gleixner To: Steven Rostedt cc: LKML , "Paul E. McKenney" , Peter Zijlstra , Josh Triplett , Mathieu Desnoyers , Lai Jiangshan , Joel Fernandes Subject: Re: rcu: Add might_sleep() check to synchronize_rcu() In-Reply-To: <20180323172843.763579a9@gandalf.local.home> Message-ID: References: <20180323172843.763579a9@gandalf.local.home> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Mar 2018, Steven Rostedt wrote: > On Fri, 23 Mar 2018 22:12:24 +0100 (CET) > Thomas Gleixner wrote: > > > synchronize_rcu() lacks a might_sleep() check which would have caught that > > issue way earlier because it would trigger with the minimal debug options > > enabled. > > > > Add a might_sleep() check to catch such cases. > > I'm not against the patch, but really? I would think that > synchronize_rcu() would pretty much always schedule, and scheduling > from atomic would have triggered with minimal debug options enabled. Dunno. The reported splat is here: https://pastebin.com/raw/puvh0cXE