watchdog: diag288_wdt: do not use stack buffers for hardware data
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Fri, 27 Jan 2023 13:52:41 +0000 (14:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 10:26:41 +0000 (11:26 +0100)
commit700dd5bc72d349e6314bb8f2d01bb0eb7c0f1ffc
tree53bfefb805bdd96a1e3bed2c66267a1c92e371a5
parent21bc51e29e6617d915cd267e9f6c283c48aaa553
watchdog: diag288_wdt: do not use stack buffers for hardware data

commit fe8973a3ad0905cb9ba2d42db42ed51de14737df upstream.

With CONFIG_VMAP_STACK=y the stack is allocated from the vmalloc space.
Data passed to a hardware or a hypervisor interface that
requires V=R can no longer be allocated on the stack.

Use kmalloc() to get memory for a diag288 command.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/watchdog/diag288_wdt.c