Skip to content

Miscellaneous fixes for v5.8

Paul E. McKenney lkml rcu 1 version In review

Get series with b4
b4 am 20200415171017.GA7821@paulmck-ThinkPad-P72

Versions newest first

  1. v1 Latest19 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19rcu: Add KCSAN stubskernel/rcu/tree.c+13 -00 replies
2/19srcu: Add KCSAN stubskernel/rcu/srcutree.c+13 -00 replies
3/19rcu: Mark rcu_state.ncpus to detect concurrent writeskernel/rcu/tree.c+1 -00 replies
4/19rcu: Add *_ONCE() and data_race() to rcu_node ->exp_tasks plus lockingkernel/rcu/tree_exp.h kernel/rcu/tree_plugin.h+15 -120 replies
5/19rcu: Add READ_ONCE and data_race() to rcu_node ->boost_taskskernel/rcu/tree_plugin.h+3 -20 replies
6/19srcu: Add data_race() to ->srcu_lock_count and ->srcu_unlock_count arrayskernel/rcu/srcutree.c+4 -40 replies
7/19rcu: Add WRITE_ONCE() to rcu_node ->boost_taskskernel/rcu/tree_plugin.h+2 -20 replies
8/19rcu: Use data_race() for RCU CPU stall-warning printskernel/rcu/tree_stall.h+13 -130 replies
9/19drm: Make drm_dp_mst_dsc_aux_for_port() safe for old compilersdrivers/gpu/drm/drm_dp_mst_topology.c+1 -10 replies
10/19rcu: Expedite first two FQS scans under callback-overload conditionskernel/rcu/tree.c kernel/rcu/tree.h+16 -40 replies
11/19rcu: Fix the (t=0 jiffies) false positivekernel/rcu/tree_stall.h+6 -60 replies
12/19Revert "rculist: Describe variadic macro argument in a Sphinx-compatible way"include/linux/rculist.h+2 -20 replies
13/19rcu: Get rid of some doc warnings in update.ckernel/rcu/update.c+4 -40 replies
14/19rcu: Mark rcu_state.gp_seq to detect more concurrent writeskernel/rcu/tree.c+3 -10 replies
15/19rcu: Replace assigned pointer ret value by corresponding boolean valuekernel/rcu/update.c+3 -30 replies
16/19rcu: Replace 1 by truekernel/rcu/tree.c+1 -10 replies
17/19rcu: Convert ULONG_CMP_GE() to time_after() for jiffy comparisonkernel/rcu/tree.c+1 -10 replies
18/19rcu: Convert rcu_initiate_boost() ULONG_CMP_GE() to time_after()kernel/rcu/tree_plugin.h+1 -10 replies
19/19rcu: Convert rcu_nohz_full_cpu() ULONG_CMP_LT() to time_before()kernel/rcu/tree_plugin.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH tip/core/rcu 0/19] Miscellaneous fixes for v5.8

Hello!

This series provides miscellaneous fixes.

1. Add KCSAN stubs to tree.c.

2. Add KCSAN stubs to srcutree.c.

3. Mark rcu_state.ncpus to detect concurrent writes.

4. Add *_ONCE() and data_race() to rcu_node ->exp_tasks and also
add some needed locking.

5. Add READ_ONCE and data_race() to rcu_node ->boost_tasks.

6. Add data_race() to ->srcu_lock_count and ->srcu_unlock_count arrays.

7. Add WRITE_ONCE() to rcu_node ->boost_tasks.

8. Use data_race() for RCU CPU stall-warning prints.

9. Make drm_dp_mst_dsc_aux_for_port() safe for old compilers.
Hey, I have the hair color for it!!! ;-)

10. Expedite first two FQS scans under callback-overload conditions.

11. Fix the (t=0 jiffies) false positive, courtesy of Zhaolong Zhang.

12. Revert "rculist: Describe variadic macro argument in a
Sphinx-compatible way" due to Sphinx now being able to handle the original description, courtesy of Jonathan Neuschäfer.

13. Get rid of some doc warnings in update.c, courtesy of
Mauro Carvalho Chehab.

14. Mark rcu_state.gp_seq to detect more concurrent writes.

15. Replace assigned pointer ret value by corresponding boolean value,
courtesy of Jules Irenge.

16. Replace 1 by true in use_softirq initialization, courtesy of
Jules Irenge.

17. Convert ULONG_CMP_GE() to time_after() for jiffy comparison.

18. Convert rcu_initiate_boost() ULONG_CMP_GE() to time_after().

19. Convert rcu_nohz_full_cpu() ULONG_CMP_LT() to time_before().

Thanx, Paul

------------------------------------------------------------------------

 drivers/gpu/drm/drm_dp_mst_topology.c |    2 -
 include/linux/rculist.h               |    4 +--
 kernel/rcu/srcutree.c                 |   21 ++++++++++++++---
 kernel/rcu/tree.c                     |   41 ++++++++++++++++++++++++++++------
 kernel/rcu/tree.h                     |    1 
 kernel/rcu/tree_exp.h                 |   19 +++++++++------
 kernel/rcu/tree_plugin.h              |   21 +++++++++--------
 kernel/rcu/tree_stall.h               |   38 +++++++++++++++----------------
 kernel/rcu/update.c                   |   14 +++++------
 9 files changed, 103 insertions(+), 58 deletions(-)