Received: by 10.213.65.68 with SMTP id h4csp721875imn; Fri, 23 Mar 2018 14:30:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELtnXK2JXdyeDYbSaSQ1DBRTUZL85FWbFGm0GFTMtC6njp/2oJ5quTrXtDr513T72AP1Ww9k X-Received: by 2002:a17:902:76ca:: with SMTP id j10-v6mr17632905plt.315.1521840619626; Fri, 23 Mar 2018 14:30:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521840619; cv=none; d=google.com; s=arc-20160816; b=JRrHGbR5fc0ScfD2+XSw5iJlqXvTTguS4AccBPrYtY9lWTYWGkh4opDzLY5xn9C9nd KUagahutFPr4suuFtGYqrXeb2YBFDmcGqYEoUwGckVMX/ZojuGSrp+RLvF3e0zX+/93p mBX0Ztn2FJxzD23t3trS9DMERU0htl65LdwGRfIrrgxwiH8SNtW2Pa1jttTsUznJse7/ IX/s3xZ5+fvdx77VENnEPwrz4zWeNeQcUnAxttiwE7+bYNG1HRY7qvmif5Se0I+6+MHe LtMt3WrsN5vgm+NaRg/SwnYH4YXEK4UAP+ywLxq/AZJV1ZfP9MMKbFkO6X3nT3317xW3 d5aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=pMC4XZoIeHkG9rf5QqlaaT9XCnFfrovByzGGFdW1pmo=; b=fidrrezkC0C3NNAG/9DzSPnatY/BmYMd7jHi3v+ENhATEwl66eVR/RzJm7uD8Cz/bM EhJhvLJNwMFi/m3SCVYLU0P3n/b3ZXaUEuKcq8Fm26wGVQyRxiIKe0CbaqFnl9CYeHH5 nrUp3MCXgm9Fbf0Q+T/vKnVxiedJeaFs3hCQ6X/PEqldautu/p1YX6+aByPhNB4EOH2v 0SLAlGuFqRNhX8piFgrplAwSRYyQTfpy0qC9Ufp6N42iqMhZuDkuuqv30H0khyZMnMYt ZaZGIwUt/Bk6Z5/nBrhRI/wNupram4ECcJg2nWe/OavhKT1L3DKhrat0UlLHXF4Pe39v DpDA== 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 1-v6si2961991plk.104.2018.03.23.14.30.04; Fri, 23 Mar 2018 14:30:19 -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 S1752300AbeCWV2s (ORCPT + 99 others); Fri, 23 Mar 2018 17:28:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:54004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101AbeCWV2r (ORCPT ); Fri, 23 Mar 2018 17:28:47 -0400 Received: from gandalf.local.home (cpe-172-100-180-131.stny.res.rr.com [172.100.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A280A20838; Fri, 23 Mar 2018 21:28:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A280A20838 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Fri, 23 Mar 2018 17:28:43 -0400 From: Steven Rostedt To: Thomas Gleixner 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() Message-ID: <20180323172843.763579a9@gandalf.local.home> In-Reply-To: References: X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Steve