"Garrett D'Amore" <[EMAIL PROTECTED]> wrote: > Jürgen Keil wrote: > > Hmm, in the past, nothing prevented me from passing > > ioctl parameter structures with a size > 255. > > > > qemu and it's kqemu kernel module are actually using such > > a big structure with the KQEMU_EXEC ioctl. > > > > Ah, but the encoded size in the ioctl will be truncated. If you don't > *rely* on the encoded size, then there is no problem.
The only way to deal with this problem seems to be to use a case XXX: case XXX_OLD: variant of the IOCTL definition. If we were on SunOS-4.x or *BSD, the truncation would prevent the ioctl to work but on SunOS-5.x the kernel does not copy in/out the parameters. This jub is done inside the driver. Having this in mind, the change in the ioctl may not be needed at all. Jörg -- EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin [EMAIL PROTECTED] (uni) [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code