android_kernel_sony_sdm845/drivers/hid
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jiri Kosina 4a2665af0e UPSTREAM: HID: core: zero-initialize the report buffer
[ Upstream commit 177f25d1292c7e16e1199b39c85480f7f8815552 ]

Since the report buffer is used by all kinds of drivers in various ways, let's
zero-initialize it during allocation to make sure that it can't be ever used
to leak kernel memory via specially-crafted report.

Bug: 380395346
Fixes: 27ce405039 ("HID: fix data access in implement()")
Reported-by: Benoît Sevens <bsevens@google.com>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 9d9f5c75c0c7f31766ec27d90f7a6ac673193191)
Signed-off-by: Lee Jones <joneslee@google.com>
Change-Id: I31f64f2745347137bbc415eb35b7fab5761867f3
2025-03-13 02:03:34 +00:00
..
i2c-hid HID: i2c-hid: fix GET/SET_REPORT for unnumbered reports 2022-04-20 09:06:34 +02:00
intel-ish-hid HID: ishtp-hid-clientHID: ishtp-hid-client: Fix comment typo 2022-09-20 11:50:15 +02:00
usbhid Merge remote-tracking branch 'common/android-4.9-q' into lineage-18.1-caf-sdm845 2021-12-27 02:07:39 +02:00
hid-a4tech.c HID: input: fix a4tech horizontal wheel custom usage 2019-09-06 10:19:33 +02:00
hid-alps.c HID: alps: fix error return code in alps_input_configured() 2021-04-28 12:07:16 +02:00
hid-apple.c Merge remote-tracking branch 'common/android-4.9-q' into android12-4.9-sdm845 2022-03-31 22:52:51 +03:00
hid-appleir.c
hid-asus.c
hid-aureal.c
hid-axff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-belkin.c
hid-betopff.c HID: betop: fix slab-out-of-bounds Write in betop_probe 2021-10-06 10:23:42 +02:00
hid-cherry.c
hid-chicony.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-cmedia.c
hid-core.c UPSTREAM: HID: core: zero-initialize the report buffer 2025-03-13 02:03:34 +00:00
hid-corsair.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-cp2112.c HID: cp2112: fix broken gpio_direction_input callback 2017-12-20 10:07:26 +01:00
hid-cypress.c HID: cypress: Support Varmilo Keyboards' media hotkeys 2020-12-02 08:31:25 +01:00
hid-debug.c HID: add mapping for KEY_ALL_APPLICATIONS 2022-03-08 19:00:59 +01:00
hid-dr.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-elecom.c
hid-elo.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-emsff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-ezkey.c
hid-gaff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-gembird.c
hid-generic.c
hid-gfrm.c
hid-gt683r.c HID: gt683r: add missing MODULE_DEVICE_TABLE 2021-06-30 08:49:11 -04:00
hid-gyration.c
hid-holtek-kbd.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-holtek-mouse.c HID: holtek: fix mouse probing 2021-12-29 12:14:48 +01:00
hid-holtekff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-hyperv.c HID: hyperv: fix possible memory leak in mousevsc_probe() 2022-11-25 17:35:35 +01:00
hid-icade.c
hid-ids.h Merge branch 'android-4.9-q' of https://android.googlesource.com/kernel/common into lineage-20 2023-01-19 15:42:12 +01:00
hid-input.c This is the 4.9.305 stable release 2022-03-11 10:05:50 +01:00
hid-kensington.c
hid-keytouch.c
hid-kye.c HID: kye: Fix MousePen i608X v2 report descriptor 2016-09-19 14:32:22 +02:00
hid-lcpower.c
hid-led.c HID: hid-led: fix maximum brightness for Dream Cheeky 2022-06-14 16:52:31 +02:00
hid-lenovo.c HID: lenovo: Add checks to fix of_led_classdev_register 2019-02-12 19:44:59 +01:00
hid-lg.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-lg.h
hid-lg2ff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-lg3ff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-lg4ff.c HID: hid-lg4ff: Add check for empty lbuf 2022-12-14 11:24:33 +01:00
hid-lg4ff.h HID: hid-logitech: Add combined pedal support Logitech wheels 2016-09-26 15:39:54 +02:00
hid-lgff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-logitech-dj.c
hid-logitech-hidpp.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-magicmouse.c This is the 4.9.332 stable release 2022-11-06 13:29:01 +01:00
hid-microsoft.c HID: multitouch: enable the Surface 3 Type Cover to report multitouch data 2017-04-12 12:41:16 +02:00
hid-monterey.c
hid-multitouch.c HID: core: Sanitize event code and type when mapping input 2020-09-12 11:47:31 +02:00
hid-nintendo.c FROMLIST: HID: nintendo: add nintendo switch controller driver 2020-02-28 11:02:31 -08:00
hid-ntrig.c HID: hid-ntrig: add error handling for sysfs_create_group 2018-10-03 17:01:47 -07:00
hid-ortek.c
hid-penmount.c
hid-petalynx.c
hid-picolcd.h
hid-picolcd_backlight.c
hid-picolcd_cir.c
hid-picolcd_core.c
hid-picolcd_debugfs.c
hid-picolcd_fb.c
hid-picolcd_lcd.c
hid-picolcd_leds.c
hid-pl.c
hid-plantronics.c HID: plantronics: Additional PIDs for double volume key presses quirk 2023-01-07 12:07:35 +01:00
hid-primax.c
hid-prodikeys.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-qvr.c HID:correct mag axis config for External Viewer 2019-02-22 14:29:46 +08:00
hid-qvr.h HID: Adding new vendor id for QVR support 2018-10-29 13:39:47 -07:00
hid-rmi.c HID: Fix hid_report_len usage 2018-04-24 09:34:11 +02:00
hid-roccat-arvo.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-arvo.h
hid-roccat-common.c
hid-roccat-common.h
hid-roccat-isku.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-isku.h
hid-roccat-kone.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-kone.h
hid-roccat-koneplus.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-koneplus.h
hid-roccat-konepure.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-kovaplus.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-kovaplus.h
hid-roccat-lua.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-lua.h
hid-roccat-pyra.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-pyra.h
hid-roccat-ryos.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-savu.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-roccat-savu.h
hid-roccat.c HID: roccat: Fix use-after-free in roccat_read() 2022-10-26 13:15:47 +02:00
hid-saitek.c HID: hid-saitek: Add device ID for RAT 7 Contagion 2018-10-10 08:53:20 +02:00
hid-samsung.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-sensor-custom.c HID: hid-sensor-custom: set fixed size for custom attributes 2023-01-07 12:07:17 +01:00
hid-sensor-hub.c HID: hid-sensor-hub: Return error for hid_set_field() failure 2021-06-30 08:49:10 -04:00
hid-sjoy.c
hid-sony.c UPSTREAM: HID: sony: Fix for broken buttons on DS3 USB dongles 2022-02-21 16:18:44 +01:00
hid-speedlink.c
hid-steam.c UPSTREAM: HID: steam: Fix input device disappearing 2020-05-14 19:15:30 +00:00
hid-steelseries.c
hid-sunplus.c
hid-tivo.c
hid-tmff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-topseed.c
hid-trace.c HID: Trace events for external sensor driver 2018-10-18 11:53:21 -07:00
hid-trace.h HID: Trace events for external sensor driver 2018-10-18 11:53:21 -07:00
hid-twinhan.c
hid-uclogic.c HID: check for valid USB device for many HID drivers 2021-12-14 10:04:47 +01:00
hid-waltop.c HID: Remove broken links to tablet descriptions 2016-09-19 14:32:21 +02:00
hid-wiimote-core.c
hid-wiimote-debug.c
hid-wiimote-modules.c
hid-wiimote.h
hid-xinmo.c HID: xinmo: fix for out of range for THT 2P arcade controller. 2017-12-25 14:23:40 +01:00
hid-zpff.c HID: Fix assumption that devices have inputs 2019-11-06 12:18:20 +01:00
hid-zydacron.c
hidraw.c HID: hidraw: fix memory leak in hidraw_release() 2022-09-05 10:23:57 +02:00
Kconfig Merge remote-tracking branch 'common/android-4.9-q' into android12-4.9-sdm845 2022-03-31 22:52:51 +03:00
Makefile Merge android-4.9.216(4ad9bb8) into msm-4.9 2020-03-26 10:35:47 +08:00
uhid.c Merge remote-tracking branch 'common/android-4.9-q' into android12-4.9-sdm845 2022-03-31 22:52:51 +03:00
wacom.h HID: wacom: power_supply: provide the actual model_name 2016-08-05 13:39:23 +02:00
wacom_sys.c HID: wacom: Ensure bootloader PID is usable in hidraw mode 2023-01-07 12:07:34 +01:00
wacom_wac.c HID: wacom: Ensure bootloader PID is usable in hidraw mode 2023-01-07 12:07:34 +01:00
wacom_wac.h HID: wacom: Ensure bootloader PID is usable in hidraw mode 2023-01-07 12:07:34 +01:00