From: Ross Lagerwall Date: Tue, 3 Nov 2015 14:44:49 +0000 (+0000) Subject: Add 64 bytes of padding to xsplice_patch_funcs structure X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=be95e2474439fbdddcd347e7ea1bd3a842927351;p=livepatch-build-tools.git Add 64 bytes of padding to xsplice_patch_funcs structure This gives the hypervisor scratch space for undo buffers and possibly other uses. --- diff --git a/common.h b/common.h index d78275c..e90455c 100644 --- a/common.h +++ b/common.h @@ -122,7 +122,7 @@ struct xsplice_patch_func { unsigned long old_addr; unsigned long old_size; char *name; - unsigned char undo[8]; + unsigned char pad[64]; }; struct special_section { diff --git a/create-diff-object.c b/create-diff-object.c index 15c4115..fb9ef0b 100644 --- a/create-diff-object.c +++ b/create-diff-object.c @@ -1508,7 +1508,7 @@ static void xsplice_create_patches_sections(struct xsplice_elf *kelf, funcs[index].old_size = result.size; funcs[index].new_addr = 0; funcs[index].new_size = sym->sym.st_size; - memset(funcs[index].undo, 0, sizeof funcs[index].undo); + memset(funcs[index].pad, 0, sizeof funcs[index].pad); /* * Add a relocation that will populate