alistair23-linux/net/wireless
Prasun Maiti 3d5fdff46c wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel
iwpriv app uses iw_point structure to send data to Kernel. The iw_point
structure holds a pointer. For compatibility Kernel converts the pointer
as required for WEXT IOCTLs (SIOCIWFIRST to SIOCIWLAST). Some drivers
may use iw_handler_def.private_args to populate iwpriv commands instead
of iw_handler_def.private. For those case, the IOCTLs from
SIOCIWFIRSTPRIV to SIOCIWLASTPRIV will follow the path ndo_do_ioctl().
Accordingly when the filled up iw_point structure comes from 32 bit
iwpriv to 64 bit Kernel, Kernel will not convert the pointer and sends
it to driver. So, the driver may get the invalid data.

The pointer conversion for the IOCTLs (SIOCIWFIRSTPRIV to
SIOCIWLASTPRIV), which follow the path ndo_do_ioctl(), is mandatory.
This patch adds pointer conversion from 32 bit to 64 bit and vice versa,
if the ioctl comes from 32 bit iwpriv to 64 bit Kernel.

Cc: stable@vger.kernel.org
Signed-off-by: Prasun Maiti <prasunmaiti87@gmail.com>
Signed-off-by: Ujjal Roy <royujjal@gmail.com>
Tested-by: Dibyajyoti Ghosh <dibyajyotig@gmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2016-06-09 09:56:11 +02:00
..
.gitignore
ap.c
chan.c cfg80211: make wdev_list accessible to drivers 2016-05-12 11:16:40 +02:00
core.c cfg80211: remove get/set antenna and tx power warnings 2016-06-09 09:44:56 +02:00
core.h cfg80211: make wdev_list accessible to drivers 2016-05-12 11:16:40 +02:00
db.txt
debugfs.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
debugfs.h
ethtool.c
genregdb.awk
ibss.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
Kconfig cfg80211: Fix some linguistics in Kconfig 2016-02-24 09:04:23 +01:00
lib80211.c
lib80211_crypt_ccmp.c lib80211: ratelimit key index mismatch 2015-12-04 14:43:32 +01:00
lib80211_crypt_tkip.c lib80211: Use skcipher and ahash 2016-01-27 20:36:03 +08:00
lib80211_crypt_wep.c lib80211: Use skcipher and ahash 2016-01-27 20:36:03 +08:00
Makefile
mesh.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
mlme.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
nl80211.c cfg80211: make wdev_list accessible to drivers 2016-05-12 11:16:40 +02:00
nl80211.h
ocb.c cfg80211: ocb: Fix null pointer deref if join_ocb is unimplemented 2015-12-04 14:43:32 +01:00
radiotap.c cfg80211: add radiotap VHT info to rtap_namespace_sizes 2016-02-24 09:04:41 +01:00
rdev-ops.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
reg.c cfg80211: make wdev_list accessible to drivers 2016-05-12 11:16:40 +02:00
reg.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
regdb.h
scan.c cfg80211: allow finding vendor with OUI without specifying the OUI type 2016-05-12 11:15:42 +02:00
sme.c cfg80211: make wdev_list accessible to drivers 2016-05-12 11:16:40 +02:00
sysfs.c cfg80211: make wdev_list accessible to drivers 2016-05-12 11:16:40 +02:00
sysfs.h
trace.c
trace.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
util.c mm/page_ref: use page_ref helper instead of direct modification of _count 2016-05-19 19:12:14 -07:00
wext-compat.c wext: remove a/b/g/n from SIOCGIWNAME 2016-05-02 22:48:09 +02:00
wext-compat.h
wext-core.c wext: Fix 32 bit iwpriv compatibility issue with 64 bit Kernel 2016-06-09 09:56:11 +02:00
wext-priv.c
wext-proc.c
wext-sme.c
wext-spy.c