Re: [Xen-devel] [PATCH] tools/kdd: don't use a pointer to an unaligned field.

2017-03-15 Thread Roger Pau Monne
On Fri, Mar 10, 2017 at 10:10:57AM +, Tim Deegan wrote: > The 'val' field in the packet is byte-aligned (because it is part of a > packed struct), but the pointer argument to kdd_rdmsr() has the normal > alignment constraints for a uint64_t *. Use a local variable to make sure > the passed

[Xen-devel] [PATCH] tools/kdd: don't use a pointer to an unaligned field.

2017-03-10 Thread Tim Deegan
The 'val' field in the packet is byte-aligned (because it is part of a packed struct), but the pointer argument to kdd_rdmsr() has the normal alignment constraints for a uint64_t *. Use a local variable to make sure the passed pointer has the correct alignment. Reported-by: Roger Pau Monné