Re: ioctl, copy string from user

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ryan Stone
Date: Thursday, April 29, 2010 - 2:19 pm

> Apparently I need to tell ioctl how big is the variable I am

I think that you'll find that what actually happens is that you're
reading from the userspace pointer.  That will work as long as the
pointer is mapped, but you'll panic if what it points to gets swapped
out or is invalid.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ioctl, copy string from user, Lukáš Czerner, (Thu Apr 29, 10:52 am)
Re: ioctl, copy string from user, Lukáš Czerner, (Thu Apr 29, 10:56 am)
Re: ioctl, copy string from user, John Baldwin, (Thu Apr 29, 11:18 am)
Re: ioctl, copy string from user, Lukáš Czerner, (Thu Apr 29, 12:21 pm)
Re: ioctl, copy string from user, John Baldwin, (Thu Apr 29, 1:06 pm)
Re: ioctl, copy string from user, Lukáš Czerner, (Thu Apr 29, 1:28 pm)
Re: ioctl, copy string from user, John Baldwin, (Thu Apr 29, 1:56 pm)
Re: ioctl, copy string from user, Lukáš Czerner, (Thu Apr 29, 2:09 pm)
Re: ioctl, copy string from user, Ryan Stone, (Thu Apr 29, 2:19 pm)
Re: ioctl, copy string from user, Lukáš Czerner, (Thu Apr 29, 2:19 pm)
Re: ioctl, copy string from user, Lukáš Czerner, (Thu Apr 29, 2:23 pm)
Re: ioctl, copy string from user, Gary Jennejohn, (Fri Apr 30, 1:52 am)