]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/wmi: Prepare to reject undersized unmarshalling results
authorArmin Wolf <W_Armin@gmx.de>
Mon, 6 Apr 2026 20:32:34 +0000 (22:32 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 13 Apr 2026 11:11:22 +0000 (14:11 +0300)
commit204b52fadf98b77eab8fd6cba4a7d55224bbf11b
treed8a0b549a54d71f8eccba61d705d317c0b1284a8
parent578bc2a53ae286e438024d363ad0513f7105e6dc
platform/wmi: Prepare to reject undersized unmarshalling results

Driver using the buffer-based WMI API usually reject buffers resulting
from WMI method calls or block queries if they contain not enough data.
Prepare the WMI core for assisting in this by automatically rejecting
undersized unmarshalling results.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20260406203237.2970-4-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/wmi/core.c
drivers/platform/wmi/internal.h
drivers/platform/wmi/marshalling.c
drivers/platform/wmi/tests/marshalling_kunit.c