Files
linux/drivers/misc/mei
Alexander Usyskin b0495bb58a mei: pull kvfree out of spinlock
The read buffer allocation was changed from kmalloc() to kvmalloc().

This buffer is part of mei_cl_cb structure that can be queued in
rd_complete queue protected by spinlock.
Releasing the structure leads to errors like below when freeing buffer
that allocated non-contiguous:

BUG: sleeping function called from invalid context at mm/vmalloc.c:3448

Separate mei_cl_cb structure dequeue and release to
perform only dequeue under spinlock and push release out of spinlock.

Cc: stable <stable@kernel.org>
Fixes: 4adf613e01 ("mei: use kvmalloc for read buffer")
Closes: https://gitlab.freedesktop.org/drm/i915/kernel/-/work_items/16359
Reviewed-by: Menachem Adin <menachem.adin@intel.com>
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://patch.msgid.link/20260719-kvfree_out_of_spinlock-v1-1-e07d6333bea7@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-07-31 13:28:05 +02:00
..
2026-04-02 17:08:36 +02:00
2026-07-31 13:28:05 +02:00
2025-09-06 19:50:54 +02:00
2021-02-06 15:48:11 +01:00
2026-05-23 13:47:33 +02:00
2025-02-20 15:24:13 +01:00
2026-05-23 13:47:33 +02:00
2026-04-06 11:39:55 +02:00
2022-09-12 15:23:11 +03:00
2026-05-23 13:47:33 +02:00
2026-05-23 13:47:33 +02:00