Re: KVM: s390: Use memdup_user() rather than duplicating code
From: SF Markus Elfring
Date: Mon Oct 03 2016 - 10:26:02 EST
>> * 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? ;-)