netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wireless extensions vs. 64-bit architectures
@ 2007-03-06  1:27 Johannes Berg
  2007-03-06 14:31 ` Johannes Berg
  2007-03-06 17:13 ` Jean Tourrilhes
  0 siblings, 2 replies; 36+ messages in thread
From: Johannes Berg @ 2007-03-06  1:27 UTC (permalink / raw)
  To: linux-wireless
  Cc: netdev, Jeff Garzik, Jean Tourrilhes, Dan Williams, Jouni Malinen

[-- Attachment #1: Type: text/plain, Size: 1602 bytes --]

Hi,

Wtf! After struggling with some strange problems with zd1211rw (see some
other mail) I decided to think again about what could possibly cause all
the other problems I'm having with it. The kernel seems fine, but iw*
userspace continually segfaults! And it also seems to be not
reproducible for most other people, I'd asked on IRC once a while.

Well. Some thinking and stracing and thinking later it occurred to me...
Hell! wext is ioctls and includes this gem:

struct  iw_point
{
  void __user   *pointer;       /* Pointer to the data  (in user space) */
  __u16         length;         /* number of fields or size in bytes */
  __u16         flags;          /* Optional params */
};

Of course nobody ever tells you this, but it's used in a shitload of
places.

Btw, did I mention that I'm running a stock debian powerpc 32-bit
userspace on my 64-bit machine. Oh and of course wext doesn't have any
32-in-64 compat code.

/me laughes manically about wext.

And don't tell me the fix is to use the netlink interface to wext.
Actually, I think it may have the same bug, it seems to be operating
with iw_point (or at least its size) too but I can't really tell, the
code's just too clear, I always just see right through it... Oh and I
still insist on removing the whole pile of junk, netlink interface
first.

Isn't there any possibility that we can kill userspace interfaces that
are terminally broken without keeping them for years to come?

Sorry. This is just too frustrating.

johannes
-- 
Now playing: Nightwish (Century Child) - End Of All Hope


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2007-03-13 21:30 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06  1:27 wireless extensions vs. 64-bit architectures Johannes Berg
2007-03-06 14:31 ` Johannes Berg
2007-03-06 17:13 ` Jean Tourrilhes
     [not found]   ` <20070306171316.GA19669-yAE0UhLNZJawPNPzzlOzwdBPR1lH4CV8@public.gmane.org>
2007-03-06 18:43     ` Michael Buesch
     [not found]       ` <200703061943.07350.mb-fseUSCV1ubazQB+pC5nmwQ@public.gmane.org>
2007-03-07  1:42         ` Jean Tourrilhes
2007-03-07  2:03       ` Jean Tourrilhes
     [not found]         ` <20070307020310.GA20466-yAE0UhLNZJawPNPzzlOzwdBPR1lH4CV8@public.gmane.org>
2007-03-08 14:39           ` Johannes Berg
     [not found]             ` <1173364747.14001.7.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2007-03-08 16:51               ` Johannes Berg
2007-03-08 17:37               ` Johannes Berg
2007-03-08 18:49             ` Jean Tourrilhes
2007-03-08 19:08               ` Johannes Berg
     [not found]                 ` <1173380909.3248.52.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2007-03-08 19:13                   ` Jean Tourrilhes
2007-03-08 19:23                     ` Johannes Berg
     [not found]               ` <20070308184954.GA24485-yAE0UhLNZJawPNPzzlOzwdBPR1lH4CV8@public.gmane.org>
2007-03-08 19:27                 ` Johannes Berg
2007-03-08 19:34                   ` Jouni Malinen
     [not found]                     ` <20070308193412.GG23040-r/za7OOdgF0ztatW0fm/fQ@public.gmane.org>
2007-03-08 19:40                       ` Johannes Berg
     [not found]                         ` <1173382802.3248.68.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2007-03-08 22:11                           ` Jean Tourrilhes
     [not found]                             ` <20070308221128.GA24884-yAE0UhLNZJawPNPzzlOzwdBPR1lH4CV8@public.gmane.org>
2007-03-08 22:17                               ` Randy Dunlap
     [not found]                                 ` <20070308141756.efdfd6da.randy.dunlap-QHcLZuEGTsvQT0dZR+AlfA@public.gmane.org>
2007-03-08 22:30                                   ` Jean Tourrilhes
     [not found]                                     ` <20070308223058.GA24960-yAE0UhLNZJawPNPzzlOzwdBPR1lH4CV8@public.gmane.org>
2007-03-08 22:36                                       ` Johannes Berg
2007-03-08 22:34                                   ` David Miller
2007-03-08 22:49                                 ` Pavel Roskin
2007-03-08 22:22                               ` Johannes Berg
     [not found]                                 ` <1173392526.3831.12.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2007-03-08 22:36                                   ` Jean Tourrilhes
2007-03-08 22:35                               ` Johannes Berg
2007-03-09 21:35                                 ` Jean Tourrilhes
     [not found]                                   ` <20070309213531.GA28070-yAE0UhLNZJawPNPzzlOzwdBPR1lH4CV8@public.gmane.org>
2007-03-09 23:19                                     ` Jouni Malinen
     [not found]                                       ` <20070309231922.GF24143-r/za7OOdgF0ztatW0fm/fQ@public.gmane.org>
2007-03-10  1:01                                         ` Jean Tourrilhes
2007-03-11 17:40                                     ` Johannes Berg
     [not found]                                       ` <1173634801.3382.8.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2007-03-11 20:11                                         ` Ulrich Kunitz
     [not found]                                           ` <20070311201148.GA25938-WhJF3imHnk+bHbQv0o6mQ2hcgWyyV7dXYZdqe9AaVak@public.gmane.org>
2007-03-11 20:30                                             ` Michael Buesch
2007-03-12 17:56                                         ` Jean Tourrilhes
2007-03-12 18:21                                           ` Jouni Malinen
     [not found]                                             ` <20070312182149.GA1785-r/za7OOdgF0ztatW0fm/fQ@public.gmane.org>
2007-03-12 20:34                                               ` Jean Tourrilhes
     [not found]                                           ` <20070312175639.GA4048-yAE0UhLNZJawPNPzzlOzwdBPR1lH4CV8@public.gmane.org>
2007-03-13 19:42                                             ` Johannes Berg
     [not found]                                               ` <1173814925.12717.6.camel-YfaajirXv214zXjbi5bjpg@public.gmane.org>
2007-03-13 21:30                                                 ` Jean Tourrilhes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).