Re: mousedev uses userspace pointers without copy_{to,from}_user

Vojtech Pavlik
2000-11-01T13:16:45Z

On Fri, Oct 27, 2000 at 02:17:51PM +0100, David Woodhouse wrote:
>
>
> static ssize_t mousedev_write(struct file * file, const char * buffer, size_t count, loff_t *ppos)
> {
> struct mousedev_list *list = file->private_data;
> unsigned char c;
> int i;
>
> for (i = 0; i < count; i++) {
>
> c = buffer[i];
>
>
> oops. Can we make this die horribly on x86, just for a few kernel releases?
> Along with turning on spinlock debugging, which would have shown up the USB
> audio problem months ago.

Ok, fixed in the CVS, a patch for the kernel to follow soon.

--
Vojtech Pavlik
SuSE Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/