Search Linux Wireless

Re: [PATCH] remove duplicated ioctl entries in compat_ioctl.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 30, 2007 at 10:47:26AM -0400, John W. Linville wrote:
> On Mon, Jul 30, 2007 at 09:02:56PM +0900, Masakazu Mokuno wrote:
> 
> > In second half of the mail, I understood the he asked how about keeping
> > used one (COMPATIBLE_IOCTL) instead of HANDLE_IOCTL one, considering
> > compatibilities.  As I can esteem the idea that sometimes the compatibilities
> > are more important than changing something and I didn't think my patch
> > could address all problems of the issue and I had much time to test more,
> > I replied with the intention that I didn't stick to the patch if all
> > userland application could work around perfectly.
> 
> Masakazu-san,
> 
> Thank you very much for your thorough explanation of the situation.
> I apologize for having been a bit slow to grasp what you were doing.
> 
> I agree that the HANDLE_IOCTL version seems correct.  As you correctly
> understood, my concern was that we not break anything new in the
> process of fixing this bug.
> 
> Have you tested the both the old and the new wireless-tools on
> a kernel with your patch applied?  Both 32- and 64-bit versions?
> Do they all work equally well?
> 
> Thanks,
> 
> John

	Using SIOCSIWSCAN is probably a bad idea to test, because
there is the extra problem of alignement *within* the data, on top of
the pointer problem.
	Testing with SIOCGIWSTATS or SIOCGIWPRIV would narrow down to
only the pointer problem, and the kernel fix should work with both old
and new version of the Wireless Tools. It's simple to test, either you
are getting valid data or garbage, the only issue is that some drivers
may be returning garbage for those calls.
	Johannes told me (in the thread I linked) that the
HANDLE_IOCTL was improving things (and that how we discovered the
alignement problem). But, Johannes did not do exhaustive testing and I
would welcome more testing, for sure.
	Have fun...

	Jean
-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux