lkml.org 
[lkml]   [2016]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: KVM: s390: Use memdup_user() rather than duplicating code
From
Date
>> * Does there really a probability remain that an inappropriate product
>> would be calculated here (as the situation was before my two update steps
>> for this software module)?
>
> Perhaps not. Hence my "Probably not an issue here, ...".

Thanks for your clarification.


>> * Can it be that you are looking for a variant of a function like "memdup_user"
>> where values can be passed as separate parameters "count" and "size" so that
>> the needed multiplication and corresponding overflow check would be performed
>> together as desired?
>
> If there are enough uses, and people like it, adding memdup_user_array()
> may be a good idea...

How are the chances of such an addition for the Linux programming interface?


> P.S. Why do your questions make me think of a scientific paper? ;-)

Would you like to recommend any for further reading? ;-)

Regards,
Markus

\
 
 \ /
  Last update: 2016-10-03 16:27    [W:0.090 / U:2.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site