[Devel] [PATCH RHEL10 COMMIT] fixup! ve/sysctl: implement virtualized methods
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Jun 5 21:32:11 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 bf1ca91b3f307c29a646838ae296edd9fcf68d05
Author: Vladimir Riabchun <vladimir.riabchun at virtuozzo.com>
Date: Tue Jun 2 21:10:37 2026 +0000
fixup! ve/sysctl: implement virtualized methods
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>
---
include/linux/sysctl.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
index 2fab3ecfaf88c..633f219f5ab60 100644
--- a/include/linux/sysctl.h
+++ b/include/linux/sysctl.h
@@ -94,7 +94,8 @@ int sysctl ## _virtual(const struct ctl_table *table, int write, \
void *buffer, size_t *lenp, loff_t *ppos) \
{ \
struct ctl_table tmp = *table; \
- if (virtual_ptr(&tmp.data, &ve0, sizeof(ve0), get_exec_env())) \
+ if (virtual_ptr(&tmp.data, get_ve0(), sizeof(struct ve_struct), \
+ get_exec_env())) \
return sysctl(&tmp, write, buffer, lenp, ppos); \
return -EINVAL; \
}
More information about the Devel
mailing list