Commit be8ef9ff authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

parasite: Make sure the structures passed are small enough

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Acked-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 60fc4ed7
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment