lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170928160357.anfyrkwq32tyamez@linutronix.de>
Date:   Thu, 28 Sep 2017 18:03:57 +0200
From:   Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To:     "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Cc:     Josh Triplett <josh@...htriplett.org>,
        Steven Rostedt <rostedt@...dmis.org>,
        Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
        Lai Jiangshan <jiangshanlai@...il.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/3] srcu: queue work without holding the lock

On 2017-09-22 11:46:10 [-0700], Paul E. McKenney wrote:
> On Fri, Sep 22, 2017 at 05:28:05PM +0200, Sebastian Andrzej Siewior wrote:
> > On RT we can't invoke queue_delayed_work() within an atomic section
> > (which is provided by raw_spin_lock_irqsave()).
> > srcu_reschedule() invokes queue_delayed_work() outside of the
> > raw_spin_lock_irq_rcu_node() section so this should be fine here, too.
> > If the remaining callers of call_srcu() aren't atomic
> > (spin_lock_irqsave() is fine) then this should work on RT, too.
> 
> Just to make sure I understand...   The problem is not the _irqsave,
> but rather the raw_?

exactly. The _irqsave is translated into a sleeping lock on RT and does
not matter. The raw_ ones stay as they are and queue_delayed_work() uses
sleeping locks itself and this is where things fall apart.

> 							Thanx, Paul
> 

Sebastian

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ