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] [day] [month] [year] [list]
Date:   Tue, 31 Oct 2017 23:29:59 +0100 (CET)
From:   Thomas Gleixner <tglx@...utronix.de>
To:     Masahiro Yamada <yamada.masahiro@...ionext.com>
cc:     Peter Zijlstra <peterz@...radead.org>,
        Ingo Molnar <mingo@...hat.com>,
        "Paul E . McKenney" <paulmck@...ux.vnet.ibm.com>,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] genirq: add mutex and rcu locking to irq_desc_tree

On Tue, 31 Oct 2017, Masahiro Yamada wrote:

> Add a mutex to prevent concurrency on the updater side of the
> irq_desc radix tree.

The callers of insert/delete are already serialized by sparse_irq_lock. SO
why would we need yet another mutex?

> Add rcu_read_lock/unlock to the reader side so that lifetimes of
> leaf pointers of the radix tree are correctly managed.

That rcu protection is only needed for callers which have special life time
requirements and they have that already. For the bulk of the callers rcu
read lock is not required unless I'm missing something.

Thanks,

	tglx

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ