linux/drivers/platform/chrome
Tzung-Bi Shih b20cf3f89c platform/chrome: cros_ec_chardev: fix kernel data leak from ioctl
It is possible to peep kernel page's data by providing larger `insize`
in struct cros_ec_command[1] when invoking EC host commands.

Fix it by using zeroed memory.

[1]: https://elixir.bootlin.com/linux/v6.2/source/include/linux/platform_data/cros_ec_proto.h#L74

Fixes: eda2e30c66 ("mfd / platform: cros_ec: Miscellaneous character device to talk with the EC")
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Link: https://lore.kernel.org/r/20230324010658.1082361-1-tzungbi@kernel.org
2023-03-24 10:56:28 +08:00
..
wilco_ec platform/chrome: use sysfs_emit() instead of scnprintf() 2022-12-26 11:14:34 +08:00
Kconfig platform/chrome: cros_ec_typec: Alter module name with hyphens 2023-01-09 20:32:53 +00:00
Makefile platform/chrome: cros_ec_typec: Add initial VDM support 2023-01-09 20:32:53 +00:00
chromeos_acpi.c
chromeos_laptop.c
chromeos_privacy_screen.c
chromeos_pstore.c
chromeos_tbmc.c
cros_ec.c platform/chrome: cros_ec: Use per-device lockdep key 2023-01-13 09:30:50 +08:00
cros_ec.h
cros_ec_chardev.c platform/chrome: cros_ec_chardev: fix kernel data leak from ioctl 2023-03-24 10:56:28 +08:00
cros_ec_debugfs.c platform/chrome: fix kernel-doc warnings for panic notifier 2023-01-13 09:30:49 +08:00
cros_ec_i2c.c
cros_ec_ishtp.c
cros_ec_lightbar.c platform/chrome: use sysfs_emit() instead of scnprintf() 2022-12-26 11:14:34 +08:00
cros_ec_lpc.c platform/chrome: cros_ec_lpc: initialize the buf variable 2023-01-11 11:27:56 +08:00
cros_ec_lpc_mec.c
cros_ec_lpc_mec.h
cros_ec_proto.c
cros_ec_proto_test.c platform/chrome: cros_ec_proto: remove big stub objects from stack 2023-01-18 10:57:56 +08:00
cros_ec_rpmsg.c
cros_ec_sensorhub.c
cros_ec_sensorhub_ring.c
cros_ec_sensorhub_trace.h
cros_ec_spi.c
cros_ec_sysfs.c platform/chrome: use sysfs_emit_at() instead of scnprintf() 2022-12-26 16:14:53 +08:00
cros_ec_trace.c
cros_ec_trace.h
cros_ec_typec.c platform/chrome: cros_ec_typec: Fix spelling mistake 2023-02-08 18:21:03 +00:00
cros_ec_typec.h platform/chrome: cros_ec_typec: Move structs to header 2023-01-09 20:32:53 +00:00
cros_ec_uart.c platform/chrome: cros_ec_uart: fix negative type promoted to high 2023-01-18 10:57:51 +08:00
cros_ec_vbc.c
cros_hps_i2c.c
cros_kbd_led_backlight.c
cros_kunit_util.c
cros_kunit_util.h
cros_typec_switch.c platform/chrome: cros_typec_switch: Check for retimer flag 2023-01-10 20:47:32 +00:00
cros_typec_vdm.c platform/chrome: cros_typec_vdm: Add Attention support 2023-01-31 18:12:18 +00:00
cros_typec_vdm.h platform/chrome: cros_typec_vdm: Add Attention support 2023-01-31 18:12:18 +00:00
cros_usbpd_logger.c
cros_usbpd_notify.c