From: "Denis V. Lunev" <den@openvz.org>
To: khorenko@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.1 v2 0/3] sched: fix hard lockups on task_lock taken under scheduler and diagnostic locks
Date: Mon, 16 Nov 2026 14:44:42 +0100 [thread overview]
Message-ID: <20261116134445.438480-1-den@openvz.org> (raw)
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/20261116101516.154737-1-den@openvz.org/
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
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel
next reply other threads:[~2026-11-16 13:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 13:44 Denis V. Lunev [this message]
2026-11-16 13:44 ` [Devel] [PATCH hci-8.1 v2 1/3] sched/stats: fix a hard lockup on task_lock in update_sched_lat() Denis V. Lunev
2026-11-16 13:50 ` no-reply
2026-11-16 16:31 ` Konstantin Khorenko
2026-11-16 13:44 ` [Devel] [PATCH hci-8.1 v2 2/3] ve: free ve_name together with the ve, not at cgroup offline Denis V. Lunev
2026-11-16 13:49 ` no-reply
2026-11-16 16:31 ` Konstantin Khorenko
2026-11-16 13:44 ` [Devel] [PATCH hci-8.1 v2 3/3] sched: drop task_lock from sched_show_task() Denis V. Lunev
2026-11-16 13:52 ` no-reply
2026-11-16 16:31 ` Konstantin Khorenko
2026-11-16 16:03 ` [Devel] [PATCH hci-8.1 v2 0/3] sched: fix hard lockups on task_lock taken under scheduler and diagnostic locks Vasileios Almpanis
2026-11-16 16:31 ` Konstantin Khorenko
2026-11-16 16:31 ` Konstantin Khorenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261116134445.438480-1-den@openvz.org \
--to=den@openvz.org \
--cc=devel@openvz.org \
--cc=khorenko@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.