Skip to contentSkip to conversation

wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel

DISCUSSION Ben Hutchings 2 participants 2 messages Aug 7, 2016 – Aug 8, 2016 Stable branch

lore
Share & tools
lore
#0 lore raw

I'm looking at commit 3d5fdff46c4b as part of the stable process.

The path it touches is only used for drivers that don't describe their private wext handlers, right?  So how can we know that the private ioctl is using the iw_point structure and not one of the other types in union iwreq_data?  Doesn't this result in a regression when another type is being used?

Ben.

Signature · 3 lines
Ben Hutchings
Beware of bugs in the above code;
I have only proved it correct, not tried it. - Donald Knuth
#1 lore raw
Quoted 8 lines · Ben Hutchings

I'm looking at commit 3d5fdff46c4b as part of the stable process.

The path it touches is only used for drivers that don't describe their private wext handlers, right?  So how can we know that the private ioctl is using the iw_point structure and not one of the other types in union iwreq_data?  Doesn't this result in a regression when another type is being used?

Crap, that's good point. I'll revert the patch.

Fortunately this code path is never actually used. The only "mainline" driver that appears to use it is staging/wilc1000.

I wonder if we should just remove it entirely. Yes, it'd break that staging driver to some extent, but it's clearly an unsafe code path.

Prasun, did you need this for the mwifiex wext ioctl support that was shot down anyway?

johannes