Re: [Xen-devel] [PATCH 6/6] domctl/vNUMA: avoid arithmetic overflow

2020-02-05 Thread Wei Liu
On Wed, Feb 05, 2020 at 02:17:02PM +0100, Jan Beulich wrote: > Checking the result of a multiplication against a certain limit has no > sufficient implication on the original value's range. In the case here > it is in particular problematic that while handling the domctl we do > > if ( copy_fr

[Xen-devel] [PATCH 6/6] domctl/vNUMA: avoid arithmetic overflow

2020-02-05 Thread Jan Beulich
Checking the result of a multiplication against a certain limit has no sufficient implication on the original value's range. In the case here it is in particular problematic that while handling the domctl we do if ( copy_from_guest(info->vdistance, uinfo->vdistance, nr