]> git.baikalelectronics.ru Git - kernel.git/commit
net, compat_ioctl: handle socket ioctl abuses in tty drivers
authorArnd Bergmann <arnd@arndb.de>
Sat, 7 Nov 2009 06:51:16 +0000 (22:51 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Nov 2009 06:52:38 +0000 (22:52 -0800)
commit2ae09f01691f0a46c881045fc5be16a2a409399b
treeecef431218a43293cf0b71eec52427b20f618b02
parent501a2a4d4ce23e4a1ee77e88cf557e0ebc9c9c04
net, compat_ioctl: handle socket ioctl abuses in tty drivers

Slip and a few other drivers use the same ioctl numbers on
tty devices that are normally meant for sockets. This causes
problems with our compat_ioctl handling that tries to convert
the data structures in a different format.

Fortunately, these five drivers all use 32 bit compatible
data structures in the ioctl numbers, so we can just add
a trivial compat_ioctl conversion function to each of them.

SIOCSIFENCAP and SIOCGIFENCAP do not need to live in
fs/compat_ioctl.c after this any more, and they are not
used on any sockets.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/6pack.c
drivers/net/hamradio/mkiss.c
drivers/net/slip.c
drivers/net/wan/x25_asy.c
drivers/net/wireless/strip.c
fs/compat_ioctl.c