[Devel] [PATCH RHEL10 COMMIT] Revert "ve: Guard ve from ve_list with ve_list_lock"

Konstantin Khorenko khorenko at virtuozzo.com
Tue Dec 2 12:29:21 MSK 2025


The commit is pushed to "branch-rh10-6.12.0-55.13.1.2.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.13.1.2.22.vz10
------>
commit 53b7120c4e170291bcf3c4eec1c26e6994f21650
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Tue Dec 2 10:23:47 2025 +0100

    Revert "ve: Guard ve from ve_list with ve_list_lock"
    
    This reverts commit f661b76b72b5b36d2e984a621dce0a8d0b86ba1f.
    
    Both vestat_seq_show() and veinfo_seq_show() are already run under the
    ve_list_lock taken: it's taken in the ve_seq_start() function.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-118289
    
    Reported-by: Aleksei Oladko <aleksey.oladko at virtuozzo.com>
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 kernel/ve/vecalls.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/kernel/ve/vecalls.c b/kernel/ve/vecalls.c
index a9e82a1335403..6caf269fe5040 100644
--- a/kernel/ve/vecalls.c
+++ b/kernel/ve/vecalls.c
@@ -120,8 +120,6 @@ static int vestat_seq_show(struct seq_file *m, void *v)
 	struct kernel_cpustat kstat;
 
 	entry = (struct list_head *)v;
-
-	guard(mutex)(&ve_list_lock);
 	ve = list_entry(entry, struct ve_struct, ve_list);
 
 	curve = get_exec_env();
@@ -277,7 +275,6 @@ static int veinfo_seq_show(struct seq_file *m, void *v)
 {
 	struct ve_struct *ve;
 
-	guard(mutex)(&ve_list_lock);
 	ve = list_entry((struct list_head *)v, struct ve_struct, ve_list);
 
 	/* second 0 is deprecated ve->class_id */


More information about the Devel mailing list