Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1494898

Re: KVM: s390: Use memdup_user() rather than duplicating code

From SF Markus Elfring <elfring@users.sourceforge.net>
Newsgroups linux.kernel
Subject Re: KVM: s390: Use memdup_user() rather than duplicating code
Date 2016-10-03 16:30 +0200
Message-ID <socpH-65o-3@gated-at.bofh.it> (permalink)
References (5 earlier) <soanT-4OL-5@gated-at.bofh.it> <soaxA-4S2-7@gated-at.bofh.it> <sobjX-5qH-21@gated-at.bofh.it> <sobN0-5Bt-19@gated-at.bofh.it> <soc6l-5Xk-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>> * 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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [PATCH v2 2/2] KVM: s390: Use memdup_user() rather than  duplicating code Geert Uytterhoeven <geert@linux-m68k.org> - 2016-10-03 14:20 +0200
  Re: [PATCH v2 2/2] KVM: s390: Use memdup_user() rather than  duplicating code SF Markus Elfring <elfring@users.sourceforge.net> - 2016-10-03 14:30 +0200
    Re: [PATCH v2 2/2] KVM: s390: Use memdup_user() rather than  duplicating code Geert Uytterhoeven <geert@linux-m68k.org> - 2016-10-03 15:20 +0200
      Re: [PATCH v2 2/2] KVM: s390: Use memdup_user() rather than  duplicating code SF Markus Elfring <elfring@users.sourceforge.net> - 2016-10-03 15:50 +0200
        Re: [PATCH v2 2/2] KVM: s390: Use memdup_user() rather than  duplicating code Geert Uytterhoeven <geert@linux-m68k.org> - 2016-10-03 16:10 +0200
          Re: KVM: s390: Use memdup_user() rather than duplicating code SF Markus Elfring <elfring@users.sourceforge.net> - 2016-10-03 16:30 +0200

csiph-web