Arnd Bergmann
854ac5dee5
Input: input_event - fix struct padding on sparc64
...
commit f729a1b0f8df7091cea3729fc0e414f5326e1163 upstream.
Going through all uses of timeval, I noticed that we screwed up
input_event in the previous attempts to fix it:
The time fields now match between kernel and user space, but all following
fields are in the wrong place.
Add the required padding that is implied by the glibc timeval definition
to fix the layout, and use a struct initializer to avoid leaking kernel
stack data.
Fixes: 141e5dcaa7 ("Input: input_event - fix the CONFIG_SPARC64 mixup")
Fixes: 2e746942eb ("Input: input_event - provide override for sparc64")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20191213204936.3643476-2-arnd@arndb.de
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-14 20:08:24 +01:00
..
gameport
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
joystick
Input: Fix memory leak in psxpad_spi_probe
2019-12-13 08:42:44 +01:00
keyboard
chrome platform changes for v5.4
2019-09-19 14:14:28 -07:00
misc
Input: input_event - fix struct padding on sparc64
2020-01-14 20:08:24 +01:00
mouse
Input: synaptics - switch another X1 Carbon 6 to RMI/SMbus
2019-12-13 08:42:40 +01:00
rmi4
Input: synaptics-rmi4 - don't increment rmiaddr for SMBus transfers
2019-12-13 08:42:42 +01:00
serio
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
2019-09-19 14:10:54 -07:00
tablet
Input: kbtab - sanity check for endpoint type
2019-08-01 10:55:21 -07:00
touchscreen
Input: ili210x - handle errors from input_mt_init_slots()
2020-01-04 19:17:34 +01:00
apm-power.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
evbug.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
2019-05-30 11:26:35 -07:00
evdev.c
Input: input_event - fix struct padding on sparc64
2020-01-14 20:08:24 +01:00
ff-core.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
2019-05-30 11:26:35 -07:00
ff-memless.c
Input: ff-memless - kill timer in destroy()
2019-11-15 11:45:03 -08:00
input-compat.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-compat.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-leds.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-mt.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-polldev.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00
input-poller.c
Input: add support for polling to input devices
2019-08-20 12:04:07 -07:00
input-poller.h
Input: add support for polling to input devices
2019-08-20 12:04:07 -07:00
input.c
Input: add safety guards to input_set_keycode()
2020-01-14 20:08:24 +01:00
joydev.c
Linux 5.2
2019-07-15 09:42:32 -07:00
Kconfig
treewide: Add SPDX license identifier - Makefile/Kconfig
2019-05-21 10:50:46 +02:00
Makefile
Input: add support for polling to input devices
2019-08-20 12:04:07 -07:00
matrix-keymap.c
Input: matrix-keymap - switch to use device_property_count_u32()
2019-08-12 00:03:13 -07:00
mousedev.c
*: convert stream-like files -> stream_open, even if they use noop_llseek
2019-07-14 16:09:19 +03:00
sparse-keymap.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500
2019-06-19 17:09:55 +02:00