crypto: hisilicon/qm - increase the memory of local variables
authorKai Ye <yekai13@huawei.com>
Sat, 22 Oct 2022 01:17:44 +0000 (01:17 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Oct 2022 04:36:34 +0000 (12:36 +0800)
commit3efe90af4c0c46c58dba1b306de142827153d9c0
tree2c56067612640ec3a97b6772720b7c9f36258646
parent7984ceb134bf31aa9a597f10ed52d831d5aede14
crypto: hisilicon/qm - increase the memory of local variables

Increase the buffer to prevent stack overflow by fuzz test. The maximum
length of the qos configuration buffer is 256 bytes. Currently, the value
of the 'val buffer' is only 32 bytes. The sscanf does not check the dest
memory length. So the 'val buffer' may stack overflow.

Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/qm.c