With kernel.sched_schedstats on, update_sched_lat() takes task_lock
under the runqueue lock, and an hci-8.1 perf-storage node died of a hard
lockup from it. sched_show_task() takes the same lock under rnp->lock in
the RCU stall reports, from sysrq and the workqueue watchdog, and can
print a ve name already freed at cgroup offline.

https://virtuozzo.atlassian.net/browse/VSTOR-155276
https://virtuozzo.atlassian.net/browse/VSTOR-155341

Built; the lock cycle is confirmed in the vmcore, not run on a node.

v2: also fix sched_show_task() and free ve_name with the ve (Vasileios)
v1: http://lore.virtuozzo.com/kernel/[email protected]/

Denis V. Lunev (3):
  sched/stats: fix a hard lockup on task_lock in update_sched_lat()
  ve: free ve_name together with the ve, not at cgroup offline
  sched: drop task_lock from sched_show_task()

 kernel/sched/core.c  |  5 ++---
 kernel/sched/stats.c |  4 +---
 kernel/ve/ve.c       | 12 +-----------
 3 files changed, 4 insertions(+), 17 deletions(-)

-- 
2.55.0

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to