Input: uinput - handle compat ioctl for UI_SET_PHYS
authorRicky Liang <jcliang@chromium.org>
Fri, 20 May 2016 17:58:59 +0000 (10:58 -0700)
committerWilly Tarreau <w@1wt.eu>
Sun, 21 Aug 2016 21:22:42 +0000 (23:22 +0200)
commitb82f3ee1d0ae76034452183ad26384a53519a33d
tree03b60108fa2e1810da804d52e368d01630205062
parent9338ba336a8a48c7644cac5502fa99faaad0e003
Input: uinput - handle compat ioctl for UI_SET_PHYS

commit affa80bd97f7ca282d1faa91667b3ee9e4c590e6 upstream.

When running a 32-bit userspace on a 64-bit kernel, the UI_SET_PHYS
ioctl needs to be treated with special care, as it has the pointer
size encoded in the command.

Signed-off-by: Ricky Liang <jcliang@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/input/misc/uinput.c