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

2000-11-01 Thread Vojtech Pavlik
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

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

2000-10-27 Thread David Woodhouse
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 d