linux/drivers/misc/mei
Alexander Usyskin 4882a352b5 mei: use kvmalloc for read buffer
[ Upstream commit 4adf613e01 ]

Read buffer is allocated according to max message size, reported by
the firmware and may reach 64K in systems with pxp client.
Contiguous 64k allocation may fail under memory pressure.
Read buffer is used as in-driver message storage and not required
to be contiguous.
Use kvmalloc to allow kernel to allocate non-contiguous memory.

Fixes: 3030dc0564 ("mei: add wrapper for queuing control commands.")
Cc: stable <stable@kernel.org>
Reported-by: Rohit Agarwal <rohiagar@chromium.org>
Closes: https://lore.kernel.org/all/20240813084542.2921300-1-rohiagar@chromium.org/
Tested-by: Brian Geffon <bgeffon@google.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Acked-by: Tomas Winkler <tomasw@gmail.com>
Link: https://lore.kernel.org/r/20241015123157.2337026-1-alexander.usyskin@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-11-08 16:28:26 +01:00
..
gsc_proxy mei: gsc_proxy: match component when GSC is on different bus 2024-03-26 18:20:04 -04:00
hdcp drm/i915/hdcp: Move away from master naming to arbiter 2023-05-31 10:22:13 +05:30
pxp mei: pxp: Keep a const qualifier when calling mei_cldev_send() 2023-07-30 18:15:27 +02:00
bus-fixup.c mei: obtain firmware version only on gsc. 2023-07-30 14:17:27 +02:00
bus.c mei: bus: enable asynchronous suspend. 2023-07-30 14:17:27 +02:00
client.c mei: use kvmalloc for read buffer 2024-11-08 16:28:26 +01:00
client.h mei: add timeout to send 2022-11-23 19:43:33 +01:00
debugfs.c mei: debugfs: add pxp mode to devstate in debugfs 2022-09-12 15:23:11 +03:00
dma-ring.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
gsc-me.c mei: gsc: add module description 2023-07-30 18:15:53 +02:00
hbm.c mei: add support to GSC extended header 2022-10-03 11:29:07 -07:00
hbm.h mei: implement client dma setup. 2021-02-06 15:48:11 +01:00
hw-me-regs.h mei: me: add lunar lake point M DID 2024-05-17 12:02:33 +02:00
hw-me.c mei: add support to GSC extended header 2022-10-03 11:29:07 -07:00
hw-me.h mei: extend timeouts on slow devices 2022-09-12 15:23:10 +03:00
hw-txe-regs.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw-txe.c Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
hw-txe.h mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
hw.h mei: Move uuid.h to the MEI namespace 2023-03-23 17:25:46 +01:00
init.c mei: obtain firmware version only on gsc. 2023-07-30 14:17:27 +02:00
interrupt.c mei: add support to GSC extended header 2022-10-03 11:29:07 -07:00
Kconfig mei: gsc_proxy: add gsc proxy driver 2023-05-04 02:57:29 -07:00
main.c mei: demote client disconnect warning on suspend to debug 2024-07-25 09:50:45 +02:00
Makefile mei: gsc_proxy: add gsc proxy driver 2023-05-04 02:57:29 -07:00
mei-trace.c mei: adjust the copyright notice in the files. 2019-03-28 02:07:54 +09:00
mei-trace.h treewide: Add missing semicolons to __assign_str uses 2021-06-30 09:19:14 -04:00
mei_dev.h mei: obtain firmware version only on gsc. 2023-07-30 14:17:27 +02:00
mkhi.h mei: mkhi: add memory ready command 2022-09-12 15:23:11 +03:00
pci-me.c mei: me: release irq in mei_me_pci_resume error path 2024-06-21 14:38:23 +02:00
pci-txe.c mei: Remove usage of the deprecated "pci-dma-compat.h" API 2021-09-21 17:33:41 +02:00