Re: Intel MIC host driver: possible signed underflow (undefined behavior) in userspace API

2014-01-10 Thread Greg Kroah-Hartman
On Fri, Jan 10, 2014 at 10:22:55AM -0800, Sudeep Dutt wrote: > On Fri, 2014-01-10 at 06:21 -0800, Greg Kroah-Hartman wrote: > > On Fri, Jan 10, 2014 at 05:56:25AM +, Mathieu Desnoyers wrote: > > > Hi, > > > > > > Looking at this commit: > > > > > > commit f69bcbf3b4c4b333dcd7a48eaf868bf0c88ed

Re: Intel MIC host driver: possible signed underflow (undefined behavior) in userspace API

2014-01-10 Thread Sudeep Dutt
On Fri, 2014-01-10 at 06:21 -0800, Greg Kroah-Hartman wrote: > On Fri, Jan 10, 2014 at 05:56:25AM +, Mathieu Desnoyers wrote: > > Hi, > > > > Looking at this commit: > > > > commit f69bcbf3b4c4b333dcd7a48eaf868bf0c88edab5 > > Author: Ashutosh Dixit > > Date: Thu Sep 5 16:42:18 2013 -0700 >

Re: Intel MIC host driver: possible signed underflow (undefined behavior) in userspace API

2014-01-10 Thread Greg Kroah-Hartman
On Fri, Jan 10, 2014 at 05:56:25AM +, Mathieu Desnoyers wrote: > Hi, > > Looking at this commit: > > commit f69bcbf3b4c4b333dcd7a48eaf868bf0c88edab5 > Author: Ashutosh Dixit > Date: Thu Sep 5 16:42:18 2013 -0700 > > Intel MIC Host Driver Changes for Virtio Devices. > > Especially at:

Intel MIC host driver: possible signed underflow (undefined behavior) in userspace API

2014-01-09 Thread Mathieu Desnoyers
Hi, Looking at this commit: commit f69bcbf3b4c4b333dcd7a48eaf868bf0c88edab5 Author: Ashutosh Dixit Date: Thu Sep 5 16:42:18 2013 -0700 Intel MIC Host Driver Changes for Virtio Devices. Especially at: +struct mic_copy_desc { +#ifdef __KERNEL__ + struct iovec __user *iov; +#else +