summaryrefslogtreecommitdiffstats
path: root/net/atm/ioctl.c
diff options
context:
space:
mode:
authorArnd Bergmann2009-11-11 04:39:40 +0100
committerDavid S. Miller2009-11-12 04:22:22 +0100
commita2116ed223c88b6c424f42398e54d1607dc785ba (patch)
tree6a01a5d91706b4079a0db3a6d80b9ea606a954ae /net/atm/ioctl.c
parentDM9000: Wake on LAN support (diff)
downloadkernel-qcow2-linux-a2116ed223c88b6c424f42398e54d1607dc785ba.tar.gz
kernel-qcow2-linux-a2116ed223c88b6c424f42398e54d1607dc785ba.tar.xz
kernel-qcow2-linux-a2116ed223c88b6c424f42398e54d1607dc785ba.zip
net/compat: fix dev_ifsioc emulation corner cases
Handling for SIOCSHWTSTAMP is broken on architectures with a split user/kernel address space like s390, because it passes a real user pointer while using set_fs(KERNEL_DS). A similar problem might arise the next time somebody adds code to dev_ifsioc. Split up dev_ifsioc into three separate functions for SIOCSHWTSTAMP, SIOC*IFMAP and all other numbers so we can get rid of set_fs in all potentially affected cases. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: Patrick Ohly <patrick.ohly@intel.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm/ioctl.c')
0 files changed, 0 insertions, 0 deletions