]> git.hungrycats.org Git - linux/commit
[PATCH] s390: 32 bit ioctl emulation fixes.
authorAndrew Morton <akpm@osdl.org>
Mon, 19 Jan 2004 02:42:44 +0000 (18:42 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Mon, 19 Jan 2004 02:42:44 +0000 (18:42 -0800)
commitb72570f170cdda07b5b1a8b25860e3e49c81412c
tree58042d5449e482b8182ea8b96b62a094e50dd9fe
parent33c567a3692423d54d10fa3364bd6bc59796e5f7
[PATCH] s390: 32 bit ioctl emulation fixes.

From: Martin Schwidefsky <schwidefsky@de.ibm.com>

- audit all 32 bit pointer accesses and make them use compat_ioctl(),
  because of the necessary conversion on s390
- introduce ULONG_IOCTL() which is used instead of COMPATIBLE_IOCTL()
  for all ioctls that have their argument encoded in 'arg' instead
  of the memory pointed to by arg. Same reason as above.
- remove most #ifdefs in <linux/compat_ioctl.h>: They don't make
  any sense if the respective handlers in fs/compat_ioctl.c are
  not disabled as well and they are potentially harmful (the
  CONFIG_BLK_DEV_DM e.g. was insufficient).
- comment out  COMPATIBLE_IOCTL(SIOCSIFBR) and
  COMPATIBLE_IOCTL(SIOCGIFBR), they appear to require a handler
- implement copy_in_user for s390, as needed for many handlers in
  fs/compat_ioctl.c
- get rid of all duplicate stuff in arch/s390/kernel/compat_ioctl.c
  that is also in fs/compat_ioctl.c
arch/s390/kernel/compat_ioctl.c
arch/s390/lib/uaccess.S
arch/s390/lib/uaccess64.S
fs/compat_ioctl.c
include/asm-s390/uaccess.h
include/linux/compat_ioctl.h