The commit is pushed to "branch-rh10-6.12.0-55.52.1.5.x.vz10-ovz" and will
appear at [email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.5.29.vz10
------>
commit bf1ca91b3f307c29a646838ae296edd9fcf68d05
Author: Vladimir Riabchun <[email protected]>
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 <[email protected]>
Reviewed-by: Vasileios Almpanis <[email protected]>
---
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;
\
}
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel