Re: [Xen-devel] [PATCH] console: avoid wrapping of console pointers

2017-02-16 Thread Andrew Cooper
On 16/02/17 17:23, Jan Beulich wrote: > We particularly want/need to avoid accessing data outside (ahead of) > the ring buffer. Also latch both pointers into local variable to > avoid different steps of the calculation being done with different > values. > > Reported-by: Quan Luo > Signed-off-by:

[Xen-devel] [PATCH] console: avoid wrapping of console pointers

2017-02-16 Thread Jan Beulich
We particularly want/need to avoid accessing data outside (ahead of) the ring buffer. Also latch both pointers into local variable to avoid different steps of the calculation being done with different values. Reported-by: Quan Luo Signed-off-by: Jan Beulich --- a/xen/drivers/char/console.c +++