Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp202276pxb; Tue, 21 Sep 2021 23:33:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2mGYh8EFT+zn0d6DuOHZjoC5c9AWnpQVteXh7e+blSfzwlxXX7u/eSff6ioCzk1mpUBJR X-Received: by 2002:a5d:850f:: with SMTP id q15mr3178464ion.118.1632292389386; Tue, 21 Sep 2021 23:33:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632292389; cv=none; d=google.com; s=arc-20160816; b=QD6E93uqHIZlFoWKkLrKVoKaznC6/ZxNJOtVkl9wVlfOSqg9YuLzarNg8ejC/P4lKS FwzBnx1soGlE4VEA6GSdFxRUFiOMLg6rEF/Rdz115Myhc5/6vEZZs9J92zIJ1Ib3zL4K TB5fT2iPnDFQAZOyoq3NxykO8iZeMqT6MJH6EQiYfre8r6XI7nF3311u9WciHmL1IGZr 75Ai6tDAZ/EyfsSNROlCWTjU19i/dBzj5dUa5uQ0iKkhP+j/kVXPwCLymzWec1QZLhr8 FDMmGfuvd07uNQT8qLSsQuYtsx5stns9dnSVEyyiLIm/Yc4c/Yv3QJJJdzFzDBUhDPDF VhTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=LHGvGMeI0MChbmKlKUQjDfvhqjuQaXlro5jHJuiZF4w=; b=GSAMAX5gKrCcabqtCSzl1SUweMG0bUDAKWiekNBV6u6ByMkF+Y58phjSIll7HHllRE x6oELF5OcBUg1L/5w5E+c8IiYEDDh7tG6RAaAk1gvKKktvKajA+YNv2eUKn4OoS9xDHV d6FlHnZhlNSu1NrMgzYPH79yRFeq8h6LBQWd1Alh1Ry4oZ15VvYBmnYsJ2nrUKTYxK/W SMMsLOIHRrk0buTKvEXvPZAgzR3sqXZyGsYj7ewzUcjwnLbe5t8p9yfI3zpPCu08L5y0 nKKgxwDyBYsnzDpi/VcF+DDu83d58mXEvYsvYOlAXLT3wAijiK1fN/RDw/e9v1kMJF5B qAHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=AFVjxbaC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 189si1478414ioa.5.2021.09.21.23.32.57; Tue, 21 Sep 2021 23:33:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=AFVjxbaC; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232763AbhIVGdl (ORCPT + 99 others); Wed, 22 Sep 2021 02:33:41 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:53416 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232710AbhIVGdk (ORCPT ); Wed, 22 Sep 2021 02:33:40 -0400 Date: Wed, 22 Sep 2021 08:32:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1632292329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LHGvGMeI0MChbmKlKUQjDfvhqjuQaXlro5jHJuiZF4w=; b=AFVjxbaCU1HStARR3s5GptNPD2J5/N0DhTmeIwza4KWjgE+XUqWjrBrxHbQGi7hd7Zc7js BHFE42pswXTDMhQasgTwaXzYu1Z5U7vQqOUkhQxJkwL44gOvnvS936y1q6EXfoP6eSvqAj Zm5RWUWQjozxlGg1uiJx4q+3169rv57mrbiYxUk/p882wbSwK6BZFw6qvBGh3REOZ+X1XY /SBVb/7v658z3MqITZma+6RAWuLc8OqTz8T9jLfSEy2wlmX5hWZmrIpyBGhvNr5mDfW2wD JkAea82CIUY8rNHK5VEh5oHqy1BhWnhx1QTf4WpFKkSKUgGysTJnwsKbugSQ3g== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1632292329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=LHGvGMeI0MChbmKlKUQjDfvhqjuQaXlro5jHJuiZF4w=; b=XOSDGiTQMoMm+wYlF4/FhKR/TW81atLKv4UkTrp7RxxMkfUED2spl7KHV32imSzOmG+EnO gY3q8TF3EL5ks0CA== From: Sebastian Andrzej Siewior To: Frederic Weisbecker Cc: Thomas Gleixner , Valentin Schneider , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rcu@vger.kernel.org, linux-rt-users@vger.kernel.org, Catalin Marinas , Will Deacon , Ingo Molnar , Peter Zijlstra , Steven Rostedt , Daniel Bristot de Oliveira , "Paul E. McKenney" , Josh Triplett , Mathieu Desnoyers , Davidlohr Bueso , Lai Jiangshan , Joel Fernandes , Anshuman Khandual , Vincenzo Frascino , Steven Price , Ard Biesheuvel , Boqun Feng , Mike Galbraith Subject: Re: rcu/tree: Protect rcu_rdp_is_offloaded() invocations on RT Message-ID: <20210922063208.ltf7sdou4tr5yrnc@linutronix.de> References: <20210811201354.1976839-1-valentin.schneider@arm.com> <20210811201354.1976839-4-valentin.schneider@arm.com> <874kae6n3g.ffs@tglx> <87pmt163al.ffs@tglx> <20210921234518.GB100318@lothringen> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210921234518.GB100318@lothringen> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-09-22 01:45:18 [+0200], Frederic Weisbecker wrote: > > Also while at it, I'm asking again: traditionally softirqs could assume that > manipulating a local state was safe against !irq_count() code fiddling with > the same state on the same CPU. > > Now with preemptible softirqs, that assumption can be broken anytime. RCU was > fortunate enough to have a warning for that. But who knows how many issues like > this are lurking? If "local state" is modified then it is safe as long as it is modified within a local_bh_disable() section. And we are in this section while invoking a forced-threaded interrupt. The special part about RCU is that it is used in_irq() as part of core-code. > Thanks. Sebastian