linux/drivers/misc/mei
Alexander Usyskin 4adf613e01 mei: use kvmalloc for read buffer
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>
2024-10-29 04:01:40 +01:00
..
gsc_proxy drm: move i915_component.h under include/drm/intel 2024-05-31 16:11:00 +03:00
hdcp drm: move i915_hdcp_interface.h under include/drm/intel 2024-05-31 16:11:36 +03:00
pxp Merge drm/drm-next into drm-intel-next 2024-06-19 11:38:31 +03:00
bus-fixup.c mei: bus-fixup: set timeout for MKHI send operations 2024-06-24 16:40:29 +02:00
bus.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
client.c mei: use kvmalloc for read buffer 2024-10-29 04:01:40 +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 misc: mei: dma-ring.c: fix kernel-doc warnings 2023-10-18 10:01:33 +02:00
gsc-me.c mei: gsc: remove unnecessary NULL pointer checks 2024-03-05 14:28:02 +00:00
hbm.c misc: mei: hbm.c: fix kernel-doc warnings 2023-10-18 10:01:33 +02:00
hbm.h
hw-me-regs.h mei: me: add lunar lake point M DID 2024-04-23 21:44:16 -07:00
hw-me.c mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
hw-me.h mei: docs: add missing entries to kdoc in struct mei_cfg_idx 2023-10-18 10:01:33 +02:00
hw-txe-regs.h
hw-txe.c Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
hw-txe.h
hw.h mei: Avoid a bunch of -Wflex-array-member-not-at-end warnings 2024-04-11 15:13:30 +02:00
init.c mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
interrupt.c misc: mei: interrupt.c: fix kernel-doc warnings 2023-10-18 10:01:34 +02:00
Kconfig mei: rework Kconfig dependencies 2023-12-15 17:02:15 +01:00
main.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
Makefile mei: Add MEI hardware support for IVSC device 2023-12-07 11:41:40 +09:00
mei_dev.h mei: me: emit error only if reset was unexpected 2023-10-18 10:01:34 +02:00
mei-trace.c
mei-trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04: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-04 17:11:48 +02:00
pci-txe.c mei: txe: remove unnecessary NULL pointer checks 2024-03-05 14:28:02 +00:00
platform-vsc.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
vsc-fw-loader.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
vsc-tp.c mei: vsc: Enhance SPI transfer of IVSC ROM 2024-07-04 12:21:39 +02:00
vsc-tp.h mei: vsc: Unregister interrupt handler for system suspend 2024-04-11 15:15:53 +02:00