[Devel] [PATCH RHEL10 COMMIT] fixup! ve/sysctl: virtualize printk, hotplug and randomize_va_space sysctls

Konstantin Khorenko khorenko at virtuozzo.com
Fri Jun 5 21:32:10 MSK 2026


The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit 76cf8448fad8dd3e1005de1ec9a260d3ce9e8497
Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Date:   Tue Jun 2 21:10:36 2026 +0000

    fixup! ve/sysctl: virtualize printk, hotplug and randomize_va_space sysctls
    
    ve0 doesn't exist when !CONFIG_VE.
    
    https://virtuozzo.atlassian.net/browse/VSTOR-130116
    
    Feature: !CONFIG_VE build
    Signed-off-by: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
    Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>
---
 kernel/sysctl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index ac4cb49e4b7ef..bbe64929a56c1 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -1973,7 +1973,11 @@ static struct ctl_table kern_table[] = {
 #if defined(CONFIG_MMU)
 	{
 		.procname	= "randomize_va_space",
+#ifdef CONFIG_VE
 		.data		= &ve0._randomize_va_space,
+#else
+		.data		= &_randomize_va_space,
+#endif
 		.maxlen		= sizeof(int),
 		.mode		= 0644 | S_ISVTX,
 		.proc_handler	= proc_dointvec_virtual,


More information about the Devel mailing list