sf00204509: rcu lock fix backport

PPA description

srcu: Lock srcu_data structure in srcu_gp_start()
The srcu_gp_start() function is called with the srcu_struct structure's
->lock held, but not with the srcu_data structure's ->lock. This is
problematic because this function accesses and updates the srcu_data
structure's ->srcu_cblist, which is protected by that lock. Failing to
hold this lock can result in corruption of the SRCU callback lists,
which in turn can result in arbitrarily bad results.

This commit therefore makes srcu_gp_start() acquire the srcu_data
structure's ->lock across the calls to rcu_segcblist_advance() and
rcu_segcblist_accelerate(), thus preventing this corruption.

Reported-by: Bart Van Assche <email address hidden>
Reported-by: Christoph Hellwig <email address hidden>
Reported-by: Sebastian Kuzminsky <email address hidden>
Signed-off-by: Dennis Krein <email address hidden>
Signed-off-by: Paul E. McKenney <email address hidden>
Tested-by: Dennis Krein <email address hidden>
Cc: <email address hidden> # 4.12.x

f5f464012e3f srcu: Lock srcu_data structure in srcu_gp_start()
9a0941dc9e50 srcu: Prohibit call_srcu() use under raw spinlocks

Adding this PPA to your system

You can update your system with unsupported packages from this untrusted PPA by adding ppa:mimi0213kimo/sf00204509-rcu-backport to your system's Software Sources. (Read about installing)

sudo add-apt-repository ppa:mimi0213kimo/sf00204509-rcu-backport
sudo apt update
        
Technical details about this PPA

This PPA can be added to your system manually by copying the lines below and adding them to your system's software sources.

deb https://ppa.launchpadcontent.net/mimi0213kimo/sf00204509-rcu-backport/ubuntu xenial main 
deb-src https://ppa.launchpadcontent.net/mimi0213kimo/sf00204509-rcu-backport/ubuntu xenial main 
Signing key:
1024R/507FCC449C3DF235AF6799B2B68469EAC3EDBBD2 (What is this?)
Fingerprint:
507FCC449C3DF235AF6799B2B68469EAC3EDBBD2

For questions and bugs with software in this PPA please contact Gavin Guo.

PPA statistics

Activity
0 updates added during the past month.
View package details

Overview of published packages

11 of 1 result
Package Version Uploaded by
linux-azure 4.15.0-1030.31~16.04.1+hf204509v20181109b1ha4665cd40f1f (Newer version available) Gavin Guo ()
11 of 1 result

Latest updates

  • linux-azure 288 weeks ago
    Successfully built