Search Linux Wireless

Re: zd1211rw (2.6.22 sparc64): unaligned access (do_rx)

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

 



On Tue, Nov 20, 2007 at 01:58:42PM -0800, David Miller wrote:
> From: Jean Tourrilhes <jt@xxxxxxxxxx>
> Date: Tue, 20 Nov 2007 10:00:16 -0800
> 
> > 	This is a special version of Wireless Tools with some debug
> > code. It will help me understand what's happening with the bus error
> > while scanning and see what fix I can come up with.
> > 	What you need to do is :
> > 		o untar, make
> > 		o ./iwlist scan > scan.log
> > 	And send me the result.
> 
> I already know what's happening.  Your "fixup" code is deferencing
> the wrong part of the iw_point pointer, it only works on little
> endian.

	I personally want to see the hard data, to make sure I fully
understand it. I'm sorry, but I'm not as experienced as you guys
dealing with endianess and alignement.
	I'll try to look at it when I can find cycles for it.

> The fix is to remove the userland fixup code entirely and fixup
> the stream in the kernel.

	If you look at the overall picture, that would introduce a lot
of complex and tricky code in the kernel, you would need pretty much
the full parser (the metadata, you can get from the wext code). I'm
not sure it's practical where the userspace fix is way simpler.
	Also, it was my long term goal to fix the event code in the
kernel to always make it 32 bit aligned. That would be the simpler
solutions, but we can't get there immediately.

	Regards,

	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