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....
Attachment:
pgp9UzDiH9PcJ.pgp
Description: PGP signature
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies