summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@kernel.org>2023-03-24 04:06:58 +0300
committerTzung-Bi Shih <tzungbi@kernel.org>2023-03-24 05:56:28 +0300
commitb20cf3f89c56b5f6a38b7f76a8128bf9f291bbd3 (patch)
treec8a9048b9f4d2450bb1da393c95cfa4a6358d780 /arch
parentb0d8a67715dae445c065c83a40a581d6563a341f (diff)
downloadlinux-b20cf3f89c56b5f6a38b7f76a8128bf9f291bbd3.tar.xz
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: eda2e30c6684 ("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
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions