aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorDennis Krein <[email protected]>2018-10-26 07:38:24 -0700
committerPaul E. McKenney <[email protected]>2018-11-27 09:23:57 -0800
commiteb4c2382272ae7ae5d81fdfa5b7a6c86146eaaa4 (patch)
treee7ea6b85059f849898b1148ecf71228ea3a7b7a5 /tools/perf/scripts/python/syscall-counts-by-pid.py
parent0607ba8403c4cdb253f8c5200ecf654dfb7790cc (diff)
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 protected]> Reported-by: Christoph Hellwig <[email protected]> Reported-by: Sebastian Kuzminsky <[email protected]> Signed-off-by: Dennis Krein <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]> Tested-by: Dennis Krein <[email protected]> Cc: <[email protected]> # 4.16.x
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions