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
hdcp
pxp
bus-fixup.c
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
debugfs.c
dma-ring.c
gsc-me.c
hbm.c
hbm.h
hw-me-regs.h
hw-me.c
hw-me.h
hw-txe-regs.h
hw-txe.c
hw-txe.h
hw.h
init.c
interrupt.c
Kconfig
main.c [tree-wide] finally take no_llseek out 2024-09-27 08:18:43 -07:00
Makefile
mei_dev.h
mei-trace.c
mei-trace.h
mkhi.h
pci-me.c
pci-txe.c
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