[CRIU] [crtools-bot for Cyrill Gorcunov ] parasite: Make sure the
structures passed are small enough
Cyrill Gorcunov
gorcunov at openvz.org
Tue Feb 14 08:18:08 EST 2012
The commit is pushed to "master" and will appear on git://github.com/cyrillos/crtools.git
------>
commit be8ef9ff32385bac10196d7fb13468c683f5717d
Author: Cyrill Gorcunov <gorcunov at openvz.org>
Date: Wed Feb 8 20:39:24 2012 +0400
parasite: Make sure the structures passed are small enough
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
Acked-by: Pavel Emelyanov <xemul at parallels.com>
---
parasite.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/parasite.c b/parasite.c
index 55064c5..2b4c639 100644
--- a/parasite.c
+++ b/parasite.c
@@ -404,6 +404,8 @@ static int __used parasite_service(unsigned long cmd, void *args, void *brk)
brk_init(brk);
BUILD_BUG_ON(sizeof(struct parasite_dump_pages_args) > PARASITE_ARG_SIZE);
+ BUILD_BUG_ON(sizeof(struct parasite_init_args) > PARASITE_ARG_SIZE);
+ BUILD_BUG_ON(sizeof(struct parasite_dump_misc) > PARASITE_ARG_SIZE);
switch (cmd) {
case PARASITE_CMD_PINGME:
More information about the CRIU
mailing list