android_kernel_motorola_sm6375/include
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marc Zyngier bdf78f318d UPSTREAM: HID: core: Sanitize event code and type when mapping input
commit 35556bed836f8dc07ac55f69c8d17dce3e7f0e25 upstream.

When calling into hid_map_usage(), the passed event code is
blindly stored as is, even if it doesn't fit in the associated bitmap.

This event code can come from a variety of sources, including devices
masquerading as input devices, only a bit more "programmable".

Instead of taking the event code at face value, check that it actually
fits the corresponding bitmap, and if it doesn't:
- spit out a warning so that we know which device is acting up
- NULLify the bitmap pointer so that we catch unexpected uses

Code paths that can make use of untrusted inputs can now check
that the mapping was indeed correct and bail out if not.

Cc: [email protected]
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
(cherry picked from commit 35556bed836f8dc07ac55f69c8d17dce3e7f0e25)
Change-Id: Ie4dc11f43ed1eae2d09feaf9cff17d6d16cf9987
Signed-off-by: Todd Kjos <[email protected]>
2020-12-04 23:13:47 +00:00
..
acpi
asm-generic ANDROID: vmlinux.lds.h: merge compound literal sections 2020-12-02 16:39:51 +00:00
clocksource
crypto Revert "ANDROID: Revert: Merge 5.4.60 into android11-5.4" 2020-08-23 13:12:51 +02:00
drm ANDROID: include/linux: add low power mode and fps to notifier 2020-08-12 15:43:27 +00:00
dt-bindings FROMLIST: clk: sunxi-ng: add support for the Allwinner A100 CCU 2020-08-27 17:11:05 +08:00
keys
kvm
linux UPSTREAM: HID: core: Sanitize event code and type when mapping input 2020-12-04 23:13:47 +00:00
math-emu
media
misc
net UPSTREAM: ipv6: ndisc: RFC-ietf-6man-ra-pref64-09 is now published as RFC8781 2020-11-14 16:55:48 +01:00
pcmcia
ras
rdma This is the 5.4.56 stable release 2020-08-05 11:19:16 +02:00
scsi
soc
sound Revert "Revert "Revert "ANDROID: ALSA: jack: Update supported ja..." 2020-08-10 22:29:15 +00:00
target
trace ANDROID: fix kernelci build-break due to stop_ipi hook 2020-11-04 13:23:08 -08:00
uapi BACKPORT: mac80211_hwsim: add frame transmission support over virtio 2020-11-23 17:45:44 +00:00
vdso
video
xen