[Devel] [PATCH VZ10 v4 19/44] fixup! ve/sysctl: implement virtualized methods
Vladimir Riabchun
vladimir.riabchun at virtuozzo.com
Wed Jun 3 00:10:37 MSK 2026
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>
---
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 2fab3ecfaf88..633f219f5ab6 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; \
}
--
2.47.1
More information about the Devel
mailing list