[Swan] valgrind and ioctl 0x89f3

Paul Wouters pwouters at redhat.com
Thu Mar 7 18:05:26 EET 2013


On Thu, 7 Mar 2013, D. Hugh Redelmeier wrote:

> Valgrind sometimes issues the following warning on Pluto:
> ==17548== Warning: noted but unhandled ioctl 0x89f3 with no size/direction hints
>
> This means that valgrind doesn't know (hasn't been told) what this
> ioctl is.
>
> Well it appears that there are a lot of them.
>
> /usr/include/bits/ioctls.h:103:#define SIOCDEVPRIVATE           0x89F0  /* to 89FF */

I believe it is a "private use ioctl", so it is meant to be used for
different things?

> Clearly which one we're using depends on the device.  In fact, the
> code does not seem to reference any of these constants, so it isn't
> clear who's calling which ioctl.

I believe we use it only in the case of KLIPS. I _think_ (but am not
sure) that it was overloaded to send additional information from
userspace to the kernel, such as device names?

> BTW, this definition
> 	#define SIOCSCMFREQUENCY  SIOCDEVPRIVATE+3        /* set cable modem frequency */
> should be changed to
> 	#define SIOCSCMFREQUENCY  (SIOCDEVPRIVATE+3)        /* set cable modem frequency */

I filed a bug at: https://bugzilla.redhat.com/show_bug.cgi?id=919116

Paul


More information about the Swan mailing list