Re: AUDIT of 2.5.15 copy_to/from_user
Arnaldo Carvalho de Melo (firstname.lastname@example.org)
Sun, 19 May 2002 09:48:18 -0300
Em Sun, May 19, 2002 at 02:18:53PM +1000, Rusty Russell escreveu:
> The following uses seem to be incorrect: copy_from_user and
> copy_to_user return the number of bytes NOT copied on failure, not
> You can CC: fixups to trivial at rustcorp.com.au.
> (I didn't look for cases where the Torvalds/McVoy philosophy says we
> should be returning a partial result on EFAULT: that's more complex).
> Some cases are endemic: whole subsystems or drivers where the author
> obviously thought copy_from_user follows the kernel conventions:
Heads up: I'm fixing now the sound/pci ones...
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/