watchdog: diag288_wdt: do not use stack buffers for hardware data
stable inclusion from stable-v5.10.168 commit 5bcdcf437d3f7ecd9103adc2b60af8f27c70301d category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5bcdcf437d3f7ecd9103adc2b60af8f27c70301d ---------------------------------------------------- commit fe8973a3 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> Signed-off-by:
zhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
Loading
Please sign in to comment