Date: Wed, 23 Jun 2010 11:41:54 -0700 From: Xin LI <delphij@delphij.net> To: Jung-uk Kim <jkim@FreeBSD.org> Cc: d@delphij.net, freebsd-stable@FreeBSD.org, Mario Sergio Fujikawa Ferreira <lioux@freebsd.org> Subject: Re: FreeBSD 8.1-PRERELEASE: WARNING ioctl sign-extension ioctl ffffffff8004667e Message-ID: <4C225572.8020602@delphij.net> In-Reply-To: <201006231437.38694.jkim@FreeBSD.org> References: <20100623025855.82916.qmail@exxodus.fedaykin.here> <4C224E7C.7090806@delphij.net> <201006231437.38694.jkim@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2010/06/23 11:37, Jung-uk Kim wrote: > On Wednesday 23 June 2010 02:12 pm, Xin LI wrote: >> Hi, >> >> On 2010/06/22 19:58, Mario Sergio Fujikawa Ferreira wrote: >>> Hi, >>> >>> I am getting more than 4 thousand of the following messages a >>> day: >>> >>> WARNING pid 24509 (python2.6): ioctl sign-extension ioctl >>> ffffffff8004667e >> >> [...] >> >> I think we may need to check the code and patch it. Basically this >> means that python (or some .so modules) passed an int or unsigned >> int as parameter 'cmd', we need to change it to unsigned long. >> >> The warning itself should be harmless to my best of knowledge, one >> can probably remove the printf in kernel source code as a >> workaround. >> >> By the way it seems to be a POSIX violation and we didn't seem to >> really use so wide cmd, but I have not yet verified everything >> myself. > > Long time ago, I had a similar problem with termios TIOCGWINSZ and we > patched the port like this: > > http://www.freebsd.org/cgi/cvsweb.cgi/ports/lang/python/files/Attic/patch-Modules%3A%3Afcntlmodule.c?rev=1.1;content-type=text%2Fplain > > I believe it was upstream patched at the time but I won't be surprised > if something similar was reintroduced. It happens when a Python > internal integer type is converted to a native unsigned long. Well, only *BSD have cmd a long value so it's likely that it would be reintroduced. I have checked the 4.4BSD archive and understood that our ioctl's cmd parameter was made long around 1991 or 1992s but didn't see what it actually buy us... Cheers, - -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (FreeBSD) iQEcBAEBCAAGBQJMIlVyAAoJEATO+BI/yjfBLgcIAKXIekJTGptB51L3XJaJL0q4 I+3nAqDcexDiTIAZ3ExDW47MNeh89fR5Iun2kgYlaOYtEEz8iFdJkrH2dgjkRGpt iBXcjuYw/rVINkvl03tovwIaDNmHjvD3NyvvTSOqmSsRnyR6Z7LACNqQr95nPzrF jJFS+AWT0QeytzhJFSAHXniR9paTsktnHTIN4XEdnYlzNIIhP8BoDgfJ3RqGJRk9 QcvZtait5JWHaGJFhGvN/j30lGsHPabt9zWqNVSHLJ9pSzfwAtW7Ihwso55/blYA JxkRUps2AfK9ZhvQ2B0eArVQLjA61HifVE1UNLrkh1KMeUPth4eIZvBZuWtJ7R8= =ZCD9 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C225572.8020602>