Re: Validating Pointers

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Thu, 26 Jul 2001 12:45:30 -0300


Em Thu, Jul 26, 2001 at 08:36:49AM -0700, Cress, Andrew R escreveu:
>
> Is there a general (correct) kernel subroutine to validate a pointer
> received in a routine as input from the outside world? Is access_ok() a
> good one to use?

normally one uses get_user & friends and copy_from_user and friends
checking its return and returning -EFAULT if they fail
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/