Re: [Xen-devel] [PATCH v2 2/5] livepatch: Include sizes when an mismatch occurs

2017-07-31 Thread Jan Beulich
>>> Konrad Rzeszutek Wilk 07/26/17 9:48 PM >>> >--- a/xen/common/livepatch.c >+++ b/xen/common/livepatch.c >@@ -457,6 +457,24 @@ static int secure_payload(struct payload *payload, struct >livepatch_elf *elf) >return rc; >} > >+static int check_section(const struct livepatch_elf *elf, >+

[Xen-devel] [PATCH v2 2/5] livepatch: Include sizes when an mismatch occurs

2017-07-26 Thread Konrad Rzeszutek Wilk
From: Konrad Rzeszutek Wilk If the .bug.frames.X or .livepatch.funcs sizes are different than what the hypervisor expects - we fail the payload. To help in diagnosing this include the expected and the payload sizes. Also make it more natural by having "Multiples" in the warning. Signed-off-by: