[CRIU] [PATCH 2/2] parasite: Make sure struct parasite_dump_misc is small enough

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 1 03:03:29 EST 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 parasite.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/parasite.c b/parasite.c
index 0a4c06f..3abf0eb 100644
--- a/parasite.c
+++ b/parasite.c
@@ -364,6 +364,7 @@ static int __used parasite_service(unsigned long cmd, void *args, void *brk)
 
 	BUILD_BUG_ON(sizeof(struct parasite_dump_pages_args) > PARASITE_ARG_SIZE);
 	BUILD_BUG_ON(sizeof(struct parasite_dump_file_args) > PARASITE_ARG_SIZE);
+	BUILD_BUG_ON(sizeof(struct parasite_dump_misc) > PARASITE_ARG_SIZE);
 
 	switch (cmd) {
 	case PARASITE_CMD_DUMPPAGES:
-- 
1.7.7.6



More information about the CRIU mailing list