July 17, 2020
10:46 p.m.
On Fri, 17 Jul 2020 02:13:34 +0200, Richard Sailer said:
unsigned long. Is this (correctness and security wise) sane? Because as I understand it put_user() determines the amount it copies from the pointer type.
rc = put_user(amount, (int __user *)arg);
If that were true, you wouldn't need to pass the 'amount' variable....